Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
George
 
Posts: n/a
Default How do i change the date 6302000 to 6/30/2000 ?

I want to format date cells from 6302000 to 6/30/2000. Could you please help
with this?
  #2   Report Post  
CLR
 
Posts: n/a
Default

=LEFT(A1,1)&"/"&MID(A1,2,2)&"/"&RIGHT(A1,4) will do the sample date you have
given,
but we need a little more info to be able to help more.........do you have
many "dates" like this to do?.........do the single digit months have
leading zeros? are there double digit months in your data of
interest?..........are the days always two digits?

Vaya con Dios,
Chuck, CABGx3

"George" wrote in message
...
I want to format date cells from 6302000 to 6/30/2000. Could you please

help
with this?



  #3   Report Post  
Govind
 
Posts: n/a
Default

Hi,

If the value 6302000 is in Cell A1, You can use this formula in B1

=TEXT(DATE(RIGHT(A1,4),LEFT(A1,1),MID(A1,2,2)),"mm/dd/yyyy")

This will work as long as the length of the date cells are constant.If
the length of the date cells are not constant, then use this

=IF(LEN(A1)=7,TEXT(DATE(RIGHT(A1,4),LEFT(A1,1),MID (A1,2,2)),"mm/dd/yyyy"),TEXT(DATE(RIGHT(A1,4),LEFT(A1,2),MID(A1,3,2 )),"mm/dd/yyyy"))

Regards

Govind.

George wrote:
I want to format date cells from 6302000 to 6/30/2000. Could you please help
with this?

  #4   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

=SUBSTITUTE(TEXT(A1,"00-00-0000"),"-","/")+0

George wrote:
I want to format date cells from 6302000 to 6/30/2000. Could you please help
with this?

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 do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
change yyyy date to yy Linda Hart Excel Discussion (Misc queries) 2 July 8th 05 02:43 PM
Change cell according to date Phil Excel Worksheet Functions 0 January 8th 05 10:32 AM
Automatic date change when spreadsheet changes RobertSP Excel Worksheet Functions 0 November 2nd 04 02:25 PM
Automatic date change when spreadsheet changes RobertSP Excel Worksheet Functions 1 November 1st 04 09:07 PM


All times are GMT +1. The time now is 04:25 PM.

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"