+ Reply to Thread
Results 1 to 15 of 15

Get Max Value from a list of scores within a single cell

  1. #1
    Registered User
    Join Date
    01-07-2008
    Location
    Northampton, UK
    MS-Off Ver
    version 2212, office 365 enterprise
    Posts
    74

    Question Get Max Value from a list of scores within a single cell

    I've tried searching online and on this forum and can't seem to find a formula that works

    I have text within a single cell in the following format:

    Please Login or Register  to view this content.
    It has multiple text lines within a cell with a number in square brackets. I want the cell next to this one to return the maximum score from that string of text.

    Is there a formula that will work for this?

    Here is an example sheet, scores are in cell E7 and I want to return the max in E8

    forum example.xlsx
    Last edited by chrismann85; 01-25-2023 at 10:06 AM.
    Ne auderis delere orbem rigidum meum!

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Get Max Value from a list of scores within a single cell

    Can you please update your profile with both your Excel version and Location as answers do depend on knowing this information.

    And see yellow banner of how to attach a sample workbook.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Registered User
    Join Date
    01-07-2008
    Location
    Northampton, UK
    MS-Off Ver
    version 2212, office 365 enterprise
    Posts
    74

    Re: Get Max Value from a list of scores within a single cell

    Hi John,

    Thanks for the message, I've updated my profile and added an example sheet

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,910

    Re: Get Max Value from a list of scores within a single cell

    Try this

    =MAX(SPLIT(SUBSTITUTE(E7;"[";"]");"]"))

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Get Max Value from a list of scores within a single cell

    with Power Query
    tailored to your example
    Score Max
    Emissions Failure [9]
    Gas Leak [8]
    Component wear [5]
    9


    Please Login or Register  to view this content.
    Last edited by sandy666; 01-25-2023 at 08:35 AM.

  6. #6
    Registered User
    Join Date
    01-07-2008
    Location
    Northampton, UK
    MS-Off Ver
    version 2212, office 365 enterprise
    Posts
    74

    Re: Get Max Value from a list of scores within a single cell

    Quote Originally Posted by Phuocam View Post
    Try this

    =MAX(SPLIT(SUBSTITUTE(E7;"[";"]");"]"))
    I get a "function not valid" error when I try this

  7. #7
    Registered User
    Join Date
    01-07-2008
    Location
    Northampton, UK
    MS-Off Ver
    version 2212, office 365 enterprise
    Posts
    74

    Re: Get Max Value from a list of scores within a single cell

    Quote Originally Posted by sandy666 View Post
    with Power Query
    tailored to your example
    Score Max
    Emissions Failure [9]
    Gas Leak [8]
    Component wear [5]
    9


    Please Login or Register  to view this content.

    Thanks or the reply, I'm trying not to use a UDF and I can't change the format of the table so trying to contain it within a formula if that's possible

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Get Max Value from a list of scores within a single cell

    This is Power Query, M not vba

    look here


    I didn't change your source table
    Last edited by sandy666; 01-25-2023 at 09:09 AM.

  9. #9
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Get Max Value from a list of scores within a single cell

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    01-07-2008
    Location
    Northampton, UK
    MS-Off Ver
    version 2212, office 365 enterprise
    Posts
    74

    Re: Get Max Value from a list of scores within a single cell

    Quote Originally Posted by sandy666 View Post
    This is Power Query, M not vba

    look here


    I didn't change your source table
    Ah ok sorry, Power Query is new to me... I'll do some reading!

  11. #11
    Registered User
    Join Date
    01-07-2008
    Location
    Northampton, UK
    MS-Off Ver
    version 2212, office 365 enterprise
    Posts
    74

    Re: Get Max Value from a list of scores within a single cell

    Quote Originally Posted by Fluff13 View Post
    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This returns a value of 0

  12. #12
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Get Max Value from a list of scores within a single cell

    It returns 9 for me
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    01-07-2008
    Location
    Northampton, UK
    MS-Off Ver
    version 2212, office 365 enterprise
    Posts
    74

    Re: Get Max Value from a list of scores within a single cell

    Quote Originally Posted by Fluff13 View Post
    It returns 9 for me
    That's weird, I pasted the formula into excel and it returned a 0... but when I copy and pasted from your sheet it worked!

    Thanks for sending the attachment!

  14. #14
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Get Max Value from a list of scores within a single cell

    Glad to help & thanks for the feedback.

  15. #15
    Registered User
    Join Date
    06-12-2023
    Location
    london, England
    MS-Off Ver
    microsoft 365
    Posts
    1

    Re: Get Max Value from a list of scores within a single cell

    will this work with minimum value?

+ 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. List Top 5 Scores and Identifying Them
    By Apokolipse in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-31-2022, 01:41 PM
  2. [SOLVED] Top Ten Scores in separate list
    By John Henworth in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-21-2021, 06:59 AM
  3. Need to enter test scores and return suggestions based on those scores
    By deborahlane in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 10
    Last Post: 09-28-2020, 01:23 PM
  4. [SOLVED] I need a macro to select range of scores, choose the best scores and apply a formula
    By hadleedog in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-12-2015, 03:15 PM
  5. Replies: 8
    Last Post: 12-20-2014, 04:37 PM
  6. [SOLVED] separate list of names in same cell separated by semicolon into one single list
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-04-2014, 11:18 AM
  7. [SOLVED] List the most recent five scores from among multiple scores
    By Winship in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-11-2012, 09:25 PM

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