+ Reply to Thread
Results 1 to 6 of 6

MAX Function to obtain highest value of numbers with a letter prefix

Hybrid View

  1. #1
    Registered User
    Join Date
    03-30-2018
    Location
    USA
    MS-Off Ver
    EXCEL 2016
    Posts
    8

    MAX Function to obtain highest value of numbers with a letter prefix

    I'm trying to get the highest value for a column of numbers that start with the prefix T: T1000, T1001, T1002, T1003...to get T1003 as the highest.
    I've tried =MAX(A1:A23), but I get a 0 as a result. I have also tried =MAX(LEFT(A1:A23,1)) but I a get #VALUE! result.
    What would be the right formula?


    Capture.JPG

  2. #2
    Forum Contributor
    Join Date
    03-29-2013
    Location
    lakewood, usa
    MS-Off Ver
    exce2013
    Posts
    112

    Re: MAX Function to obtain highest value of numbers with a letter prefix

    Try this formula in cell where you want the largest value. Not my original.
    Formula: copy to clipboard
    =LOOKUP(2,1/(COUNTIF(A2:A13,"<"&A2:A13)=0),A2:A13)

  3. #3
    Registered User
    Join Date
    03-30-2018
    Location
    USA
    MS-Off Ver
    EXCEL 2016
    Posts
    8

    Re: MAX Function to obtain highest value of numbers with a letter prefix

    Thanks! It worked! I just had to change the symbol from "<" to ">" because it was giving me the smaller value. Thanks again!!

  4. #4
    Registered User
    Join Date
    03-30-2018
    Location
    USA
    MS-Off Ver
    EXCEL 2016
    Posts
    8

    Re: MAX Function to obtain highest value of numbers with a letter prefix

    Quote Originally Posted by wyowhite View Post
    Try this formula in cell where you want the largest value. Not my original.
    Formula: copy to clipboard
    =LOOKUP(2,1/(COUNTIF(A2:A13,"<"&A2:A13)=0),A2:A13)
    Thanks! It worked! I just had to change the symbol from "<" to ">" because it was giving me the smaller value. Thanks again!!

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: MAX Function to obtain highest value of numbers with a letter prefix

    Try this
    Formula: copy to clipboard
    =MAX(INDEX(--SUBSTITUTE(A1:A10,"T",""),0))

    v A B
    1 T1000
    2 T1006 1015
    3 T1005
    4 T1003
    5 T1004
    6 T1015
    7 T1006
    8 T1007
    9 T1008
    10 T1009
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Registered User
    Join Date
    03-30-2018
    Location
    USA
    MS-Off Ver
    EXCEL 2016
    Posts
    8

    Re: MAX Function to obtain highest value of numbers with a letter prefix

    Thanks! That works too! showing the answer without prefix if preferable.

+ 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] Alphanumeric sorting (letter prefix issue)
    By hokkaido19 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-10-2015, 09:30 PM
  2. [SOLVED] Obtain number which is highest multiple of specific constant
    By juriemagic in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-14-2015, 02:52 AM
  3. Letter prefix to numbers
    By adeleex in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-23-2011, 05:49 AM
  4. I need to add 3 letter prefix to existing numbers in list
    By Nick Renegade in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 11-05-2010, 07:52 AM
  5. Extract Numbers and prefix letter
    By aromaveda in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-22-2009, 09:00 PM
  6. best 20 results to obtain the highest average
    By coll in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-29-2008, 11:56 PM
  7. How can I add a two letter prefix to text in cells?
    By Newbs18 in forum Excel General
    Replies: 2
    Last Post: 11-09-2005, 12:10 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