+ Reply to Thread
Results 1 to 9 of 9

Sort Merged

  1. #1
    Registered User
    Join Date
    06-09-2011
    Location
    Denver
    MS-Off Ver
    Excel 2007
    Posts
    25

    Sort Merged

    I'm looking for any help in sorting a range of merged cells.

    Yes I know merged cells are horrible to use, but they were needed for my layout.

    I just need the code to click the button in the attached workbook which will sort the range I specified in the sub Sort_Time from earliest to latest, while keeping the row information intact (Info A, A.1, A.2, A.3 and the time 01:00 will need to stay on the same line, and the same for the rest of the Info lines).

    Is this possible?

    Thank you so much for your consideration.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Sort Merged

    Try
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-09-2011
    Location
    Denver
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Sort Merged

    You have just made my day! Hopefully I can get this to work in my project. Kudos to you!! I thank you for your kind contribution. Reputation+++++++++++++

    If you read this and possibly have time if I were to change the range to sort (since my project is different) what would i change (like instead of A4:K10 i needed B7:O26)

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Sort Merged

    Need to see the actual data layouts.

  5. #5
    Registered User
    Join Date
    06-09-2011
    Location
    Denver
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Sort Merged

    Here is the closest I can get to the layout.

    Thank you Jindon!
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Sort Merged

    OK, just one line
    change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    06-09-2011
    Location
    Denver
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Sort Merged

    That works, but the last two merged rows are not included in the sort.

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Sort Merged

    Ahh, tie, good example.
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    06-09-2011
    Location
    Denver
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Sort Merged

    Thank you for the quick responses Jindon! I will give this a try on my project tonight and see what happens. Will post results.

+ 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. How to sort merged cells ?
    By ch.snyers in forum Excel General
    Replies: 3
    Last Post: 10-04-2013, 12:31 PM
  2. Sort merged cells
    By stazevedo in forum Excel General
    Replies: 12
    Last Post: 12-01-2011, 03:42 PM
  3. Sort merged fields
    By sarahhe in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 04-01-2011, 03:49 PM
  4. Sort and merged cells
    By asyrip in forum Excel General
    Replies: 1
    Last Post: 09-26-2006, 01:31 PM
  5. [SOLVED] How to sort merged cells
    By Sort merged cells in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-11-2005, 01:06 PM

Tags for this Thread

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