Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,388
Default sumif with 2 variables

i want to create a formulae to sum a range of numbers in a column providing
two conditions are met in other columns.

I can do it using SUMIF for one condition ie. SUMIF(A14:A401,R5,B14:B401)

but how do you add in a second criteria to also be met before the cells
B14:B401 are added

something like SUMIF(A14:A401,R5 and C14:C401,T6 then sum B14:B401)




  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default sumif with 2 variables

=SUMPRODUCT((A14:A401=R5)*(C14:C401=T6)*B14:B401)
--
David Biddulph

"Dave" wrote in message
...
i want to create a formulae to sum a range of numbers in a column providing
two conditions are met in other columns.

I can do it using SUMIF for one condition ie. SUMIF(A14:A401,R5,B14:B401)

but how do you add in a second criteria to also be met before the cells
B14:B401 are added

something like SUMIF(A14:A401,R5 and C14:C401,T6 then sum
B14:B401)






  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default sumif with 2 variables


=SUMPRODUCT(--(A14:A401=R5),--(C14:C401=T6),B14:B401)

If you have Excel 2007, you can use SUMIFS

=SUMIFS(B14:B401,A14:A401,R5,C14:C401,T6)


--
__________________________________
HTH

Bob

"Dave" wrote in message
...
i want to create a formulae to sum a range of numbers in a column providing
two conditions are met in other columns.

I can do it using SUMIF for one condition ie. SUMIF(A14:A401,R5,B14:B401)

but how do you add in a second criteria to also be met before the cells
B14:B401 are added

something like SUMIF(A14:A401,R5 and C14:C401,T6 then sum
B14:B401)






  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,388
Default sumif with 2 variables

Thanx David,
spot on.

"David Biddulph" wrote:

=SUMPRODUCT((A14:A401=R5)*(C14:C401=T6)*B14:B401)
--
David Biddulph

"Dave" wrote in message
...
i want to create a formulae to sum a range of numbers in a column providing
two conditions are met in other columns.

I can do it using SUMIF for one condition ie. SUMIF(A14:A401,R5,B14:B401)

but how do you add in a second criteria to also be met before the cells
B14:B401 are added

something like SUMIF(A14:A401,R5 and C14:C401,T6 then sum
B14:B401)







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 two or more variables B Benton Excel Worksheet Functions 1 October 13th 07 07:12 PM
SUMIF formula for two variables in two columns luciemaxine Excel Worksheet Functions 2 December 3rd 06 04:13 PM
Sumif with multiple variables les8 Excel Discussion (Misc queries) 5 April 8th 06 02:16 AM
SUMIF Formuale with 2 variables CiaraG Excel Worksheet Functions 3 February 15th 06 02:10 PM
SUMIF variables Steve Excel Discussion (Misc queries) 2 February 18th 05 01:32 PM


All times are GMT +1. The time now is 06:56 PM.

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"