Date Comparrision in SUMIF Formula

jmyeti

New Member
Joined
Aug 12, 2011
Messages
8
I'm trying to use the SUMIF function to search a column (G) of dates for only the rows that are past today's date, then add that row's value in a different column (M) to whatever existing sum it has reached so far. The overall goal is to only add the product counts in column M together to get a total product count for every instance that has a date after today's date.

Here is what I have so far, but it doesn't do any summing and just returns zero: =SUMIF($G6:$G348, DATEVALUE($G6:$G348)>DATEVALUE($C$1), M6:M348)

Thanks!
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Thanks Peter, that worked perfectly! I do have some blank rows in the date column. Do I just use AND("",">"&$C$1) in order to capture those row's data as well?
 
Upvote 0
I think that would ignore blanks but if not try

=SUMPRODUCT(--(G6:G348<>""),--(G6:G348>C1),M6:M348)
 
Upvote 0
Do you mean you want to add blanks too?

=SUMPRODUCT(SUMIF($G6:$G348,CHOOSE({1;2},">"&C1,""),M6:M348))
 
Upvote 0
No, I just want to be able to include the rows that I haven't loaded dates for yet, as well as the rows that have dates later than today. Does that make sense? For some accounts, we don't have dates yet, but we know the predicted product count so we want to know what the total forecast will be of counts in column M.
 
Upvote 0

Forum statistics

Threads
1,224,606
Messages
6,179,866
Members
452,948
Latest member
UsmanAli786

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