Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JCM JCM is offline
external usenet poster
 
Posts: 9
Default how do you convert a number into a date

Thanks, this really helped me and worked perfect. By the way, you are
correct about my comment on Excel changing the number to a date. I was
typing in a / between the numbers.

Thanks again!

"Dave Peterson" wrote:

First, select a cell in that column.
Look at the formulabar.

Do you see a real date or 20070602?

If you see a real date (06/02/2007 or 02/06/2007), then just reformat it the way
you want.

Select the column
format|cells|number tab|date (or custom)

If you see a number, then it's not really a date (yet). It's just a number.

Select that column
data|Text to columns
fixed width (but don't split it into any fields)
choose ymd (or ydm???) and finish up.

Then format it the way you want.

======
By the way, I've never seen excel change 20070602 into a date when you type it
in. You either have a macro that does the work--or you're typing a date (with
/'s or -'s).



JCM wrote:

I have a file that was sent to me with a column of dates that appear like
20070602. I need it to look like 06/02/2007. I have tried to format it but
I get ########### and the screen says something about a negative number. If
I open a new blank worksheet and type it in 20070602, Excel automatically
switches it to a proper date format. When I receive the file with the date
as 20070602, it is already saved in excel. I have tried several different
formats. Any help would be greatly appreciated.

Thanks

Jm


--

Dave Peterson

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
Convert number to date Box666 Excel Discussion (Misc queries) 2 October 17th 06 04:28 PM
convert number to date format Lesley Excel Discussion (Misc queries) 4 July 12th 06 09:17 PM
Convert Date to number? JethroUK© Excel Worksheet Functions 6 May 8th 06 10:15 PM
How to convert date field to number value landj68 New Users to Excel 3 October 11th 05 04:48 PM
How do I convert Date serial number to date rdunne Excel Worksheet Functions 1 April 12th 05 03:04 PM


All times are GMT +1. The time now is 09:16 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"