I am attaching a small example file demonstrating my problem.
In cell D30 I have:
=SUMIFS(E3:E27,B3:B27,">=1/1/2021",B3:B27,"<=31/1/2021")
This returns the result I expect, a sum total of E7:E19, being between the dates 1/1/21 and 31/1/21 in column B.
In cell D31 I have:
=SUMIFS(E3:E27,B3:B27,">="&B30,B3:B27,"<="&B31)
This returns 0.
The dates in cells B30 and B31 are the results of formulas, =DATE(YEAR(TODAY()),MONTH(TODAY()),1) and =DATE(YEAR(TODAY()),MONTH(TODAY())+1,1)-1.
Dates are formatted as dates.
I cannot understand why the formula using cell references won't work as I expect it to.
Bookmarks