+ Reply to Thread
Results 1 to 3 of 3

Sorting

  1. #1
    Registered User
    Join Date
    12-15-2005
    Posts
    7

    Sorting

    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

  2. #2
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243
    Hi Sammy,

    Have a look at Dave's suggested technique on Debra's site:
    http://contextures.com/xlSort02.html

    btw, there is a very similar thread to yours which is recent & where I saw this link - I just can't find it at the moment.

    Hth,
    Rob Brockett
    NZ
    Always learning & the best way to learn is to exxperience...

  3. #3
    Don Guillett
    Guest

    Re: Sorting

    right click sheet tab>view code>insert this>name your range sortrange>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
    dguillett1@austin.rr.com
    "sammy2x" <sammy2x.237sfa_1139912400.7865@excelforum-nospam.com> wrote in
    message news:sammy2x.237sfa_1139912400.7865@excelforum-nospam.com...
    >
    > 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:
    > http://www.excelforum.com/member.php...o&userid=29674
    > View this thread: http://www.excelforum.com/showthread...hreadid=512169
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1