+ Reply to Thread
Results 1 to 5 of 5

Formula to sort by time

  1. #1
    Registered User
    Join Date
    10-06-2015
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    6

    Formula to sort by time

    HI

    I'm trying to sort each block of 3 movies by time as shown below, also allowing for gaps in the block of 3, any help with this is much appreciated.
    Attached Images Attached Images

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Formula to sort by time

    Hi, welcome to the forum

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    10-06-2015
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    6

    Re: Formula to sort by time

    Hi Ford

    Thanks for the welcome.
    I have attached the file, i want to take the info in the left hand box and sort it into the right hand box with the earliest times first as showed. its easy enough to do this manually with the sort function but I would like to find a formula that will do it automatically.
    This site has been extremely helpful with the workbook i'm working on and this is the first time I haven't been able to find an answer, so thanks to everyone who has posted on here in the past.

    Dave
    Attached Files Attached Files

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Formula to sort by time

    Your "times" atr not really times, they are text that just looks like a time.

    If you are OK with using a helper column, try this (you can hide the helper if you want)...
    Put this in B4 and copy down...
    =IF(C4=0,"",TIMEVALUE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(C4,".",":"),"am"," am"),"pm"," pm"))+COUNTIF($C$4:C4,C4)/100000)

    Then put this where you want the titles to be (J4?) and copy down...
    =IFERROR(INDEX(D$4:D$26,MATCH(SMALL($B$4:$B$26,ROW($A1)),$B$4:$B$26,0)),"")
    Copy that to where you want the rating to be, as well

  5. #5
    Registered User
    Join Date
    10-06-2015
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    6

    Re: Formula to sort by time

    Works perfectly, Thank you so much.

    Regards

    Dave

+ 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. Replies: 1
    Last Post: 04-16-2015, 06:29 PM
  2. [SOLVED] Text Time to Excel Format, Then Sort Time Past Midnight
    By BuntyMac in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-27-2014, 03:13 AM
  3. Replies: 5
    Last Post: 04-18-2013, 11:31 AM
  4. Sort Time
    By Zorro9758 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-25-2013, 12:32 AM
  5. Excel 2007 : sort by time in date/time field
    By bhavv in forum Excel General
    Replies: 1
    Last Post: 05-04-2012, 12:14 AM
  6. Sort Two Columns at a time
    By joe_ll in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-02-2010, 02:00 AM
  7. x-axis is time ... sort of
    By [email protected] in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-03-2006, 09:50 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