A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Sum Formula dilemma - Can yu Solve?



 
 
Thread Tools Display Modes
  #1  
Old May 18th, 2010, 03:47 AM posted to microsoft.public.excel.worksheet.functions
Tom
external usenet poster
 
Posts: 1,359
Default Sum Formula dilemma - Can yu Solve?

Have a column for item id and a column for its Qty. What I need to do is have
a sum of all the item id quanitities whose item id is either a 1, a 3, or a
7. If it was just that I needed the sum of those with 1 I could use SumIf.
But what if I want a combined total of certain id's?
  #2  
Old May 18th, 2010, 03:59 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Sum Formula dilemma - Can yu Solve?

One way...

=SUM(SUMIF(A2:A100,{1,3,7},B2:B100))

--
Biff
Microsoft Excel MVP


"Tom" wrote in message
...
Have a column for item id and a column for its Qty. What I need to do is
have
a sum of all the item id quanitities whose item id is either a 1, a 3, or
a
7. If it was just that I needed the sum of those with 1 I could use SumIf.
But what if I want a combined total of certain id's?



  #3  
Old May 18th, 2010, 03:59 AM posted to microsoft.public.excel.worksheet.functions
trip_to_tokyo[_3_]
external usenet poster
 
Posts: 932
Default Sum Formula dilemma - Can yu Solve?

On May 18, 4:47*am, Tom wrote:
Have a column for item id and a column for its Qty. What I need to do is have
a sum of all the item id quanitities whose item id is either a 1, a 3, or a
7. If it was just that I needed the sum of those with 1 I could use SumIf..
But what if I want a combined total of certain id's?


Hi Tom, you could do this with a Pivot Table if you wanted to.

Please check out:-

http://www.pierrefondes.com/

Item 108.

If you pull that up on the screen in front of you it can easily be
applied to your example.

Just click in H 2 and choose the Acct Number's (your id) you want to
include / exclude.

If my comments have helped please hit Yes.

Thanks.


  #4  
Old May 18th, 2010, 04:04 AM posted to microsoft.public.excel.worksheet.functions
ozgrid.com
external usenet poster
 
Posts: 328
Default Sum Formula dilemma - Can yu Solve?

Use SUMIFs if you have 2007

If not, try;
=SUM(SUMIF($A$1:$A$10,1,$B$1:$B$10),
SUMIF($A$1:$A$10,2,$B$1:$B$10),
SUMIF($A$1:$A$10,3,$B$1:$B$10))


Other ways here
http://www.ozgrid.com/Excel/sum-if.htm



--
Regards
Dave Hawley
www.ozgrid.com
"Tom" wrote in message
...
Have a column for item id and a column for its Qty. What I need to do is
have
a sum of all the item id quanitities whose item id is either a 1, a 3, or
a
7. If it was just that I needed the sum of those with 1 I could use SumIf.
But what if I want a combined total of certain id's?


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:31 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.