Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
brodiemac
 
Posts: n/a
Default SUMIF with two criteria

Here's the senario. Column A has dates of sales. Column B has the sales
person's name. Column C has the amount of the sale. What I am looking for
is a sumif statement that will total the sales in column C by salesperson in
between specific dates. So for example, I want all the sales for John Smith
totaled between the dates of 4/1/05 and 4/30/05. I've tried a bunch of
different things but have had no luck getting this to work. Any help is
appreciated.
  #2   Report Post  
Domenic
 
Posts: n/a
Default

Try...

=SUMPRODUCT(--($A$2:$A$10=DATE(2005,4,1)),--($A$2:$A$10<=DATE(2005,4,30)
),--($B$2:$B$10="John Smith"),$C$2:$C$10)

OR

=SUMPRODUCT(--($A$2:$A$10=D1),--($A$2:$A$10<=E1),--($B$2:$B$10=F1),$C$2:
$C$10)

....where D1 contains the start date, E1 contains our end date, and F1
contains the salesperson of interest. Adjust the ranges accordingly.

Hope this helps!

In article ,
brodiemac wrote:

Here's the senario. Column A has dates of sales. Column B has the sales
person's name. Column C has the amount of the sale. What I am looking for
is a sumif statement that will total the sales in column C by salesperson in
between specific dates. So for example, I want all the sales for John Smith
totaled between the dates of 4/1/05 and 4/30/05. I've tried a bunch of
different things but have had no luck getting this to work. Any help is
appreciated.

  #3   Report Post  
aristotle
 
Posts: n/a
Default

Hi,

e.g. =SUMPRODUCT(--(A1:A100="John
Smith"),--(B1:B100=38443),--(B1:B100<=38472),C1:C100)

Note:
(1) The dates entered ar the date values, you can refer to cells with the
specific dates within.
(2) SUMPRODUCT() cannot cope with whole columns hence why I have specified
row reference within it.

Regards,
A

"brodiemac" wrote:

Here's the senario. Column A has dates of sales. Column B has the sales
person's name. Column C has the amount of the sale. What I am looking for
is a sumif statement that will total the sales in column C by salesperson in
between specific dates. So for example, I want all the sales for John Smith
totaled between the dates of 4/1/05 and 4/30/05. I've tried a bunch of
different things but have had no luck getting this to work. Any help is
appreciated.

  #4   Report Post  
brodiemac
 
Posts: n/a
Default

That's it exactly. It was the DATE(yyyy,mm,dd) that was screwing me up.
Thanks!

"Domenic" wrote:

Try...

=SUMPRODUCT(--($A$2:$A$10=DATE(2005,4,1)),--($A$2:$A$10<=DATE(2005,4,30)
),--($B$2:$B$10="John Smith"),$C$2:$C$10)

OR

=SUMPRODUCT(--($A$2:$A$10=D1),--($A$2:$A$10<=E1),--($B$2:$B$10=F1),$C$2:
$C$10)

....where D1 contains the start date, E1 contains our end date, and F1
contains the salesperson of interest. Adjust the ranges accordingly.

Hope this helps!

In article ,
brodiemac wrote:

Here's the senario. Column A has dates of sales. Column B has the sales
person's name. Column C has the amount of the sale. What I am looking for
is a sumif statement that will total the sales in column C by salesperson in
between specific dates. So for example, I want all the sales for John Smith
totaled between the dates of 4/1/05 and 4/30/05. I've tried a bunch of
different things but have had no luck getting this to work. Any help is
appreciated.


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 use the sumif if I have multiple criteria (i.e. greater . Kellyatisl Excel Worksheet Functions 3 June 4th 06 06:33 AM
SUMIF with Mutiple Ranges & Criteria PokerZan Excel Discussion (Misc queries) 5 August 4th 05 10:31 PM
SUMIF using VLOOKUP as criteria Telly Excel Worksheet Functions 1 February 18th 05 10:17 PM
"criteria" in a sumif refering to the value in another cell mark Excel Discussion (Misc queries) 1 January 31st 05 07:39 PM
Can I use a cell reference in the criteria for the sumif function. Number Cruncher Excel Worksheet Functions 2 November 4th 04 07:52 PM


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