LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bman342
 
Posts: n/a
Default Automatic Sort for variable Ranges

(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.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Named Ranges Joe Gieder Excel Worksheet Functions 2 February 16th 06 01:31 AM
How can I sort multiple times Sorting data Excel Worksheet Functions 2 February 9th 06 05:22 PM
Sort Ascending button - Excel 2003 Ann Scharpf Excel Discussion (Misc queries) 0 May 23rd 05 11:11 PM
HELP! How do you--> Lock a set of rows but also link worksheets to FRUSTRATED Excel Discussion (Misc queries) 6 December 29th 04 10:05 PM
Data > Sort function amnesia? Dave D Excel Discussion (Misc queries) 1 November 29th 04 10:44 PM


All times are GMT +1. The time now is 12:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"