Hi,
Lets say I have a list of Sales Reps in column A, Turnover Figures in
B, Cost Value in C, Margin in D etc etc.......
I need to sort them, sometimes by Rep, some times by Margin ascending,
sometimes by Turnover Ascending etc etc.
Are there any formulas I can use to do this instead of using the sort
function EVERY TIME
Cheers Guys--
sammy2x
------------------------------------------------------------------------
sammy2x's Profile: www.excelforum.com/member.php...oamp;userid=29674
View this thread: www.excelforum.com/showthread...hreadid=512169
Hi Sammy,
Have a look at Dave's suggested technique on Debra's site:
contextures.com/xlSort02.html
btw, there is a very similar thread to yours which is recent amp; where I
saw this link - I just can't find it at the moment.
Hth,
Rob Brockett
NZ
Always learning amp; the best way to learn is to exxperience...--
broro183
------------------------------------------------------------------------
broro183's Profile: www.excelforum.com/member.php...oamp;userid=30068
View this thread: www.excelforum.com/showthread...hreadid=512169right click sheet tabgt;view codegt;insert thisgt;name your range sortrangegt;save.
Now double click anywhere in the desired column to sort by that column.
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Excel.Range, Cancel
As Boolean)
mycol = ActiveCell.Column
[sortrange].Sort Key1:=Cells(1, mycol), Order1:=xlAscending,
Orientation:=xlTopToBottom
End Sub
--
Don Guillett
SalesAid Software
quot;sammy2xquot; gt; wrote in
message ...
gt;
gt; Hi,
gt;
gt; Lets say I have a list of Sales Reps in column A, Turnover Figures in
gt; B, Cost Value in C, Margin in D etc etc.......
gt;
gt; I need to sort them, sometimes by Rep, some times by Margin ascending,
gt; sometimes by Turnover Ascending etc etc.
gt;
gt; Are there any formulas I can use to do this instead of using the sort
gt; function EVERY TIME
gt;
gt; Cheers Guys
gt;
gt;
gt; --
gt; sammy2x
gt; ------------------------------------------------------------------------
gt; sammy2x's Profile:
gt; www.excelforum.com/member.php...oamp;userid=29674
gt; View this thread: www.excelforum.com/showthread...hreadid=512169
gt;
- Sep 10 Mon 2007 20:39
Sorting
close
全站熱搜
留言列表
發表留言