Forum Discussion
Jonathan_2112
Oct 09, 2022Copper Contributor
DATEVALUE Function returns #VALUE! Error
I'v tried setting cell format to Text, any thoughts?
HansVogelaar
Oct 09, 2022MVP
If the cell used as argument already contains a "real" date, there is no point in using DATEVALUE.
DATEVALUE expects a text string that looks like a date as argument.
If A1 contains the date 10/09/22, =DATEVALUE(A1) will return #VALUE!
If A1 contains a text value that looks like 10/09/22, =DATEVALUE(A1) will return the date 10/09/22.
Jonathan_2112
Oct 09, 2022Copper Contributor
OK, yes, but I wish to create the serial number form of the date for sorting.