see example:formating

R

Richard Mahan

I have an example where the date given is in one cell like 06/16/2006 and
Iwould like to display the date in three columns for sorting purposes. can
anyone tell me how to do this?
 
P

Paul B

Richard, with date in A1, =MONTH(A1) =DAY(A1) =YEAR(A1)

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003
 
L

Larry S

I see a couple of options, here is one solution

First, lets assuem the date you have is in column a, and my example will
assume A2 has the first date:

Use 3 unused columns and place the following formulas in these columns:

Col. 1: =month(A2)
Col. 2: =day(A2)
Col 3: =year(a2)

The other option is to use the Data/Text to Col command and specify the "/"
as the deliminter but this you will need to reformat the columns to numbers.
 
B

Bob Phillips

Why do you need to split to sort them, it will sort by date order as it is.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)
 
R

Richard Mahan

I am having much difficulty gettings the results I want, mostly because I'm
not very savy with excel, I would prefer to use the text to columns option.
what I am trying to do is have the month, day and year displayed in three
columns if you could write the formula out for me, I would be much oblidged.
thanks
 
P

Peo Sjoblom

He already gave you the formulas

=YEAR(A2) will give you the years as in 2006 etc

the same for month and day

--

Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
"It is a good thing to follow the first law of holes;
if you are in one stop digging." Lord Healey
 
G

Gord Dibben

Richard

If you want to use text to columns, there is no formula.

Just go to Data>Textr to columns>De-limited by / and hit Finish.

Format all 3 columns as General after you split.


Gord Dibben MS Excel MVP
 
Top