Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Referring to the post in General Question
In cell a1, it contains text "2024--01-2007", and I would like to convert into 24-01-2007 for date format. Through this command, RIGHT(SUBSTITUTE("2024--01-2007","--","-"),10) is successfully converted to "24-01-2007", but this text cannot be recognized as a date format. Does anyone have any suggestion on how to convert this text into date format? Thank for any suggestion Eric |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
How about
=DATE(RIGHT(A1,4),MID(A1,7,2),MID(A1,3,2)) & format as a date "Eric" wrote: Referring to the post in General Question In cell a1, it contains text "2024--01-2007", and I would like to convert into 24-01-2007 for date format. Through this command, RIGHT(SUBSTITUTE("2024--01-2007","--","-"),10) is successfully converted to "24-01-2007", but this text cannot be recognized as a date format. Does anyone have any suggestion on how to convert this text into date format? Thank for any suggestion Eric |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try this formula from the original text ("2024--01-2007")
=DATE(RIGHT(A1,4),MID(A1,7,2),MID(A1,3,2)) Regards, Stefi €žEric€ť ezt Ă*rta: Referring to the post in General Question In cell a1, it contains text "2024--01-2007", and I would like to convert into 24-01-2007 for date format. Through this command, RIGHT(SUBSTITUTE("2024--01-2007","--","-"),10) is successfully converted to "24-01-2007", but this text cannot be recognized as a date format. Does anyone have any suggestion on how to convert this text into date format? Thank for any suggestion Eric |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thank everyone, it works
Eric "Stefi" wrote: Try this formula from the original text ("2024--01-2007") =DATE(RIGHT(A1,4),MID(A1,7,2),MID(A1,3,2)) Regards, Stefi €žEric€ť ezt Ă*rta: Referring to the post in General Question In cell a1, it contains text "2024--01-2007", and I would like to convert into 24-01-2007 for date format. Through this command, RIGHT(SUBSTITUTE("2024--01-2007","--","-"),10) is successfully converted to "24-01-2007", but this text cannot be recognized as a date format. Does anyone have any suggestion on how to convert this text into date format? Thank for any suggestion Eric |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You are welcome! Thanks for the feedback!
Stefi €žEric€ť ezt Ă*rta: Thank everyone, it works Eric "Stefi" wrote: Try this formula from the original text ("2024--01-2007") =DATE(RIGHT(A1,4),MID(A1,7,2),MID(A1,3,2)) Regards, Stefi €žEric€ť ezt Ă*rta: Referring to the post in General Question In cell a1, it contains text "2024--01-2007", and I would like to convert into 24-01-2007 for date format. Through this command, RIGHT(SUBSTITUTE("2024--01-2007","--","-"),10) is successfully converted to "24-01-2007", but this text cannot be recognized as a date format. Does anyone have any suggestion on how to convert this text into date format? Thank for any suggestion Eric |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to convert text into date format? | Excel Discussion (Misc queries) | |||
Convert a Date to Text? | Excel Worksheet Functions | |||
Convert Text Entry to Date Format | Excel Discussion (Misc queries) | |||
How do I convert date values to non-date format e.g. 01-06-78? | Excel Discussion (Misc queries) | |||
Excel enters date as a text format | Excel Discussion (Misc queries) |