sumif using today's date

G

Guest

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?
 
P

Peo Sjoblom

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)
 
B

Biff

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
 
G

Guest

Thanks That is great and NOW seems so easy.

Peo Sjoblom said:
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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

sumproduct or sumif? 3
Sumif comparing dates in criteria 1
Sumif formula 4
how do you include todays date in SUMIF formulas 1
Sumif ">today()" 1
SUMIF by Week. 8
SUMIF with multiple conditions 5
SUMIF Criteria 5

Top