#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jgregory
 
Posts: n/a
Default DATE SET

HOW DO I SET A WORKSHEET TO TAKE 020305 AND CHANGE IT TO 02/03/05. I just
need a date not a serial number.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
davesexcel
 
Posts: n/a
Default DATE SET


format your cell
select the cell
right click on the mouse, select format cells
go to numbers,date, select the format you want


--
davesexcel
------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=522417

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Nick Hodge
 
Posts: n/a
Default DATE SET

You can't without code. (Probably a worksheet_change() event), you can use a
helper column though if the numbers are all 8 digits long (It can still be
done if they are shorter but we will need to accont for this. Let's say the
first number is in A1, in B1 enter

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

Copy down and format the resulting numbers as a dates. You can then copy
the new dates and EditPaste special...Values over the original numbers

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
www.nickhodge.co.uk
HIS


"jgregory" wrote in message
...
HOW DO I SET A WORKSHEET TO TAKE 020305 AND CHANGE IT TO 02/03/05. I just
need a date not a serial number.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernard Liengme
 
Posts: n/a
Default DATE SET

Assuming (1) the leading zero is really present, and (2) use are using US
date format (mm/dd/yy)
then use =DATE(2000+RIGHT(A1,2),LEFT(A1,2),MID(A1,4,2))

Pleases note there is no difference between a date and a serial number other
than the applied format.
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"jgregory" wrote in message
...
HOW DO I SET A WORKSHEET TO TAKE 020305 AND CHANGE IT TO 02/03/05. I just
need a date not a serial number.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Nick Hodge
 
Posts: n/a
Default DATE SET

daves excel

How will that insert the slashes?

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
www.nickhodge.co.uk
HIS


"davesexcel" wrote
in message ...

format your cell
select the cell
right click on the mouse, select format cells
go to numbers,date, select the format you want


--
davesexcel
------------------------------------------------------------------------
davesexcel's Profile:
http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=522417





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
davesexcel
 
Posts: n/a
Default DATE SET


How will that insert the slashes?

Well, when I tested it yesterday, I thought it worked, Now it doesn't,
obviously I was wrong.


--
davesexcel
------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=522417

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
Insert Automatic, Non-Updating Date Stamp Ken Zenachon Excel Discussion (Misc queries) 8 January 18th 06 06:52 PM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Adding XY days to date in cells satucha Excel Discussion (Misc queries) 1 November 25th 05 08:02 AM
Another Date issue. TimM Excel Worksheet Functions 1 November 17th 05 01:58 AM
Date Math Problem Dkline Excel Worksheet Functions 4 March 4th 05 04:11 PM


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