Need help sorting dates

Dhawk

New Member
Joined
Aug 28, 2002
Messages
13
I have another excel newbie question. Is there a way to sort a range of dates on a sheet? In other words, I have a column with differt dates spread over five years. I would like to sort or separate the data on the sheet that is dated from 08/31/01 to 10/31/02.

As always, you help is appreciated.

Thanks
Dave
This message was edited by Dhawk on 2002-11-07 21:46
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Kharyat

New Member
Joined
Nov 6, 2002
Messages
6
Hi Dave:

You can use filter by selecting the row that has the headings and then go Data/Filter/Autofilter....you can customize which dates your want...

OR

You can select the entire data and go to Data/Sort/ and select which way you want to sort your data...

hope this helps..

K
 

Dhawk

New Member
Joined
Aug 28, 2002
Messages
13
Kharyat,

Thanks for the reply, but I can't get either of the options you suggested to work.

I am not sure I am using the data/filter/autofilter-custom option correctly.

When I try just sorting my date column, it sorts by the month with all the different years mixed in. It ends up looking like this:
01/02/00
01/10/01
01/19/02
02/16/99
02/22/02
03/01/01
Etc.

I need to be able to sort by month and year and I can only get it to use the month as the sort criteria.

Dave
 

PaddyD

MrExcel MVP
Joined
May 1, 2002
Messages
14,234
in the sort options (data | sort | options) there are a number of "first key sort order" options for date sorting. My guess is that you don't have dates, but text. do =isnumber(A1) on one of the cells in question (change A1 as appropriate) - what do you get

paddy
 

Dhawk

New Member
Joined
Aug 28, 2002
Messages
13

ADVERTISEMENT

PaddyD

When I type isnumber in the formula bar, it just changes the selected cell to say "isnumber".

The dates look like this: 11/07/02. Do I need to somehow change the format of the dates?

Sorry for the ignorance

Dave
This message was edited by Dhawk on 2002-11-07 23:09
 

PaddyD

MrExcel MVP
Joined
May 1, 2002
Messages
14,234
1) look at the spreadsheet, find one of the cells in the range of cells you want to sort by date. Remember its address (e.g. a1)
2) in a spare cell, type the following formula

=isnumber(address)

where you replace address with the cell address you have remembered from the step above. What do you get? (it should either be true or false)

paddy
 

Dhawk

New Member
Joined
Aug 28, 2002
Messages
13

ADVERTISEMENT

It said FALSE
 

PaddyD

MrExcel MVP
Joined
May 1, 2002
Messages
14,234
right, so you don't have genuine dates in there, you've got things that look like dates but that are actually being held as text values. do the following:

select the entire column with the "dates", go to data | text to columns...
hit next twice
select MDY from the 'column data format' drop down
hit finish

the "dates" should now behave properly

paddy
 

Dhawk

New Member
Joined
Aug 28, 2002
Messages
13
PaddyD,

That did it :). Thaks so much. Where do I send the check :).

Dave
 

Forum statistics

Threads
1,144,293
Messages
5,723,554
Members
422,503
Latest member
aarifmahmood

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top