+ Reply to Thread
Results 1 to 6 of 6

Sort 540 individual row ranges from first to last

  1. #1
    Forum Contributor
    Join Date
    11-23-2015
    Location
    Yada, Wales
    MS-Off Ver
    Office 2013
    Posts
    176

    Sort 540 individual row ranges from first to last

    B5:B34 to S5:S34 for example contains 18 ranges, one for each column, from row 5 to 34.
    Columns T, AM, BF and BY are empty.

    In total there are:
    * 90 ranges from row 5 to 34
    * 90 ranges from row 38 to 67
    * 90 ranges from row 71 to 100
    * 90 ranges from row 105 to 134
    * 90 ranges from row 138 to 167
    * 90 ranges from row 171 to 200


    B5:B34 to S5:S34
    U5:U34 to AL5:AL34
    AN5:AN34 to BE5:BE34
    BG5:BG34 to BX5:BX34
    BZ5:BZ34 to CQ5:CQ34

    B38:B67 to S38:S67
    U38:U67 to AL38:AL67
    AN38:AN67 to BE38:BE67
    BG38:BG67 to BX38:BX67
    BZ38:BZ67 to CQ38:CQ67

    B71:B100 to S71:S100
    U71:U100 to AL71:AL100
    AN71:AN100 to BE71:BE100
    BG71:BG100 to BX71:BX100
    BZ71:BZ100 to CQ71:CQ100

    B105:B134 to S105:S134
    U105:U134 to AL105:AL134
    AN105:AN134 to BE105:BE134
    BG105:BG134 to BX105:BX134
    BZ105:BZ134 to CQ105:CQ134

    B138:B167 to S138:S167
    U138:U167 to AL138:AL167
    AN138:AN167 to BE138:BE167
    BG138:BG167 to BX138:BX167
    BZ138:BZ167 to CQ138:CQ167

    B171:B200 to S171:S200
    U171:U200 to AL171:AL200
    AN171:AN200 to BE171:BE200
    BG171:BG200 to BX171:BX200
    BZ171:BZ200 to CQ171:CQ200

    Tried to make a macro sorting each range from first to last letter but it was too big. Thinking that perhaps I would need a loop for this procedure.

    Is it possible make a macro:

    1) loop and sort 18 column ranges from row 5 to 34, starting with column B
    2) skip one column (T)
    3) loop through each of next 18 ranges from row 5 to 34
    4) skip one column (AM) etc, also skipping column BF and BY

    And then continue the same procedure for row:
    * 38 to 67
    * 71 to 100
    * 105 to 134
    * 138 to 167
    * 171 to 200

    ?
    Attached Files Attached Files
    Last edited by jokris; 09-24-2016 at 12:48 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Sort 540 individual row ranges from first to last

    Perhaps you could post a workbook with an example of what you have and your desired results.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    11-23-2015
    Location
    Yada, Wales
    MS-Off Ver
    Office 2013
    Posts
    176

    Re: Sort 540 individual row ranges from first to last

    Quote Originally Posted by shg View Post
    Perhaps you could post a workbook with an example of what you have and your desired results.
    Yes, attached workbook to first mail now.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Sort 540 individual row ranges from first to last

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    11-23-2015
    Location
    Yada, Wales
    MS-Off Ver
    Office 2013
    Posts
    176

    Re: Sort 540 individual row ranges from first to last

    Incredible!
    Can't thank you enough!

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Sort 540 individual row ranges from first to last

    You're welcome.

+ 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] Sort individual column Alphabetically
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-19-2015, 05:40 AM
  2. Use sort method to sort ranges based on their headings using vba
    By kris nuvio in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-01-2013, 07:54 AM
  3. [SOLVED] sort individual rows with formulas
    By CoolingJets in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-29-2012, 05:49 PM
  4. Replies: 0
    Last Post: 06-12-2012, 09:23 AM
  5. Excel 2007 : sort duplicates to individual columns
    By jmhan2209 in forum Excel General
    Replies: 4
    Last Post: 03-04-2012, 12:57 AM
  6. calculating individual cells within large ranges
    By istanley24 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-08-2010, 10:50 AM
  7. Is there a way to sort without losing individual set formulas?
    By Rachael-R in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-22-2006, 05:40 AM

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