Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default Sumif with multiple criteria with an extra twist

In Excel 2003, I need to sum some information with multiple criteria, but
there is an extra spin on it. Here is my data:

Transaction Amount
Category Customer Jan Feb Mar Apr YTD
Pizza A 20 15 23 39 97
B 15 12 9 10 46
C 25 25 30 10 90
Drinks A 10 5 8 12 35
B 10 8 10 10 38
C 15 20 12 19 66

I need to create a report that SUMs the total amount spent (regardless of
whether it is pizza or drinks) by Customer A in January (or any other month
that I specify). Essentially, I have two criteria - one in a row and one in
a column. Is this possible?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Sumif with multiple criteria with an extra twist

Try this:

A15 = customer
B15 = month

=SUMIF(B2:B7,A15,INDEX(C2:F7,,MATCH(B15,C1:F1,0)))

--
Biff
Microsoft Excel MVP


"Peanut" wrote in message
...
In Excel 2003, I need to sum some information with multiple criteria, but
there is an extra spin on it. Here is my data:

Transaction Amount
Category Customer Jan Feb Mar Apr YTD
Pizza A 20 15 23 39 97
B 15 12 9 10 46
C 25 25 30 10 90
Drinks A 10 5 8 12 35
B 10 8 10 10 38
C 15 20 12 19 66

I need to create a report that SUMs the total amount spent (regardless of
whether it is pizza or drinks) by Customer A in January (or any other
month
that I specify). Essentially, I have two criteria - one in a row and one
in
a column. Is this possible?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default Sumif with multiple criteria with an extra twist

This works great, but oddly enough the customer value of "C" does not work.
If I change that same customer to another letter, it works just fine. Weird.

But now I have another question. Is there a way to count how many products
Customer A bought in a certain month? With this small of a data set, it is
easy to count by hand, but my data will end up being an indefinite length by
year end.

Thanks.


"T. Valko" wrote:

Try this:

A15 = customer
B15 = month

=SUMIF(B2:B7,A15,INDEX(C2:F7,,MATCH(B15,C1:F1,0)))

--
Biff
Microsoft Excel MVP


"Peanut" wrote in message
...
In Excel 2003, I need to sum some information with multiple criteria, but
there is an extra spin on it. Here is my data:

Transaction Amount
Category Customer Jan Feb Mar Apr YTD
Pizza A 20 15 23 39 97
B 15 12 9 10 46
C 25 25 30 10 90
Drinks A 10 5 8 12 35
B 10 8 10 10 38
C 15 20 12 19 66

I need to create a report that SUMs the total amount spent (regardless of
whether it is pizza or drinks) by Customer A in January (or any other
month
that I specify). Essentially, I have two criteria - one in a row and one
in
a column. Is this possible?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default Sumif with multiple criteria with an extra twist

Nevermind. I did get C to work. :)

"Peanut" wrote:

This works great, but oddly enough the customer value of "C" does not work.
If I change that same customer to another letter, it works just fine. Weird.

But now I have another question. Is there a way to count how many products
Customer A bought in a certain month? With this small of a data set, it is
easy to count by hand, but my data will end up being an indefinite length by
year end.

Thanks.


"T. Valko" wrote:

Try this:

A15 = customer
B15 = month

=SUMIF(B2:B7,A15,INDEX(C2:F7,,MATCH(B15,C1:F1,0)))

--
Biff
Microsoft Excel MVP


"Peanut" wrote in message
...
In Excel 2003, I need to sum some information with multiple criteria, but
there is an extra spin on it. Here is my data:

Transaction Amount
Category Customer Jan Feb Mar Apr YTD
Pizza A 20 15 23 39 97
B 15 12 9 10 46
C 25 25 30 10 90
Drinks A 10 5 8 12 35
B 10 8 10 10 38
C 15 20 12 19 66

I need to create a report that SUMs the total amount spent (regardless of
whether it is pizza or drinks) by Customer A in January (or any other
month
that I specify). Essentially, I have two criteria - one in a row and one
in
a column. Is this possible?




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default Sumif with multiple criteria with an extra twist

Nevermind on my second question as well. I got it. Thanks again.

"Peanut" wrote:

This works great, but oddly enough the customer value of "C" does not work.
If I change that same customer to another letter, it works just fine. Weird.

But now I have another question. Is there a way to count how many products
Customer A bought in a certain month? With this small of a data set, it is
easy to count by hand, but my data will end up being an indefinite length by
year end.

