#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default sumif

I know this is probably elementary, but how do you do a sumif if you have
multiple criteria that needs to be met?
  #2   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default sumif

You don't. Look at sumproduct (link below) if you want to return a numerical
value (sum based on multiple conditions). There is also a link from this
site to Chip Pearson's site that discusses array formulas. If you want to
return text based on multiple conditions, try Index/Match in an array formula.

http://www.xldynamic.com/source/xld.SUMPRODUCT.html

Alternatively, create a new column and concatenate the columns with the
criteria to create a unique key (like =B1&C1&D1), then use VLOOKUP on this
new column.

"BOONER" wrote:

I know this is probably elementary, but how do you do a sumif if you have
multiple criteria that needs to be met?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default sumif

Under normal circumstances you'd probably use another function, like
Sumproduct().

You could still use SumIf() in some scenarios, like:

=Sumif(A1:A100,"=50",B1:B100)-Sumif(A1:A100,"75",B1:B100)
To get totals on Column B where Column A values are between 50 and 75.

OR

Total Column B where Column A values are equal to 50 *or* 75:

=Sum(Sumif(A1:A100,{50,75},B1:B100))
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"BOONER" wrote in message
...
I know this is probably elementary, but how do you do a sumif if you have
multiple criteria that needs to be met?


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 51
Default sumif

Please consider using the conditional sum wizard that will do the summing up
for multiple conditions. You will find this feature in the Tools Menu. If
you are not finding it, choose add-ins in tools menu and activate Conditional
Sum Wizard. The wizard will guide you thro the process of summing a range
against multiple conditions.

"BOONER" wrote:

I know this is probably elementary, but how do you do a sumif if you have
multiple criteria that needs to be met?

  #5   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default sumif

Correction - not Vlookup but Sumif on the new column.


"JMB" wrote:

You don't. Look at sumproduct (link below) if you want to return a numerical
value (sum based on multiple conditions). There is also a link from this
site to Chip Pearson's site that discusses array formulas. If you want to
return text based on multiple conditions, try Index/Match in an array formula.

http://www.xldynamic.com/source/xld.SUMPRODUCT.html

Alternatively, create a new column and concatenate the columns with the
criteria to create a unique key (like =B1&C1&D1), then use VLOOKUP on this
new column.

"BOONER" wrote:

I know this is probably elementary, but how do you do a sumif if you have
multiple criteria that needs to be met?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use SUMIF to return sums between two values located in cells ScottBerger Excel Worksheet Functions 2 April 23rd 23 09:05 PM
Help with SUMIF function PO Excel Worksheet Functions 6 June 1st 06 09:07 AM
Sumif of Sumif perhaps? Fred Excel Discussion (Misc queries) 2 March 29th 06 05:39 PM
SUMIF Ferg Excel Worksheet Functions 3 February 28th 06 03:37 AM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM


All times are GMT +1. The time now is 07:15 AM.

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

About Us

"It's about Microsoft Excel"