Sumif earlier than today

AwesomeSteph

Board Regular
Joined
Aug 18, 2017
Messages
80
I have tried =SUMIF(A6,"<"&TODAY(),(C6:D6)) there is a 1 in both C6 and D6 and the date in A6 is 4 days ago so the result should be 2. I don't know why it is not summing it up. Also that is not my main objective what I want is for C5 and D6 to be added if the date is in the past but I was trying to figure out the not summing problem before the cells not being adjacent for a range in the formula. Initially I tried =SUMIF(A6,"<="&TODAY(),(C5,D6)) but that resulted in #VALUE !

Any help is greatly appreciated!
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Try
=IF(A6<=TODAY(),SUM(C5,D6),"")
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top