Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Date Dependant Sum Range

Status
Not open for further replies.

Dawber

Technical User
Jun 29, 2001
86
GB
I have numerous rows of data in date headed columns (See A1:D4 below for example).

[tab][tab] A[tab][tab][tab]B[tab][tab][tab]C[tab][tab][tab]D[tab][tab][tab]E[tab][tab][tab]F
1 25/01[tab] 01/02[tab] 08/02[tab] 15/02[tab]<Today >Today
2[tab][tab]2[tab][tab][tab]1[tab][tab][tab]3[tab][tab][tab]2[tab][tab][tab]3[tab][tab][tab]5
3[tab][tab]1[tab][tab][tab]3[tab][tab][tab]2[tab][tab][tab]1[tab][tab][tab]4[tab][tab][tab]3
4[tab][tab]5[tab][tab][tab]4[tab][tab][tab]2[tab][tab][tab]2[tab][tab][tab]9[tab][tab][tab]4

I would like to have two additional columns which sum the corresponding values, depending on today's date (See columns E and F above, based on a date of 04/02).
 
Formula in E1 (similarly F1):
[tt]=SUMPRODUCT(--(A1:D1<TODAY()),A2:D2)[/tt]

combo
 
Thanks combo, exactly what I was after.
 



ONE formula for each column...
[tt]
E2: =SUMPRODUCT(--($A$1:$D$1<TODAY()),$A2:$D2)
F2: =SUMPRODUCT(--($A$1:$D$1>=TODAY()),$A2:$D2)
[/tt]
code in E2&F2 respecively & copy down thru rows.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top