+ Reply to Thread
Results 1 to 3 of 3

Selecting Lowest Number from Data in a Single Cell Separated by Comma

  1. #1
    Registered User
    Join Date
    06-06-2016
    Location
    Pakistan
    MS-Off Ver
    MS Office 2007
    Posts
    2

    Selecting Lowest Number from Data in a Single Cell Separated by Comma

    Hi All,

    I am trying to figure out a way I can select the lowest number from data in a single cell separated by commas. And I want it to automatically select the lowest value when I edit the data.

    For Example:


    Cell A1 has 2,3,4,NA. I want it to select the lowest value which is 2 and the value should come in Cell B1.
    Cell A2 has only NA. and I want it to automatically select it in Cell B2.

    Could you please help me with this as I am not too great at excel and have been trying to figure this out since a few days.

    Cheers,
    Hasan

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Selecting Lowest Number from Data in a Single Cell Separated by Comma

    Delimited data in a single cell is a bad habit to get into.

    Try this array formula. If the formula returns the first number from A1 instead of the lowest then it would mean that the array has not been confirmed correctly.

    =IF(A1="NA",A1,MIN(IFERROR(MID(SUBSTITUTE(A1,",",REPT(" ",LEN(A1))),(ROW(A$1:INDEX(A:A,LEN(A1)-LEN(SUBSTITUTE(A1,",",""))+1))-1)*LEN(A1)+1,LEN(A1))+0,"")))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

  3. #3
    Registered User
    Join Date
    06-06-2016
    Location
    Pakistan
    MS-Off Ver
    MS Office 2007
    Posts
    2

    Re: Selecting Lowest Number from Data in a Single Cell Separated by Comma

    Thanks alot Jason! Worked like a charm! :D

+ 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: 2
    Last Post: 12-07-2015, 09:04 PM
  2. Separating multiple data separated by a comma into single cells.
    By sgmgrider in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-29-2015, 05:58 PM
  3. [SOLVED] Using comma separated values in a single cell
    By joerobb in forum Excel General
    Replies: 7
    Last Post: 01-16-2015, 08:45 AM
  4. Match a Value from a single-cell, comma separated list
    By secondchild12 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-24-2014, 06:16 PM
  5. Count number appear in single column with comma separated
    By cheeyap91 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-29-2014, 12:38 AM
  6. Macro to create a list of sheets, separated with comma in a single cell
    By manolomana in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-30-2014, 11:00 AM
  7. Column/cells to single cell comma separated data?
    By egeorge4 in forum Excel General
    Replies: 1
    Last Post: 04-27-2007, 03:53 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