+ Reply to Thread
Results 1 to 5 of 5

Max, Min within a list within a cell

  1. #1
    Registered User
    Join Date
    09-28-2020
    Location
    Chicago, IL
    MS-Off Ver
    16.39
    Posts
    3

    Max, Min within a list within a cell

    I have data in a sheet that look exactly like this:

    [54.6 38.1 29.68 33.65 61.43]
    [56.83 56.19 35.87 69.52 47.94]
    [63.33 43.02 80.95 30.79 57.62]
    [22.6 26.1 4.81 38.94 44.33]
    [45.79 51.33 32.23 26.4 28.73 23.77 98.15]
    [22.31 50.75 57.17 15.17 57.6 ]
    [41.71 49.44 2.19 48.85]

    Each bracketed list of numbers is contained in a single cell, each cell in a different row of a column.

    How can I extract the max and min from each cell despite the brackets and lack of commas?

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

    Re: Max, Min within a list within a cell

    Try this

    MAX =AGGREGATE(14,6,--TRIM(MID(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"[",""),"]","")," ",REPT(" ",250)),ROW(INDIRECT("1:50"))*250,250)),1)

    MIN =AGGREGATE(15,6,--TRIM(MID(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"[",""),"]","")," ",REPT(" ",250)),ROW(INDIRECT("1:50"))*250,250)),1)

  3. #3
    Registered User
    Join Date
    09-28-2020
    Location
    Chicago, IL
    MS-Off Ver
    16.39
    Posts
    3

    Re: Max, Min within a list within a cell

    Thank you, but I'm a novice. What do I do with that?

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

    Re: Max, Min within a list within a cell

    Hi,

    See the attached file.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-28-2020
    Location
    Chicago, IL
    MS-Off Ver
    16.39
    Posts
    3

    Re: Max, Min within a list within a cell

    Thank you! It works great.

+ 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. Replies: 3
    Last Post: 11-13-2015, 05:10 AM
  2. [SOLVED] Looper File That opens files from a list to paste values from a cell in a list
    By amartin575 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-22-2014, 10:49 AM
  3. Replies: 2
    Last Post: 03-16-2014, 10:04 AM
  4. [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
  5. Replies: 1
    Last Post: 04-19-2013, 02:25 AM
  6. Auto add a list cell if the last list cell is filled
    By tasuooooo in forum Excel General
    Replies: 0
    Last Post: 07-19-2012, 03:33 AM
  7. Replies: 1
    Last Post: 05-17-2011, 08:44 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