Format text 'dates' to real dates

G

Guest

Greetings,

I have a text file that I'm working with that includes 2 columns of dates in
the format yyyymmdd, however Excel sees these columns as text and therefore
any formatting I apply as far as date formats doesn't work. I tried custom
format and I get #####. Attempting to use any of the Date formats gets me no
change at all.

My end goal is to convert these two columns of 'dates' to display Julian Day
format, but in order for any of the formulas I've found to work, Excel must
see these as true dates.

Thanks,
~Jacy
 
R

Ragdyer

You can use TTC (Text To Columns).

Select one of the columns and:
<Data> <TextToColumns> <Next> <Next>,

Then click on "Date" and make *sure* that YMD shows in the window,
Then <Finish>

You now have XL recognized dates, which you now can format any way you wish.
 
F

Franz Verga

Jacy said:
Greetings,

I have a text file that I'm working with that includes 2 columns of
dates in the format yyyymmdd, however Excel sees these columns as
text and therefore any formatting I apply as far as date formats
doesn't work. I tried custom format and I get #####. Attempting to
use any of the Date formats gets me no change at all.

My end goal is to convert these two columns of 'dates' to display
Julian Day format, but in order for any of the formulas I've found to
work, Excel must see these as true dates.

Thanks,
~Jacy


Hi Jacy,
To convert your text dates to real dates you can use this formula:

=DATE(LEFT(D1,4),MID(D1,5,2),RIGHT(D1,2))

where in D1 is your text date, then you can drag along the rows...

--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy
 

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