Apr 14 2023 01:49 AM - edited Apr 14 2023 01:50 AM
Hello everyone,
I want to convert dates to months in the MONTH column. I tried the TEXT function, it worked for some dates but the other dates were unable to be converted. Some dates, such as "." or "/" differ, but how can I resolve this issue? Thank you.
Apr 14 2023 04:40 AM
Apparently you use m.d.y date format. Try
=TEXT(SUBSTITUTE(B2, "/", "."), "mmmm")
Apr 14 2023 05:41 AM
Apr 14 2023 06:05 AM
Apparently your system does not recognize 6/25/19 as a valid date. Instead, it treats it as text, so the date format is ignored.
What happens if you do the following:
Apr 14 2023 06:54 AM
See if this formula works for you:
=TEXT(IF(ISTEXT(B2),DATE(2000,LEFT(B2,FIND("/",B2)-1),1),B2),"mmmm")