+ Reply to Thread
Results 1 to 7 of 7

Finding the Highest Value in alphanumeric strings

  1. #1
    Forum Contributor
    Join Date
    11-26-2008
    Location
    UK
    MS-Off Ver
    Using Excel 2019
    Posts
    317

    Finding the Highest Value in alphanumeric strings

    Hi,

    I have a column of one to three digit numbers (I5:I34), some of which contain an asterisk after them. In I35 i want a formula to find the highest value from that column. Additionally, if two numbers in the column are the same value, but one contains an asterisk after it, it should use that value in I35, instead of the one without the asterisk.

    Any help appreciated!
    Last edited by Barking_Mad; 10-28-2009 at 04:05 PM.

  2. #2
    Valued Forum Contributor jj72uk's Avatar
    Join Date
    03-22-2008
    Location
    Essex, England
    MS-Off Ver
    Work - Office 2000, Home - Office 2007E
    Posts
    360

    Re: Finding the Highest Value in alphanumeric strings

    Would this work...

    =max(I5:I35)

  3. #3
    Forum Contributor
    Join Date
    11-26-2008
    Location
    UK
    MS-Off Ver
    Using Excel 2019
    Posts
    317

    Re: Finding the Highest Value in alphanumeric strings

    Quote Originally Posted by jj72uk View Post
    Would this work...

    =max(I5:I35)
    The presence of the asterisk means this won't work. I think....

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Finding the Highest Value in alphanumeric strings

    Perhaps

    =SUBSTITUTE(MAX(--(0&SUBSTITUTE(I5:I35,"*",".1"))),".1","*")
    confirmed with CTRL + SHIFT + ENTER


    EDIT: should add for non-UK bods that the only reason I know the above will work is that all scores will be whole numbers (cricket - batting scores) hence use of .1
    Last edited by DonkeyOte; 10-28-2009 at 12:16 PM.

  5. #5
    Forum Contributor
    Join Date
    11-26-2008
    Location
    UK
    MS-Off Ver
    Using Excel 2019
    Posts
    317

    Re: Finding the Highest Value in alphanumeric strings

    Quote Originally Posted by DonkeyOte View Post
    Perhaps

    =SUBSTITUTE(MAX(--(0&SUBSTITUTE(I5:I35,"*",".1"))),".1","*")
    confirmed with CTRL + SHIFT + ENTER


    EDIT: should add for non-UK bods that the only reason I know the above will work is that all scores will be whole numbers (cricket - batting scores) hence use of .1
    Thanks for your help again, this kind of formula is way out of my comfort zone

    The value it is showing is 0, even though it has scores of 70*, 30, 25

    Any ideas?

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Finding the Highest Value in alphanumeric strings

    Did you commit the formula with CTRL + SHIFT + ENTER as advised ? (ie not just enter as normal)

    If the array is set correctly the formula will appear encased within { }

  7. #7
    Forum Contributor
    Join Date
    11-26-2008
    Location
    UK
    MS-Off Ver
    Using Excel 2019
    Posts
    317

    Re: Finding the Highest Value in alphanumeric strings

    Ah, ok - despite thinking i was doing it right, i was selecting CTRL+SHIFT+ENTER in the wrong place...works fine thanks!

+ 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