Need Help Converting Numbers to Dates

J

JWNJ

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.
 
T

T. Valko

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

gsnu200723

What does that mean?

I think I can figure out what gs means.

Biff
 
G

Gord Dibben

One more method without the formulas to deal with.

Data>Text to Columns>Next>Next>Column data format>Date YMD and Finish.


Gord Dibben MS Excel MVP
 
G

Gary''s Student

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.
 
H

Harlan Grove

JWNJ said:
. . . 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,"-")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top