Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Eqa
 
Posts: n/a
Default sumif using today's date

I am trying to use SUMIF. In column A I have dates and column B there are
dollar values. I am trying to sum all dollar values due from today out to the
next 7 days. How do I add 2 criteria to the sumif formula?
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default sumif using today's date

2 ways

=SUMIF(A2:A30,"="&TODAY(),B2:B30)-SUMIF(A2:A30,""&TODAY()+7,B2:B30)

format result as non date

or

=SUMPRODUCT(--(A2:A30=TODAY()),--(A2:A30<=TODAY()+7),B2:B30)

--
Regards,

Peo Sjoblom

(No private emails please)


"Eqa" wrote in message
...
I am trying to use SUMIF. In column A I have dates and column B there are
dollar values. I am trying to sum all dollar values due from today out to
the
next 7 days. How do I add 2 criteria to the sumif formula?


  #3   Report Post  
Biff
 
Posts: n/a
Default sumif using today's date

Hi!

Try one of these:

=SUMIF(A1:A13,"="&TODAY(),B1:B13)-SUMIF(A1:A13,""&TODAY()+7,B1:B13)

=SUMPRODUCT(--(A1:A13=TODAY()),--(A1:A13<=TODAY()+7),B1:B13)

You could even use a helper cell:

C1 =TODAY()

Then:

=SUMIF(A1:A13,"="&C1,B1:B13)-SUMIF(A1:A13,""&C1+7,B1:B13)

=SUMPRODUCT(--(A1:A13=C1),--(A1:A13<=C1+7),B1:B13)

Biff

"Eqa" wrote in message
...
I am trying to use SUMIF. In column A I have dates and column B there are
dollar values. I am trying to sum all dollar values due from today out to
the
next 7 days. How do I add 2 criteria to the sumif formula?



  #4   Report Post  
Eqa
 
Posts: n/a
Default sumif using today's date

Thanks That is great and NOW seems so easy.

"Peo Sjoblom" wrote:

2 ways

=SUMIF(A2:A30,"="&TODAY(),B2:B30)-SUMIF(A2:A30,""&TODAY()+7,B2:B30)

format result as non date

or

=SUMPRODUCT(--(A2:A30=TODAY()),--(A2:A30<=TODAY()+7),B2:B30)

--
Regards,

Peo Sjoblom

(No private emails please)


"Eqa" wrote in message
...
I am trying to use SUMIF. In column A I have dates and column B there are
dollar values. I am trying to sum all dollar values due from today out to
the
next 7 days. How do I add 2 criteria to the sumif formula?



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 sum a range if the date is is greater than today's date? S2 Excel Worksheet Functions 4 October 8th 05 08:11 PM
NETWORKDAYS - Multiple Date Selection Annabelle Excel Discussion (Misc queries) 3 October 4th 05 07:04 PM
Setting traffic lights based on todays date against target dates HDV Excel Discussion (Misc queries) 2 September 14th 05 12:05 PM
Activating "Todays Date" column upon opening? Jeremy H via OfficeKB.com Excel Discussion (Misc queries) 3 August 25th 05 02:36 AM
calculate no. of years between a date and today's date Sue Excel Worksheet Functions 10 June 14th 05 02:56 AM


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