Thanks.


"T. Valko" wrote:

Try this:

A15 = customer
B15 = month

=SUMIF(B2:B7,A15,INDEX(C2:F7,,MATCH(B15,C1:F1,0)))

--
Biff
Microsoft Excel MVP


"Peanut" wrote in message
...
In Excel 2003, I need to sum some information with multiple criteria, but
there is an extra spin on it. Here is my data:

Transaction Amount
Category Customer Jan Feb Mar Apr YTD
Pizza A 20 15 23 39 97
B 15 12 9 10 46
C 25 25 30 10 90
Drinks A 10 5 8 12 35
B 10 8 10 10 38
C 15 20 12 19 66

I need to create a report that SUMs the total amount spent (regardless of
whether it is pizza or drinks) by Customer A in January (or any other
month
that I specify). Essentially, I have two criteria - one in a row and one
in
a column. Is this possible?






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Sumif with multiple criteria with an extra twist

Hi,

Yes that's possible
=SUMPRODUCT((B2:B7=H1)*(C1:F1=G1)*(C2:F7))

A B C D E
F G H
Category Cus Jan Feb Mar Apr Jan A
Pizza A 8 7 6 5
B 8 4 8 6
C 9 5 9 7
Drinks A 10 6 10 8
B 11 7 11 9
C 12 8 12 12


mIKE
"Peanut" wrote:

In Excel 2003, I need to sum some information with multiple criteria, but
there is an extra spin on it. Here is my data:

Transaction Amount
Category Customer Jan Feb Mar Apr YTD
Pizza A 20 15 23 39 97
B 15 12 9 10 46
C 25 25 30 10 90
Drinks A 10 5 8 12 35
B 10 8 10 10 38
C 15 20 12 19 66

I need to create a report that SUMs the total amount spent (regardless of
whether it is pizza or drinks) by Customer A in January (or any other month
that I specify). Essentially, I have two criteria - one in a row and one in
a column. Is this possible?

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default Sumif with multiple criteria with an extra twist

This works. Thank you for your help!

"Mike H" wrote:

Hi,

Yes that's possible
=SUMPRODUCT((B2:B7=H1)*(C1:F1=G1)*(C2:F7))

A B C D E
F G H
Category Cus Jan Feb Mar Apr Jan A
Pizza A 8 7 6 5
B 8 4 8 6
C 9 5 9 7
Drinks A 10 6 10 8
B 11 7 11 9
C 12 8 12 12


mIKE
"Peanut" wrote:

In Excel 2003, I need to sum some information with multiple criteria, but
there is an extra spin on it. Here is my data:

Transaction Amount
Category Customer Jan Feb Mar Apr YTD
Pizza A 20 15 23 39 97
B 15 12 9 10 46
C 25 25 30 10 90
Drinks A 10 5 8 12 35
B 10 8 10 10 38
C 15 20 12 19 66

I need to create a report that SUMs the total amount spent (regardless of
whether it is pizza or drinks) by Customer A in January (or any other month
that I specify). Essentially, I have two criteria - one in a row and one in
a column. Is this possible?

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Sumif with multiple criteria with an extra twist

=SUMPRODUCT((B2:B7="A")*(MONTH(C1:F1)=1)*(C2:F7))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Peanut" wrote in message
...
In Excel 2003, I need to sum some information with multiple criteria, but
there is an extra spin on it. Here is my data:

Transaction Amount
Category Customer Jan Feb Mar Apr YTD
Pizza A 20 15 23 39 97
B 15 12 9 10 46
C 25 25 30 10 90
Drinks A 10 5 8 12 35
B 10 8 10 10 38
C 15 20 12 19 66

I need to create a report that SUMs the total amount spent (regardless of
whether it is pizza or drinks) by Customer A in January (or any other
month
that I specify). Essentially, I have two criteria - one in a row and one
in
a column. Is this possible?



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 DEE Excel Worksheet Functions 4 November 21st 06 10:04 PM
sumif using multiple criteria RMires Excel Discussion (Misc queries) 3 September 14th 06 03:14 PM
SUMIF with multiple criteria penri0_0 Excel Discussion (Misc queries) 5 May 18th 06 04:55 PM
Sumif with a twist? Bruce Excel Worksheet Functions 1 August 16th 05 10:57 PM


All times are GMT +1. The time now is 07:00 PM.

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"