Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Sum within a date range meeting one other criteria

I have 3 Columns, DATE, SALES, SALESPERSON.

I want to write a formula that states: If the date is more than 2
weeks ago what is the total sales by salesperson?

I tried a few versions of SUMIF and could not seem to get it to work.

=SUMIF(C:C,"<="&TODAY()-7,D:D) returns the amount for all sales but I
cannot figure out how to add the other variable of salesperson to the
mix. Thanks for any help.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Sum within a date range meeting one other criteria

Try this:

=SUMPRODUCT(--(C1:C100<=TODAY()-14),--(B1:B100="Joe"),D1:D100)

Note: you can't use entire columns as range references with Sumproduct
unless you're using Excel 2007.

Biff

wrote in message
ups.com...
I have 3 Columns, DATE, SALES, SALESPERSON.

I want to write a formula that states: If the date is more than 2
weeks ago what is the total sales by salesperson?

I tried a few versions of SUMIF and could not seem to get it to work.

=SUMIF(C:C,"<="&TODAY()-7,D:D) returns the amount for all sales but I
cannot figure out how to add the other variable of salesperson to the
mix. Thanks for any help.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Sum within a date range meeting one other criteria

Biff, that was right on the money! I also did not know about using
entire colums as a refence. Thanks for the help!

On Jan 27, 10:15 pm, "T. Valko" wrote:
Try this:

=SUMPRODUCT(--(C1:C100<=TODAY()-14),--(B1:B100="Joe"),D1:D100)

Note: you can't use entire columns as range references with Sumproduct
unless you're using Excel 2007.

Biff

wrote in oglegroups.com...



I have 3 Columns, DATE, SALES, SALESPERSON.


I want to write a formula that states: If the date is more than 2
weeks ago what is the total sales by salesperson?


I tried a few versions of SUMIF and could not seem to get it to work.


=SUMIF(C:C,"<="&TODAY()-7,D:D) returns the amount for all sales but I
cannot figure out how to add the other variable of salesperson to the
mix. Thanks for any help.- Hide quoted text -- Show quoted text -


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Sum within a date range meeting one other criteria

You're welcome. Thanks for the feedback!

Biff

wrote in message
ups.com...
Biff, that was right on the money! I also did not know about using
entire colums as a refence. Thanks for the help!

On Jan 27, 10:15 pm, "T. Valko" wrote:
Try this:

=SUMPRODUCT(--(C1:C100<=TODAY()-14),--(B1:B100="Joe"),D1:D100)

Note: you can't use entire columns as range references with Sumproduct
unless you're using Excel 2007.

Biff

wrote in
oglegroups.com...



I have 3 Columns, DATE, SALES, SALESPERSON.


I want to write a formula that states: If the date is more than 2
weeks ago what is the total sales by salesperson?


I tried a few versions of SUMIF and could not seem to get it to work.


=SUMIF(C:C,"<="&TODAY()-7,D:D) returns the amount for all sales but I
cannot figure out how to add the other variable of salesperson to the
mix. Thanks for any help.- Hide quoted text -- Show quoted text -




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
DSUM - non contiguous criteria range Nick''s brother Excel Worksheet Functions 8 January 27th 07 01:39 PM
Find dates in a range; then sum values in that range by a criteria Anders Excel Discussion (Misc queries) 4 October 21st 05 03:41 PM
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
Sum range of values that meet date criteria Ed Wurster Excel Discussion (Misc queries) 2 April 11th 05 08:06 PM
dsum with date criteria Jed Martin Excel Worksheet Functions 0 March 24th 05 05:29 PM


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