A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi Beejay. i am an Excel user like you.
I don't see any issue with the formula as you posted it. Since lines 2-5 are the ones not working--all of them referirng to the criteria in J2--my best guess is that the data in J2 is not formatted as a date. There are several reasons that this could happen, and you cannot depend on what it says the cell is formatted as. The data can still be formatted as text.
The easiest way to determine if a number/date in a cell is formatted as a number is to change the format for that cell. Change a date to currency or vice versa. You can always change it back because it doesn't change the value in the cell, only the way it looks. If it doesn't change, then it isn't saved as a number/date format.
If the data is coming from a formula, some formulas result in a text expression rather than a number even though it may look correct. If you are getting this from a formula you can try this.
Modify your formula in J2 by adding a DATEVALUE function around your formula and then format it as a date.
=DATEVALUE(your formula)