+ Reply to Thread
Results 1 to 4 of 4

Determine highest cell value in column

  1. #1
    Registered User
    Join Date
    07-20-2011
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    15

    Determine highest cell value in column

    I need to be able to highlight the largest cell value in a column. It's not as simple as it sounds- the column in question contains strings, not numbers. I have a classification system for DVDs that I burn, and I keep track of them by giving them each a unique ID. For example, Disc 1 might be D-0001, Disc 2 would be D-0002, etc, except that I use hex numbers (instead of 10,000 (10^4) unique disc IDs allowed with 4 digits, I can have 65,536 (16^4)). For example, Disc 9 would be D-0009, and Disc 10 would be D-000A, and so on. So it is a string containing a padded hex number. You might ask, why don't you just look at the last ID in the column? Well, to further complicate things, I also group the discs in to certain groups, with a unique group ID, such as G-001 (also using hex numbers). Groups can have 1 or more discs in them, and I sometimes have to go back to an older group to add more discs. Obviously, the unique disc IDs have to keep incrementing, so I end up with a jumbled column of disc IDs, and an "alphabetized" column of group IDs. I have to search the disc ID column every time manually for the largest number so I don't repeat the ID. I'd rather not re-sort by disc ID because I have gaps in between chunks of unique group IDs, and I would not be able to get this back with another re-sort.

    How might I go about converting this disc ID to a number so that I can use conditional formatting to highlight the "top value" in the disc ID column?

  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
    44,434

    Re: Determine highest cell value in column

    You could use a Helper column and use HEX2DEC to convert the number/code.

    For example, for a code in C1, assuming the codes are in column C

    =HEX2DEC(MID(C1,3,3))+HEX2DEC(RIGHT(C1,1))/100 formatted as 0.00. Copy the formula down.

    Then use MAX to determine the highest value, INDEX/MATCH to return the number/code

    So, if the Helper column is column F

    =INDEX($C$1:$C$6,MATCH(MAX($F$1:$F$6),$F$1:$F$6,0))
    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
    Registered User
    Join Date
    07-20-2011
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Determine highest cell value in column

    Thanks! That works perfectly, and I can hide the helper column when I need to.

  4. #4
    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
    44,434

    Re: Determine highest cell value in column

    You're welcome. Thanks for the rep.


    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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