Automatic Sort for variable Ranges

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

(Apologize if this is posted already)

I regularly import data into a spreadsheet.
The range of data elements varies each time.
I need to sort the data a couple of ways.

I recorded a macro to sort the data:
-I start on a consistent cell (say A4) where I know the first data element
will always be.
-I then highlight an area to a cell range that will define a range larger
than the amount of data elements I will ever import (say: A4:A300).
I then perform the sort.

When i do an alphabetical sort, it places the blank cells at top which is
sub-optimal.

Is there a way to automatically highlight only the cells with data, and then
perform the sort?

Thanks.
 
Select first cell (says A4)
Hit Ctrl+Shift+Down arrow

Then you have selected the data you can now sort.

HTH
 
Hmm, that was pretty easy. Thanks a bunch!

Ardus Petus said:
Select first cell (says A4)
Hit Ctrl+Shift+Down arrow

Then you have selected the data you can now sort.

HTH
 

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

Back
Top