If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Text number to Date Format?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-21-06, 12:24
MillB MillB is offline
Registered User
 
Join Date: Dec 2006
Posts: 39
Text number to Date Format?

My IT Manager has a spreadsheet that he imported some 40,000 dates into.
They are all formatted as text though, so we cannot simply change the cell format to receive the correct date. It takes the number, gives it a date format, but completely alters the date to something foreign. Can someone please show me how to convert this data via VB or some other way (leaving it in Excel) to reflect the right date. See attachment for what we are trying to accomplish on a larger scale. TIA.
Attached Thumbnails
Text number to Date Format?-screen-print.jpg  
Reply With Quote
  #2 (permalink)  
Old 12-21-06, 16:09
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
Howdy and welcome to the board.

If you want to use another column to make it look like date, then use this formula for C1

=LEFT(B1,2)&"/"&MID(B1,3,2)&"/"&RIGHT(B1,2)

If you need it eventually in true date, then copy/paste special values.
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
  #3 (permalink)  
Old 12-21-06, 16:52
MillB MillB is offline
Registered User
 
Join Date: Dec 2006
Posts: 39
Thank you!

Rich ~

Thanks for the info - it works perfect!
You da man!
Reply With Quote
  #4 (permalink)  
Old 12-23-06, 13:45
norie norie is offline
Registered User
 
Join Date: Mar 2006
Posts: 163
Why not just use Data>Text to columns... and select MDY on the 3rd step?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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