Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,670
Default How to convert text into date format?

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default How to convert text into date format?

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default How to convert text into date format?

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,670
Default How to convert text into date format?

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default How to convert text into date format?

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert text into date format? Eric Excel Discussion (Misc queries) 6 January 24th 07 03:27 PM
Convert a Date to Text? Dave76Mizzou Excel Worksheet Functions 1 March 9th 06 01:32 AM
Convert Text Entry to Date Format User Excel Discussion (Misc queries) 1 November 16th 05 08:40 PM
How do I convert date values to non-date format e.g. 01-06-78? mikelenno Excel Discussion (Misc queries) 2 July 8th 05 08:51 PM
Excel enters date as a text format Kane Excel Discussion (Misc queries) 3 March 22nd 05 09:20 PM


All times are GMT +1. The time now is 09:39 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"