Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Danny
 
Posts: n/a
Default Sorting - Macro or worksheet function

I use 9 columns named: Col A = Code; Col B = Date; Col C = Name; etc. The
rows beneath these columns are sorted according to Codes (from 1 to 7). I
sort Col A = AScending; Col B DEScending and Col C AScending.

In Col B, there are sub-headers coded from 1 to 7. I sort column B
DEScending in order that the subheader (say, Applicants) will be on the TOP
row of the Code 1s. If I sort it Ascending, sub-header Applicants will be
on the last row of the Code 1s.

Right now, by sorting Column B DEScending €śApplicants€ť is on top but the
dates below it are sorted DEScending (of course). Is there a way (worksheet
function or VBA) that would sort Column B with sub-header €śApplicants€ť on top
and the dates will be sorted ASCENSDING?

Thanks a lot.

  #2   Report Post  
Anne Troy
 
Posts: n/a
Default

It sounds like your heading rows are being included in your sort? Use
Data--Sort and tell it you have a heading row.
*******************
~Anne Troy

www.OfficeArticles.com


"Danny" wrote in message
...
I use 9 columns named: Col A = Code; Col B = Date; Col C = Name; etc. The
rows beneath these columns are sorted according to Codes (from 1 to 7). I
sort Col A = AScending; Col B DEScending and Col C AScending.

In Col B, there are sub-headers coded from 1 to 7. I sort column B
DEScending in order that the subheader (say, Applicants) will be on the

TOP
row of the Code 1's. If I sort it Ascending, sub-header Applicants will

be
on the last row of the Code 1's.

Right now, by sorting Column B DEScending "Applicants" is on top but the
dates below it are sorted DEScending (of course). Is there a way

(worksheet
function or VBA) that would sort Column B with sub-header "Applicants" on

top
and the dates will be sorted ASCENSDING?

Thanks a lot.



Reply
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
Excel 2003 worksheet name function? eddie_zoom Excel Worksheet Functions 3 June 17th 05 12:46 AM
Macro to search for and display data in another worksheet Mark H Excel Worksheet Functions 0 June 14th 05 01:40 PM
Reference the worksheet from a multiple worksheet range function ( DBickel Excel Worksheet Functions 1 May 28th 05 04:49 AM
Help with macro looping and color query function kevinm Excel Discussion (Misc queries) 10 May 26th 05 02:25 AM
Executing macro for all worksheet from a different worksheet Biti New Users to Excel 3 December 8th 04 11:05 AM


All times are GMT +1. The time now is 07:34 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"