+ Reply to Thread
Results 1 to 10 of 10

Sorting data

  1. #1
    Registered User
    Join Date
    06-06-2012
    Location
    manchester
    MS-Off Ver
    Excel 2003
    Posts
    45

    Sorting data

    Hi,

    This maybe easy for some of you but to be honest i'm nearly putting my fist through my computer.

    I have a simple sheet that carries approx 150 times, all mixed up with no order at all.

    What I need to do with this is copy these times and with the copy create a schedule of order....range is C9:F27

    HELP PLEASE

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Sorting data

    So you have like 150 times in, let's say A1:A150 and you want them copied into C9:F27? Do you want it going across and down or down and across?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    06-06-2012
    Location
    manchester
    MS-Off Ver
    Excel 2003
    Posts
    45

    Re: Sorting data

    sorry, the times are in c9:f27 and i need a vertical copied list that I can put in time order...

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Sorting data

    Try this formula entered as an array (use CONTRL SHFT ENTER instead of just ENTER. If done properly, you'll see {} around your formula)

    =INDEX($C$9:$F$27,SUMPRODUCT(--($C$9:$F$27 = SMALL($C$9:$F$27,ROW(A1)))*(ROW($C$9:$C$27)-8)),SUMPRODUCT(--($C$9:$F$27 = SMALL($C$9:$F$27,ROW(A1)))*(COLUMN($C$9:$F$9)-2)))

    See attachment (i didn't use times but result should be the same (format your cells as time)

    Questions?

    This maybe easy for some of you
    Nope, not easy.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-06-2012
    Location
    manchester
    MS-Off Ver
    Excel 2003
    Posts
    45

    Re: Sorting data

    Sorry for delayed reply.

    I keep getting REF erors when i try what you sheet has in it.

    I've attached the sheet i am using if you can help pleeeease

    Andy
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Sorting data

    Okay, my example assumed random scattered times and thus each time was unique. This is not the case with your data so my formula won't work. Where do you want the times (I'm assuming C10:F28?) moved to? Also, do you want them in order, C10, C11, C12, C13... or C10, D10, E10, F10, C11, D11....

  7. #7
    Registered User
    Join Date
    06-06-2012
    Location
    manchester
    MS-Off Ver
    Excel 2003
    Posts
    45

    Re: Sorting data

    The times are currently set to 03:00 06:00 ect ect, however when you enter an intake time the formula set will add 3hr/6hr/9hr/12hr to the intake time. I then need these to be put in a time order list in a random column to the right of the sheet??.

    I'll enter some times so it looks a little better if you dont mind having a look foer me please.

    Thanks a lot

    Andy
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Sorting data

    Okay, this is much simplier (I think)
    First, I modified your formulas to not calculate times if there is no input value.
    For example in C10
    =IF(ISNUMBER(A10),A10+$H$7,"")
    This can be copied all the way down (the "$" anchor cell H7 so it doesn't change). Similarly with other columns (see attachment)

    In J13 copied down
    =IF(COUNT($C$10:$F$28)>=ROW(A1),SMALL($C$10:$F$25,ROW(A1)),"")
    Does this work for you?
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    06-06-2012
    Location
    manchester
    MS-Off Ver
    Excel 2003
    Posts
    45

    Re: Sorting data

    Wow, you are an absolute start !!!!

    Thank you so much

  10. #10
    Registered User
    Join Date
    06-06-2012
    Location
    manchester
    MS-Off Ver
    Excel 2003
    Posts
    45

    Re: Sorting data

    Is it possiblefor the sheet to tell me what load the time has come from ??

    Cheers

+ 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