Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 102
Default Trickey SumProduct with Multiple Conditions


=SUMPRODUCT(--(A1:A24="Ted"),--(B1:B24="May"),--(C1:C24))
column a <Person, column b <Month, Column C <Cost

I need to total all of Ted's Costs for May.
But Now I need to do it for the quarter.
So for say January, Feburary, March and April, four month blocks.
How would I tweak Sumproduct to do that ...
All cost for those four months.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Trickey SumProduct with Multiple Conditions

List the month names for the quarter in a range of cells:

E1 = Jan
E2 = Feb
E3 = Mar
E4 = Apr

F1 = Ted

Then:

=SUMPRODUCT(--(A1:A24=F1),--(ISNUMBER(MATCH(B1:B24,E1:E4,0))),C1:C24)


--
Biff
Microsoft Excel MVP


"Benjamin" wrote in message
...

=SUMPRODUCT(--(A1:A24="Ted"),--(B1:B24="May"),--(C1:C24))
column a <Person, column b <Month, Column C <Cost

I need to total all of Ted's Costs for May.
But Now I need to do it for the quarter.
So for say January, Feburary, March and April, four month blocks.
How would I tweak Sumproduct to do that ...
All cost for those four months.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default Trickey SumProduct with Multiple Conditions

Give this a try:
=SUMPRODUCT(--(A1:A24="Ted"),--(B1:B24="January")+(B1:B24="February")+(B1:B24="Ma rch")+(B1:B24="April"),--(C1:C24))

http://www.excelforum.com/excel-work...l-countif.html

HTH,
Ryan---

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Benjamin" wrote:


=SUMPRODUCT(--(A1:A24="Ted"),--(B1:B24="May"),--(C1:C24))
column a <Person, column b <Month, Column C <Cost

I need to total all of Ted's Costs for May.
But Now I need to do it for the quarter.
So for say January, Feburary, March and April, four month blocks.
How would I tweak Sumproduct to do that ...
All cost for those four months.

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
SUMPRODUCT multiple conditions jwfullerton Excel Discussion (Misc queries) 1 February 26th 08 12:21 AM
SUMPRODUCT or INDEX/MATCH for multiple conditions and multiple rec TravisB Excel Discussion (Misc queries) 21 March 16th 07 09:49 PM
Sumproduct Multiple < Conditions undrline via OfficeKB.com Excel Worksheet Functions 4 March 15th 07 06:04 PM
Multiple SumProduct conditions wal50 Excel Worksheet Functions 3 November 23rd 04 10:48 PM
Sumproduct Multiple Conditions Tysone Excel Worksheet Functions 3 November 10th 04 03:03 PM


All times are GMT +1. The time now is 02:56 AM.

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

About Us

"It's about Microsoft Excel"