1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Excel peeps: sort multiple columns at same time

Discussion in 'General' started by tiggen, Apr 7, 2023.

  1. tiggen

    tiggen Things are lookin' up.

    I have a column of 30 lap times. I want to sort it smallest to largest. I hit the AZ^ button on the sort menu, Bob's your auntie.

    How do I do this in batches? I have 78 columns of lap times next to each other. I want to sort each column just like above, but if I highlight the cell range, sort no longer works.
     
  2. Phl218

    Phl218 .

    Put something in the top row. Like “lap time” or rider …

    then mark all of row 1 and do “apply filter”

    once the filter option appears you can do sort: smallest to largest
     
  3. Phl218

    Phl218 .

  4. tiggen

    tiggen Things are lookin' up.

    That's not working, or I'm not understanding what you're saying.

    Once I label and create a filter, I've essentially created a table. If I sort one column smallest to largest, all other columns are sorted based on the relative cell positions to the sorted column. The other columns are not also sorted smallest to largest.
     
  5. Jedb

    Jedb Professional Novice :-)

    Phl218 and badmoon692008 like this.
  6. tiggen

    tiggen Things are lookin' up.

    Yeah, that's what I've been doing. Was just wondering if there was a more efficient way. Beginning to think there isn't one.
     
  7. Jedb

    Jedb Professional Novice :-)

    You could try putting a gap column in between each column of data, then using filters
    Data, Gap, Data, Gap, etc.
     
  8. Phl218

    Phl218 .

    There might be a way with min and max but don’t ask me how.
     
  9. mpusch

    mpusch Well-Known Member

    Could probably make a macro for that pretty easily.
     
  10. rd49

    rd49 Well-Known Member

    Never send a spreadsheet to do a database’s work. :D
     
    CBRRRRR999, Jed, chobes and 2 others like this.
  11. tiggen

    tiggen Things are lookin' up.

    Tried, no go.
     
  12. tiggen

    tiggen Things are lookin' up.

    Ultimately, I think this is what I want/need to do, but I don't know how.

    I should have studied computer languages in school.
     
  13. mpusch

    mpusch Well-Known Member

    Macros aren't that bad though, you don't really need to know much about VBA to do simple ones. You can record actions you want it to do and it'll make the code for you. It would take a bit of learning but it could be useful for the future too.

    Or just brute force it and get it over with :)
     
  14. GixxerBlade

    GixxerBlade Oh geez

    You might have to convert all your laptimes to seconds and then sort them
    You can copy this formula and paste it into the first cell of a new column next to the lap times. Then, copy the formula down to all the rows of lap times to convert them all to seconds.

    Code:
    =TIMEVALUE("00:"&A1)*86400
    
     
    Phl218 likes this.
  15. Phl218

    Phl218 .

    ^ and then convert them back into min:sec.000 format
     
    GixxerBlade likes this.

Share This Page