Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default Need Help Converting Numbers to Dates

I have been given an Excel file with that contains the installation date for
10,000 items. I need to determine the number of days/years these items have
been in-service. I know the appropriate formula to determine the number of
days between two dates; my problem is the installation date is formatted as
yyyymmdd. So, for example, today appears as 20070521. How can I convert
this is appear as 5/21/07, or some legitimate date format. Thanks in advance
for your help.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Need Help Converting Numbers to Dates

Try:
=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))
--
Gary''s Student - gsnu200723
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default Need Help Converting Numbers to Dates

Thanks gsnu. That worked.

"Gary''s Student" wrote:

Try:
=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))
--
Gary''s Student - gsnu200723

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Need Help Converting Numbers to Dates

I've been meaning to ask you....

gsnu200723

What does that mean?

I think I can figure out what gs means.

Biff

"Gary''s Student" wrote in message
...
Try:
=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))
--
Gary''s Student - gsnu200723



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Need Help Converting Numbers to Dates

Hi Biff:

The gsnu is just a serial number I append to my username. I change it about
once a week. It assists me in locating old posts to which I may want to
refer. I use gsnuxx for VBA I may want to re-use.
--
Gary''s Student - gsnu200723


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Need Help Converting Numbers to Dates

That's a good idea!

Biff

"Gary''s Student" wrote in message
...
Hi Biff:

The gsnu is just a serial number I append to my username. I change it
about
once a week. It assists me in locating old posts to which I may want to
refer. I use gsnuxx for VBA I may want to re-use.
--
Gary''s Student - gsnu200723



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Need Help Converting Numbers to Dates

One more method without the formulas to deal with.

DataText to ColumnsNextNextColumn data formatDate YMD and Finish.


Gord Dibben MS Excel MVP

On Tue, 22 May 2007 19:01:02 -0700, JWNJ wrote:

I have been given an Excel file with that contains the installation date for
10,000 items. I need to determine the number of days/years these items have
been in-service. I know the appropriate formula to determine the number of
days between two dates; my problem is the installation date is formatted as
yyyymmdd. So, for example, today appears as 20070521. How can I convert
this is appear as 5/21/07, or some legitimate date format. Thanks in advance
for your help.


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default Need Help Converting Numbers to Dates

JWNJ wrote...
....
. . . my problem is the installation date is formatted as
yyyymmdd. So, for example, today appears as 20070521. How can I
convert this is appear as 5/21/07, . . .

....

Another formula alternative

=--REPLACE(REPLACE(x,7,0,"-"),5,0,"-")

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
Converting 8 digit numbers into dates [email protected] Excel Discussion (Misc queries) 11 November 22nd 06 04:30 PM
Converting Day Numbers to Dates... Birmangirl Excel Worksheet Functions 6 June 23rd 06 03:02 PM
prevent converting numbers with hyphens to dates Mike Excel Discussion (Misc queries) 5 January 27th 06 08:41 PM
Stop numbers converting to dates. biglar85012 Excel Worksheet Functions 2 March 29th 05 06:09 PM
converting dates into numbers help me Excel Discussion (Misc queries) 3 December 17th 04 03:11 AM


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