I am trying to find dates within 30 days in Column B
. If the date matches the range it should sum all those that match in column I
.
I have tried this formula:
=SUMIF(B:B,">="&TODAY()-30,I:I)
It won't work in Google Sheets. I tried moving the date outside but that didn't work either.
Best Answer
You should use the
DATEVALUE
function:As an alternative you could place the date
=(TODAY()-30)
in a cell (eg cellC1
) and use the formulaFunctions used: