+ Reply to Thread
Results 1 to 7 of 7

Trying to lock an entire row together for sorting.

Hybrid View

  1. #1
    Registered User
    Join Date
    07-18-2008
    Location
    canada
    Posts
    4

    Trying to lock an entire row together for sorting.

    I'm sure this is an easy thing to do. What I have is a sheet where I record results from a race. It calculates the lowest 4 out of 5 scores for the event. Now comes the fun part. The participants name is in a merged cell beside the data,and what I need to be able to do is sort the results from lowest score to highest score and have their name move with the sorting.

    Each sheet is for a separate class, so it does not need to sort between sheets.

    That sounds right in my head, lol.

    TIA
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,102

    Re: Trying to lock an entire row together for sorting.

    You will struggle to achieve your objective with merged cells. End of. The name will only exist in the first cell of the merged cell range ... so it is not there to be sorted.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    10-30-2014
    Location
    England
    MS-Off Ver
    2007 / 365
    Posts
    281

    Re: Trying to lock an entire row together for sorting.

    Agree with TMS. Is there are good reason why you need the merged cells?

  4. #4
    Registered User
    Join Date
    07-18-2008
    Location
    canada
    Posts
    4

    Re: Trying to lock an entire row together for sorting.

    ok, so if all the cells are the same size, I still can't get the sheet to move the names with rest of the row.

    So peter in row 1, paul in row 2 and mary in row 3 need to move with the results and sorting. I am high lighting the total row and selecting sort,then selecting lowest to highest and that all moves, but the names stay where they are.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,102

    Re: Trying to lock an entire row together for sorting.

    Post a new sample workbook. There's no data in the one you uploaded.

  6. #6
    Registered User
    Join Date
    07-18-2008
    Location
    canada
    Posts
    4

    Re: Trying to lock an entire row together for sorting.

    Ok, book with data in it. The last column needs to be sorted from lowest number to highest number and keep the name of the person who has that score. The person with the lowest score is thew winner of the event.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    10-30-2014
    Location
    England
    MS-Off Ver
    2007 / 365
    Posts
    281

    Re: Trying to lock an entire row together for sorting.

    You need to select ALL columns that you wish to sort, i.e. Columns A:I. Then sort by the Total column Smallest to Largest.

    One issue you will have is with the 0's in the Total column being sorted as the lowest values, so you'll need to make the Total formulas equal to a blank "" if no scores have been added to that row.
    Easiest way to do this is to leave the score cells blank rather than add a zero, then wrap your Total formula in an IFERROR function to equal "".

    So...

    =IFERROR(SUM(SMALL(D2:H2,{1,2,3,4})),"")

+ 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. [SOLVED] vba to lock the entire row
    By shiva_reshs in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-28-2018, 05:49 AM
  2. Lock entire Row if Value in Col A = X
    By walsha23 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-31-2017, 07:00 AM
  3. Lock entire Row if Value in Col A = X
    By walsha23 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-26-2017, 10:38 AM
  4. it is possible to lock entire ROW
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-10-2014, 05:24 AM
  5. [SOLVED] Lock entire column if data has been entered in it
    By bassterro in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-01-2014, 03:25 PM
  6. [SOLVED] Lock an entire row
    By kid_epicurus in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-20-2012, 12:33 PM
  7. Replies: 13
    Last Post: 03-13-2012, 06:24 AM

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