Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default SUMIF with multiple criteria

Does anyone know how to do a SUMIF which will allow you to enter two ranges
which apply to two sets of criteria? For example, I have the following data,
and I would like to write a formula that will sum for me the red Ds only.
(answer = 3)

colour letter amount
red F 3
orange D 5
yellow B 4
purple E 2
red D 3
orange B 5
yellow E 4
purple F 2

I normally write this in two steps, but I wonder if it is possible to do it
all in one formula?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,089
Default SUMIF with multiple criteria

=SUMPRODUCT((A2:A9="red")*(B2:B9="D")*(C2:C9))

Regards

Trevor


"Plum" wrote in message
...
Does anyone know how to do a SUMIF which will allow you to enter two
ranges
which apply to two sets of criteria? For example, I have the following
data,
and I would like to write a formula that will sum for me the red Ds only.
(answer = 3)

colour letter amount
red F 3
orange D 5
yellow B 4
purple E 2
red D 3
orange B 5
yellow E 4
purple F 2

I normally write this in two steps, but I wonder if it is possible to do
it
all in one formula?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default SUMIF with multiple criteria

Use SUMPRODUCT:

=SUMPRODUCT(--(A1:A8="red"),--(B1:B8="D")*(C1:C8))

you can use it for many criteria
--
Gary''s Student - gsnu200717


"Plum" wrote:

Does anyone know how to do a SUMIF which will allow you to enter two ranges
which apply to two sets of criteria? For example, I have the following data,
and I would like to write a formula that will sum for me the red Ds only.
(answer = 3)

colour letter amount
red F 3
orange D 5
yellow B 4
purple E 2
red D 3
orange B 5
yellow E 4
purple F 2

I normally write this in two steps, but I wonder if it is possible to do it
all in one formula?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default SUMIF with multiple criteria

perfect - thanks so much.

"Gary''s Student" wrote:

Use SUMPRODUCT:

=SUMPRODUCT(--(A1:A8="red"),--(B1:B8="D")*(C1:C8))

you can use it for many criteria
--
Gary''s Student - gsnu200717


"Plum" wrote:

Does anyone know how to do a SUMIF which will allow you to enter two ranges
which apply to two sets of criteria? For example, I have the following data,
and I would like to write a formula that will sum for me the red Ds only.
(answer = 3)

colour letter amount
red F 3
orange D 5
yellow B 4
purple E 2
red D 3
orange B 5
yellow E 4
purple F 2

I normally write this in two steps, but I wonder if it is possible to do it
all in one formula?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 947
Default SUMIF with multiple criteria

Does anyone know how to do a SUMIF...
which apply to two sets of criteria?


Hi. If using range names in Excel 2007...

=SUMIFS(Number,Color,"Red",Letter,"D")

--
HTH :)
Dana DeLouis
Windows XP & Office 2007


"Plum" wrote in message
...
Does anyone know how to do a SUMIF which will allow you to enter two
ranges
which apply to two sets of criteria? For example, I have the following
data,
and I would like to write a formula that will sum for me the red Ds only.
(answer = 3)

colour letter amount
red F 3
orange D 5
yellow B 4
purple E 2
red D 3
orange B 5
yellow E 4
purple F 2

I normally write this in two steps, but I wonder if it is possible to do
it
all in one formula?



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
Sumif with multiple criteria tina Excel Discussion (Misc queries) 4 February 2nd 07 09:10 PM
SUMIF WITH MULTIPLE CRITERIA Franko Excel Discussion (Misc queries) 3 December 27th 06 08:43 AM
SUMIF with multiple criteria penri0_0 Excel Discussion (Misc queries) 5 May 18th 06 04:55 PM
Multiple SUMIF Criteria azazel Excel Worksheet Functions 3 November 10th 05 08:31 PM
Sumif - multiple criteria Anat Excel Discussion (Misc queries) 1 July 14th 05 03:01 AM


All times are GMT +1. The time now is 01:12 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"