+ Reply to Thread
Results 1 to 8 of 8

Sorting Data into Time order using a String header

  1. #1
    Registered User
    Join Date
    10-20-2011
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    98

    Sorting Data into Time order using a String header

    Hi,

    I hope the "before" (sheet1) and "after" (sheet2) examples on this workbook explain what i need help with.

    Sort before after example1.xlsm

    Each day i run this the header name will be different but there will always be a time figure after the header which is what i want to sort by.

    i.e
    Sams house 1:35
    Jims park 12:55
    Janes garden 14:30

    Thanks in Advance

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Sorting Data into Time order using a String header

    Pl see the attached file with macro.Macro written assuming that between two headings fixed 7 rows are available.
    If problem is solved Mark the thread solved.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 03-23-2012 at 12:23 AM.

  3. #3
    Registered User
    Join Date
    10-20-2011
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    98

    Re: Sorting Data into Time order using a String header

    I tried so hard to get the example identical to the data I'm using but had a fail with the amount of rows within headers

    It is variable.... sorry.


    Also even with the current example it doesn't rearrange the code correctly.

    Would it also help to know that each header is always a merged cell (ABC) and the data within each header is always over 3 columns,

    Header always contains a *:**


    Thanks

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Sorting Data into Time order using a String header

    Pl attach file similar to your original data with all variations.

  5. #5
    Registered User
    Join Date
    10-20-2011
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    98

    Re: Sorting Data into Time order using a String header

    This is more like the data I'm working with


    Sort before after example2.xlsm

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Sorting Data into Time order using a String header

    Pl see the attached file. The number of rows between headers will not matter.Hope your requirements are met. If so mark the thread solved.
    Sorry for the delay.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    10-20-2011
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    98

    Thumbs up [SOLVED] Re: Sorting Data into Time order using a String header

    That's amazing thanks.

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Sorting Data into Time order using a String header

    Thanks.pl click on the star below .

+ 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