ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Separating dates from one column to Month, Date, Year columns (https://www.excelbanter.com/excel-discussion-misc-queries/197762-separating-dates-one-column-month-date-year-columns.html)

frogstyle

Separating dates from one column to Month, Date, Year columns
 
I'm looking for a way to take a list of dates that are being cut and pasted
from an Access Database into excel and separate it so I can sort by Month,
Day, Year. The data seems to be recognized in Excel as a date because it
sorts by the the year. The format is mm/dd/yyyy. When I try to change the
format to anything else, it won't allow the change.

Gary''s Student

Separating dates from one column to Month, Date, Year columns
 
with something like:
08/06/2008
in A1

In cells B1 thru E1 enter:
=DATEVALUE(A1)
=YEAR(B1)
=MONTH(B1)
=DAY(B1)


--
Gary''s Student - gsnu200798


"frogstyle" wrote:

I'm looking for a way to take a list of dates that are being cut and pasted
from an Access Database into excel and separate it so I can sort by Month,
Day, Year. The data seems to be recognized in Excel as a date because it
sorts by the the year. The format is mm/dd/yyyy. When I try to change the
format to anything else, it won't allow the change.


Dave Peterson

Separating dates from one column to Month, Date, Year columns
 
If it's really a date, you could use a helper column with a formula like:

=text(a1,"mmddyyyy")
drag down as far as you need it

And then sort by this helper column.



frogstyle wrote:

I'm looking for a way to take a list of dates that are being cut and pasted
from an Access Database into excel and separate it so I can sort by Month,
Day, Year. The data seems to be recognized in Excel as a date because it
sorts by the the year. The format is mm/dd/yyyy. When I try to change the
format to anything else, it won't allow the change.


--

Dave Peterson


All times are GMT +1. The time now is 07:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com