Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
maryj
 
Posts: n/a
Default sumproduct by date

Here is the formula I tried.
=SUMPRODUCT(--(E3:E27=TODAY()),--(E3:E27=TODAY()-1),(H3:H27))
Column E has dates. Column H has the numbers to total. I need the total of
the numbers in Column H if the date is either today or yesterday. This
formula always returns a 0.
--
maryj
  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

Try:

=SUMPRODUCT(--(E3:E27=(TODAY()-1)),(H3:H27))



"maryj" wrote:

Here is the formula I tried.
=SUMPRODUCT(--(E3:E27=TODAY()),--(E3:E27=TODAY()-1),(H3:H27))
Column E has dates. Column H has the numbers to total. I need the total of
the numbers in Column H if the date is either today or yesterday. This
formula always returns a 0.
--
maryj

  #3   Report Post  
Jason Morin
 
Posts: n/a
Default

Your formula returns 0 because you are specifying that the date in col. E
equal today *and* yesterday. Try this instead:

=SUMPRODUCT(((E3:E27=TODAY())+(E3:E27=TODAY()-1))*(H3:H27))

or

=SUMPRODUCT(((E3:E27=TODAY())+(E3:E27=TODAY()-1)),H3:H27)

The "+" operator acts like OR.

HTH
Jason
Atlanta, GA


"maryj" wrote:

Here is the formula I tried.
=SUMPRODUCT(--(E3:E27=TODAY()),--(E3:E27=TODAY()-1),(H3:H27))
Column E has dates. Column H has the numbers to total. I need the total of
the numbers in Column H if the date is either today or yesterday. This
formula always returns a 0.
--
maryj

  #4   Report Post  
maryj
 
Posts: n/a
Default

Thank you! That did it.
--
maryj


"Jason Morin" wrote:

Your formula returns 0 because you are specifying that the date in col. E
equal today *and* yesterday. Try this instead:

=SUMPRODUCT(((E3:E27=TODAY())+(E3:E27=TODAY()-1))*(H3:H27))

or

=SUMPRODUCT(((E3:E27=TODAY())+(E3:E27=TODAY()-1)),H3:H27)

The "+" operator acts like OR.

HTH
Jason
Atlanta, GA


"maryj" wrote:

Here is the formula I tried.
=SUMPRODUCT(--(E3:E27=TODAY()),--(E3:E27=TODAY()-1),(H3:H27))
Column E has dates. Column H has the numbers to total. I need the total of
the numbers in Column H if the date is either today or yesterday. This
formula always returns a 0.
--
maryj

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 with Date column JerryS Excel Worksheet Functions 2 June 6th 05 11:45 PM
Using sumproduct to count number by date JerryS Excel Worksheet Functions 2 June 6th 05 10:37 PM
SUMPRODUCT + DATE = 0 nfbelo Excel Worksheet Functions 5 May 24th 05 02:10 PM
SUMPRODUCT + DATE = 0 nfbelo Excel Worksheet Functions 0 May 24th 05 09:38 AM
SUMPRODUCT with date range question Rob V Excel Discussion (Misc queries) 1 January 31st 05 03:55 PM


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