+ Reply to Thread
Results 1 to 12 of 12

Max value of a set containing alphanumeric and numeric values

  1. #1
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Max value of a set containing alphanumeric and numeric values

    Hi folks, trying to get the maximum value of a set of values, some may contain letters and can vary from one character to ten. MAX function works for numeric values, but I cannot figure out how to make something work with alphanumeric. Any help would be appreciated, thanks! I have attached an example.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,626

    Re: Max value of a set containing alphanumeric and numeric values

    Try this:

    =MAX(--RIGHT(A3:E3,1))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: Max value of a set containing alphanumeric and numeric values

    Thanks AliGW, your answer is close, but I forgot to explain it has to return the exact value, not just the number because it is also then used in a vlookup formula to find another value in a spreadsheet. Maybe somehow I can make this work if I don't get an exact answer. Again, thanks!
    Last edited by AliGW; 07-01-2020 at 12:23 PM. Reason: Please don't quote unnecessarily!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,626

    Re: Max value of a set containing alphanumeric and numeric values

    Perhaps this?

    =INDEX($A$3:$E$3,MATCH("*"&MAX(--RIGHT(A3:E3,1)),$A$3:$E$3,0))

  5. #5
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: Max value of a set containing alphanumeric and numeric values

    Success! Thanks, although I only tried one line, but it does work!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,626

    Re: Max value of a set containing alphanumeric and numeric values

    It will work as long as there is only one number at the end that needs taking into account ... Fingers crossed!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  7. #7
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: Max value of a set containing alphanumeric and numeric values

    I see, now that you said, "as long as there is only one number at the end", which is a problem. These alphanumeric values can range from A1 to who knows as these are from various customers. Back to the drawing board as they say. Let me revise my example to reflect all the possibilities that could arise.
    Attached Files Attached Files
    Last edited by thecdnmole; 07-01-2020 at 01:09 PM.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,626

    Re: Max value of a set containing alphanumeric and numeric values

    What's the ultimate purpose? Is there anything else associated with these entries (e.g. a date) that could be used to help identify the maximum?

    Are you still using Office 2010?

  9. #9
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: Max value of a set containing alphanumeric and numeric values

    That's basically it, although this MAX value is part of a complex variations of formulas for a chart, but way to hard to explain all of that. Why the variation in numbers as they are provided by customers, therefore I must work with that. It would be simpler to drop the alpa characters, but that could also vary from one to who knows. No, these values are provided and used to lookup other values on a spreadsheet using vlookup. Actually, I just upgraded to Office365, but customers using this may have older versions of Excel.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,626

    Re: Max value of a set containing alphanumeric and numeric values

    I am sure there is a better way to do what you need, but we'd need to see the data in more context in order to advise.

    Perhaps you can mock something up?

  11. #11
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Max value of a set containing alphanumeric and numeric values

    based on your examples:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    the above would return 00011 ahead of 0005 -- whereas in literal string sense the 0005 would be the 'greater' of the two values

    if the 00011 was a typo, and that numbers would follow same format {i.e. 0011}, then you might find something like below would work:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    both assume, per sample, that the alpha prefixes are consistent on the row - where present -- if not the COUNTIF will return highest string (so ZZ0001 would > AA0099), whilst the Array will fail altogether.

  12. #12
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: Max value of a set containing alphanumeric and numeric values

    Thanks Xlent, I tried your second formula and that seems to work the best. I did have to tweak another formula so adjust and it does seem to work for the amount of testing I have been able to do. Sorry AliGW, what I provided in the second example would be about all I could do, as the worksheet this is used on probably would not work standalone, and if it did, you might not be able to figure out easily what it is I am trying to do, although maybe you'd come up with a much simpler/better way! Thanks again to both of you for your help and I will now mark this as solved.

+ 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] convert Alphanumeric Value into Numeric Value in new column
    By topaz99 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-16-2013, 04:36 PM
  2. Find alphanumeric values in one column and split alpha from numeric
    By bowdendavid in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-08-2013, 03:23 PM
  3. Sorting numeric and alphanumeric normally
    By SoTM in forum Excel General
    Replies: 6
    Last Post: 12-16-2012, 06:01 AM
  4. [SOLVED] HELP NEEDED: Extracting specific numeric values from alphanumeric cells?
    By hennerby in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-01-2012, 12:45 PM
  5. [SOLVED] IF conditon on numeric and alphanumeric
    By emina002 in forum Excel General
    Replies: 5
    Last Post: 06-13-2012, 04:34 AM
  6. Summing numeric parts of alphanumeric values
    By amdk8800 in forum Excel General
    Replies: 10
    Last Post: 11-17-2009, 08:27 PM
  7. [SOLVED] Converting Alphanumeric numbers to Numeric
    By Lowkey in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-08-2006, 06:30 PM
  8. [SOLVED] How to change alphanumeric to numeric
    By borg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-12-2006, 07:00 PM

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