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  

Sumif for multiple conditions



 
 
Thread Tools Display Modes
  #1  
Old September 23rd, 2008, 04:14 PM posted to microsoft.public.excel.worksheet.functions
DMcCormack
external usenet poster
 
Posts: 3
Default Sumif for multiple conditions

Do anyone know if it is possible to do a sumif function for more than one
condition? What I want to do is sum the items in column C that meet the
criteria of column A = "ABC" and column B = "XYZ"

Can anyone help?

Thanks in advance
  #2  
Old September 23rd, 2008, 04:27 PM posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom[_2_]
external usenet poster
 
Posts: 963
Default Sumif for multiple conditions

One way

=SUMPRODUCT(--(A2:A5000="ABC"),--(B2:B5000="XYZ"),C2:C5000)


will do what you want, note that you need to specify the range sizes and
they need to have the same dimensions
in this setup. Also a good policy would be to replace the hardcoded "ABC"
and "XYZ" with cells where instead of changing the formula itself you only
need to change the criteria in those cells

--


Regards,


Peo Sjoblom

"DMcCormack" wrote in message
...
Do anyone know if it is possible to do a sumif function for more than one
condition? What I want to do is sum the items in column C that meet the
criteria of column A = "ABC" and column B = "XYZ"

Can anyone help?

Thanks in advance



  #3  
Old September 23rd, 2008, 04:30 PM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
Default Sumif for multiple conditions

You can do it this way:

=SUMPRODUCT((A1:A100="ABC")*(B1:B100="XYZ")*(C1:C1 00))

Hope this helps.

Pete

On Sep 23, 4:14*pm, DMcCormack
wrote:
Do anyone know if it is possible to do a sumif function for more than one
condition? What I want to do is sum the items in column C that meet the
criteria of column A = "ABC" and column B = "XYZ"

Can anyone help?

Thanks in advance


  #4  
Old September 23rd, 2008, 04:30 PM posted to microsoft.public.excel.worksheet.functions
~L
external usenet poster
 
Posts: 170
Default Sumif for multiple conditions

Assuming you have column headers in row 1 and the data does not exceed row
5000:

=SUMPRODUCT(--($A$2:$A$5000="ABC"),--($B$2:$B$5000="XYZ"),$C$2:$C$5000)


"DMcCormack" wrote:

Do anyone know if it is possible to do a sumif function for more than one
condition? What I want to do is sum the items in column C that meet the
criteria of column A = "ABC" and column B = "XYZ"

Can anyone help?

Thanks in advance

 




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 02:31 AM.


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