Forum Discussion
MAXIFS with DATEVALUE
- Jan 25, 2023
Maybe, I'm not sure which ranges are to be taken. That was only to illustrate that named range causes no error with MAXIFS if only it returns correct data. In our case that shall be dates, not texts as with your variant.
To be sure you may return spill such named range at any place and check with ISTEXT() do you have texts or dates.
The MAXIFS result 05/07/1962 is incorrect because criteria2 (SurvE,$B$3) has only dates in 2022.
The text to date conversion should be on VisitDateText in VisitData!M:M, not FishData!P:P. I have a mistake in the reference for VisitDate.
Maybe, I'm not sure which ranges are to be taken. That was only to illustrate that named range causes no error with MAXIFS if only it returns correct data. In our case that shall be dates, not texts as with your variant.
To be sure you may return spill such named range at any place and check with ISTEXT() do you have texts or dates.
- SergeiBaklanJan 26, 2023Diamond Contributor
scheij , thank you for the update, glad to help
- scheijJan 25, 2023Copper Contributor
My entire problem is traced back to my mistake in the reference to the range named VisitDate. With that reference correct now, MAXIFS gives correct result for both text to date conversions in LF!P:P and LF!R:R. I wanted to attach a final copy, but maybe there is a limit. Thank you for your help with this