Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Delwyn
 
Posts: n/a
Default How to change date as general "200306" to date "06/2003"

I recieve data with a date formated as general that looks like "200306". I
need to change it to a date format that looks like this "06/2003"

How do I do this
  #2   Report Post  
Earl Kiosterud
 
Posts: n/a
Default

=DATE(LEFT(A2, 4),RIGHT(A2,2),1)

This will actually return a date for Jun 1, 2003, which you can format for
"06/2003" with Format - Cells - Number - Custom:
mm/yyyy.

Or if you don't want a for-real Excel date, you can just convert the text
string:

=RIGHT(A2,2) & "/" & LEFT(A2,4)



--
Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------

"Delwyn" wrote in message
...
I recieve data with a date formated as general that looks like "200306". I
need to change it to a date format that looks like this "06/2003"

How do I do 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
Help: Can I change the date formula from mm/dd/yyyy to "mmm-yy" et wintersunshine Excel Discussion (Misc queries) 7 July 5th 05 10:44 PM
how do i make a date change automatically if i change one before . dpl7579 Excel Discussion (Misc queries) 1 January 11th 05 10:21 PM
How do I change the value in cell based on a future date John W Excel Discussion (Misc queries) 2 December 21st 04 02:27 AM
How would I change a date cell to decrease it by business days? CNGracin Excel Discussion (Misc queries) 3 December 15th 04 06:20 PM
How do you change the date to a Number help me Excel Discussion (Misc queries) 8 December 15th 04 08:54 AM


All times are GMT +1. The time now is 04:55 AM.

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

About Us

"It's about Microsoft Excel"