+ Reply to Thread
Results 1 to 5 of 5

Getting the MAX value from a list of values in a single cell

  1. #1
    Registered User
    Join Date
    09-28-2007
    Posts
    14

    Unhappy Getting the MAX value from a list of values in a single cell

    I am trying to identify the greatest value in a list of values in a single cell. For example, cell has 1,2,3,4. I would like to identify the greatest (or least) value in that cell. Can this be done?

    Thank you!!

    -denise

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Getting the MAX value from a list of values in a single cell

    antedenise,

    Can we see examples of your raw data?

    Please attach your workbook or a sample workbook that accurately portrays your current workbook on one sheet, and what it should look like 'After' on another sheet. This makes it much easier to see exactly what you want to do, as well as shows us whether there is a consistent number of rows between tables and such.

    Click on the New Post button, then scroll down and see Manage Attachments.
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,995

    Re: Getting the MAX value from a list of values in a single cell

    Also would be helpful to know if there are always the same number of numbers in the list, or if it varies, and whether the values are sorted or in random order.

    When you have a list like that in a cell, it treated as text rather than numeric data so it is not trivial to manipulate it as numbers. It is certainly possible with VBA, and is likely possible with formulas, but I echo stanleydgromjr's suggestion to post a sample.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Getting the MAX value from a list of values in a single cell

    You could try this entered with CTRL+SHIFT+ENTER

    Please Login or Register  to view this content.
    Regards
    Darren

    Update 12-Nov-2010 Still job hunting!

    If you are happy with the results, please add to our reputation by clicking the blue scales icon in the blue bar of the post.

    Learn something new each day, Embrace change do not fear it, evolve and do not become extinct!


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

    Re: Getting the MAX value from a list of values in a single cell

    Or:

    Please Login or Register  to view this content.
    An alternative would be to utilise Evaluate - either via Defined Name (XLM), 3rd Party Add-In (morefunc) or your own basic UDF, eg:

    Please Login or Register  to view this content.
    the above, stored in a Module in VBE in a Macro Enabled File would be invoked from a cell along the lines of:

    Please Login or Register  to view this content.
    there is an optional parameter to define the function you wish to apply to the string - MAX is assumed by default - so if you wanted to return the MIN

    Please Login or Register  to view this content.

+ 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