+ Reply to Thread
Results 1 to 14 of 14

Choosing highest ranked value in a row text and numbers

  1. #1
    Registered User
    Join Date
    01-20-2013
    Location
    Gold coast, australia
    MS-Off Ver
    Excel 2007
    Posts
    9

    Post Choosing highest ranked value in a row text and numbers

    Hi,

    I am trying to get a cell let's say A4 to tell me the highest ranked value in that row A5 to A15, the row consists of numbers and letters, so it could have A, B, C, 0, 1, 3, 2. In this case the answer would be 3, but if there was A, B, C, 1, 2, CXL then CXL would be the answer.

    The only way I can think of doing this is creating a table with the rankings in order as a reference table so cell A4 looks at the row and compares this with the table. I don't know what the formula would be though.

    The formula has to be able to be copied down, and if the reference table is the way to go I would like the table to be on sheet 2

    Thanks

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Choosing highest ranked value in a row text and numbers

    See if this is something you can work with:Rjwilliams93.sol1.xlsx

    The table is on sheet 2, and I used named ranges for the columns (sorry ,I did not make them dynamic, you'll either have to edit the ranges, or make dynamic, to add further rank info )

    Hope this helps
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  3. #3
    Registered User
    Join Date
    01-20-2013
    Location
    Gold coast, australia
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Choosing highest ranked value in a row text and numbers

    Perfect, thank you so much!

  4. #4
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Choosing highest ranked value in a row text and numbers

    You are welcome

    Please remember to mark the thread as solved if you are satisfied with your solution :
    To mark thread "Solved", go to the top of the thread,click "Thread Tools",click "Mark as Solved"

  5. #5
    Registered User
    Join Date
    01-20-2013
    Location
    Gold coast, australia
    MS-Off Ver
    Excel 2007
    Posts
    9

    Post Re: Choosing highest ranked value in a row text and numbers

    Hey,

    I hit another problem, when i put this into practice it came up with a error and put NAME## in the cell, i have attached an example of the sheet I'm using, P1 has the lowest rank, then all the letters, then numbers and CANCELLED has the highest rank. Cell C8 is where the answer needs to be, everything right of that in the same row is data for the rank.

    Same as before where this can be copied down.

    Thanks in advance
    Attached Files Attached Files

  6. #6
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Choosing highest ranked value in a row text and numbers

    Did you expand the ranking list ?

  7. #7
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Choosing highest ranked value in a row text and numbers

    Okay, try this: RJWILLIAMS93.sol3.xlsx

    It now has dynamic ranges, good for about 1000 rank options,to add more ranking criteria, add the Item at the bottom of the list In sheet2 column A, and it's ranking number in cell beside it
    (you'll have to manually adjust the rankings of the others)

    the formula is in C8, just drag it down

    NOTE- the formula is NOT case sensitive ( at least, not so far as my testing has found )

    Hope this helps

  8. #8
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Choosing highest ranked value in a row text and numbers

    Noticed a bug in my formula...sorry
    In C8:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    copy down

    The added RED part will stop Blank cells from returning false positives for 0 (zero),
    sorry for any confusion

  9. #9
    Registered User
    Join Date
    01-20-2013
    Location
    Gold coast, australia
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Choosing highest ranked value in a row text and numbers

    Yeh this works now, thanks very much!

  10. #10
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Choosing highest ranked value in a row text and numbers

    You are welcome!
    And again, sorry about any confusion with the false positives there...don't know what I was thinking...

  11. #11
    Registered User
    Join Date
    01-20-2013
    Location
    Gold coast, australia
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Choosing highest ranked value in a row text and numbers

    Hey,

    Thanks for helping yesterday, i have one final question which may seem silly, how will i copy this to similar spreadsheets, I am copying the formula into another excel document in the same cell, I also copied the table on sheet 2 into the document into the same location but the result seems to be ####.

    If there is something else I am suppose to copy apart from the table on sheet 2 and the formula then that could be the problem.

    The spreadsheet I am copying it to is the same as I sent you just with confidential info placed in, but the numbers and letters (i.e A, 0, P1) are the same as the one i sent you are in the same places so i don't know why it isn't copying.

    Thanks in advance

  12. #12
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Choosing highest ranked value in a row text and numbers

    You also have to copy the range names, and the applies to of them, for them to work
    If you go to the Formulas Tab, you willll see Name Manager, click on it and a list of defined names will show up, Look for RValue and VRank if you click on one of them, the applies to will show something like this

    =OFFSET(Sheet2!$B$2,0,0,SUMPRODUCT(--(Sheet2!$B$2:$B$1000<>"")),1)

    if you copy that and Define VRank in new workbook, paste that into the applies to area, you'll have the named range,
    do this for both Vrank and Rvalue before you use the formula, and you should be good to go

  13. #13
    Registered User
    Join Date
    01-20-2013
    Location
    Gold coast, australia
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Choosing highest ranked value in a row text and numbers

    Thanks, this works perfectly!

  14. #14
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Choosing highest ranked value in a row text and numbers

    You are welcome, and glad to hear it

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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