+ Reply to Thread
Results 1 to 4 of 4

Sort depending on last column

  1. #1
    Forum Contributor
    Join Date
    07-07-2014
    Location
    Göteborg
    MS-Off Ver
    2010
    Posts
    130

    Sort depending on last column

    I would like to sort some rows depending on the last used column. Is that possible?

    For example:

    Row 5 ends in Column 34
    Row 6 ends in Column 12
    Row 7 ends in Column 15
    Row 8 ends in Column 29
    Row 9 ends in Column 45

    Therefore the sort should be:

    "Row 6"
    "Row 7"
    "Row 8"
    "Row 5"
    "Row 9"

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Sort depending on last column

    Im confused, what do you mean by sort some rows?

    My understanding would be to sort those rows into order altogether, Im not sure how youre looking to sort one row? or do you mean sorting the first 33 columns in row 5?

    Can you create and upload a sample sheet?

    IGNORE THIS - I WAS HAVING A DIM MOMENT/ YEAR
    Last edited by pjwhitfield; 11-18-2016 at 03:44 AM.
    If someone has helped you then please add to their Reputation

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Sort depending on last column

    Maybe:

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Sort depending on last column

    Apologies, yet again my brain wasnt functioning:

    Id create a new column way further along the sheet than is possible to have data (Ive gone for CA in the example). in it add the following formula and drag down.
    Please Login or Register  to view this content.
    This will populate that column with the last item in each row, you can now sort on column CA, filter on it etc

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Custom sort depending on specific letters
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-02-2015, 09:29 AM
  2. [SOLVED] Sort column A depending on entries in another column
    By adriano.r.marques in forum Excel General
    Replies: 5
    Last Post: 06-25-2015, 07:36 PM
  3. [SOLVED] Need data in column K to be auto populated, depending on drop down selection in column J
    By skeithnavo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-12-2015, 11:53 AM
  4. [SOLVED] Sort depending of previous selection
    By luis6777 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-12-2014, 04:53 PM
  5. Excel 2007 code to sort certain cells depending on current active cell
    By mpalm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-26-2011, 05:00 PM
  6. Sort array depending on 2nd column
    By pmguerra in forum Excel General
    Replies: 22
    Last Post: 04-15-2010, 06:10 AM
  7. How to sort a column depending on number of letters
    By julia81 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-16-2008, 03:38 PM

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