Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default SUMIF with 2 creteria one Name one DAte

A1_A5 Name Brian, Chris, Brian , Chris, Brian
B1_B5 Date 1/1/2006, 2/15/2006, 1/15/2006, 2/29/2006, 2/3/2006
C1_C5 $ 100, 150 , 250, 95,
10

I Need
How many times Brian sold somthin in january (2) or Chris (0) in february
Chris (2) brian (1)

How many Money January Brian (350) or Chris (0) in february Chris (245)
brian (10)

i like to use sumif ??? for the money and countif ????? for Sales but i
dnt know the formulars. Ineed help
Thank You

Rolf



  #2   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default SUMIF with 2 creteria one Name one DAte

Using your example data:

How many sales Brian had in January (2):
=SUMPRODUCT(--(A1:A5="Brian"),--(MONTH(B1:B5)=1))

The dollar value of those sales ($350):
=SUMPRODUCT(--(A1:A5="Brian"),--(MONTH(B1:B5)=1),C1:C5)


Modify as needed. Note 2/29/06 is not a valid date.

"Rolf" wrote:

A1_A5 Name Brian, Chris, Brian , Chris, Brian
B1_B5 Date 1/1/2006, 2/15/2006, 1/15/2006, 2/29/2006, 2/3/2006
C1_C5 $ 100, 150 , 250, 95,
10

I Need
How many times Brian sold somthin in january (2) or Chris (0) in february
Chris (2) brian (1)

How many Money January Brian (350) or Chris (0) in february Chris (245)
brian (10)

i like to use sumif ??? for the money and countif ????? for Sales but i
dnt know the formulars. Ineed help
Thank You

Rolf



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default SUMIF with 2 creteria one Name one DAte

Seeing as you have different years, you might want to include the year test

=SUMPRODUCT(--(A1:A5="Brian"),--(YEAR(B1:B5)=2006),--(MONTH(B1:B5)=1),C1:C5)


--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)
"JMB" wrote in message
...
Using your example data:

How many sales Brian had in January (2):
=SUMPRODUCT(--(A1:A5="Brian"),--(MONTH(B1:B5)=1))

The dollar value of those sales ($350):
=SUMPRODUCT(--(A1:A5="Brian"),--(MONTH(B1:B5)=1),C1:C5)


Modify as needed. Note 2/29/06 is not a valid date.

"Rolf" wrote:

A1_A5 Name Brian, Chris, Brian , Chris,
Brian
B1_B5 Date 1/1/2006, 2/15/2006, 1/15/2006, 2/29/2006, 2/3/2006
C1_C5 $ 100, 150 , 250, 95,
10

I Need
How many times Brian sold somthin in january (2) or Chris (0) in
february
Chris (2) brian (1)

How many Money January Brian (350) or Chris (0) in february Chris (245)
brian (10)

i like to use sumif ??? for the money and countif ????? for Sales but
i
dnt know the formulars. Ineed help
Thank You

Rolf





  #4   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default SUMIF with 2 creteria one Name one DAte

I don't see two different years, but if it is possible, then the OP should
surely include the year test.


"Bob Phillips" wrote:

Seeing as you have different years, you might want to include the year test

=SUMPRODUCT(--(A1:A5="Brian"),--(YEAR(B1:B5)=2006),--(MONTH(B1:B5)=1),C1:C5)


--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)
"JMB" wrote in message
...
Using your example data:

How many sales Brian had in January (2):
=SUMPRODUCT(--(A1:A5="Brian"),--(MONTH(B1:B5)=1))

The dollar value of those sales ($350):
=SUMPRODUCT(--(A1:A5="Brian"),--(MONTH(B1:B5)=1),C1:C5)


Modify as needed. Note 2/29/06 is not a valid date.

"Rolf" wrote:

A1_A5 Name Brian, Chris, Brian , Chris,
Brian
B1_B5 Date 1/1/2006, 2/15/2006, 1/15/2006, 2/29/2006, 2/3/2006
C1_C5 $ 100, 150 , 250, 95,
10

I Need
How many times Brian sold somthin in january (2) or Chris (0) in
february
Chris (2) brian (1)

How many Money January Brian (350) or Chris (0) in february Chris (245)
brian (10)

i like to use sumif ??? for the money and countif ????? for Sales but
i
dnt know the formulars. Ineed help
Thank You

Rolf






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
How do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
how to use sumif function to check date in 1 sheet is < 2 sheet Bharat Saboo Excel Worksheet Functions 3 December 30th 05 07:10 AM
Another Date issue. TimM Excel Worksheet Functions 1 November 17th 05 01:58 AM
sumif using today's date Eqa Excel Discussion (Misc queries) 3 November 9th 05 05:29 AM


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