sorting by date in excel

P

pattyf

I've imported data that contains a column of dates, mm/dd/yyyy, but can not
get this column to sort correctly in date order. I'm on version 2002. Any
ideas?
 
M

Mike H

Are you sure they are dates and not text that looks like a date?
=ISTEXT(A1)
should return false for a date

Mike
 
K

Kevin B

Insert a helper column to the right of your errant dates and enter the
following formula in the first blank cell of the new column (substituting A1
with the cell containing the text date):

=DATEVALUE(A1)

Copy the formula down as far as necessary and then copy your formula column.

Move the the first cell of the original date column, click EDIT in the menu
and select PASTE SPECIAL and select the VALUES option button & click OK. You
can then delete your helper column.

You might have to format the column for dates, as it converts the text date
to a serial date number.
 
P

pattyf

Kevin, you're a wizard! Thanks for your help!

Kevin B said:
Insert a helper column to the right of your errant dates and enter the
following formula in the first blank cell of the new column (substituting A1
with the cell containing the text date):

=DATEVALUE(A1)

Copy the formula down as far as necessary and then copy your formula column.

Move the the first cell of the original date column, click EDIT in the menu
and select PASTE SPECIAL and select the VALUES option button & click OK. You
can then delete your helper column.

You might have to format the column for dates, as it converts the text date
to a serial date number.
 

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