+ Reply to Thread
Results 1 to 9 of 9

Thread: Working with <## data

  1. #1
    Registered User
    Join Date
    03-03-2011
    Location
    Fredericton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    4

    Question Working with <## data

    Hi, I have found lots of useful info on this forum before, and I am not a new excel user (I am self taught), but one problem keeps stumping me. I work with a lot of data that contains the < sign. The lab gives us a sheet that has the data, but if is not detected it is entered as <0.05 for example. I have come up with long, tedious ways to work around this in my formulas, but if I want to look up the minimum value (which in some cases may be <0.05) how do I look up in a range and include those numbers beginnning with <? The IF function seems to have trouble with conditions on a range of cells, and I am still learning the numerous other functions at my disposal, so there may be one I have yet to discover that will solve my problem.

    E.G.

    Data: 23, 45, 62, <0.05, 5, 34, <0.10, 12, Not Analyzed, 14, <0.05
    Now I want to look up what the minimum value is (for this data set it should return <0.05). I may have up to 50 similar data sets in my sheet that I would be using the autofill to copy the function from the first data set into. Maybe there is no elegant solution, but I figured maybe someone here knows something I don't! And my life would be a whole ton easier!
    Last edited by Xipha; 03-04-2011 at 08:18 AM.

  2. #2
    Registered User
    Join Date
    03-03-2011
    Location
    Fredericton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Working with <## data

    And just to clarify, not all the data sets would necissarily have data with <0.05

  3. #3
    Forum Guru Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    2,772

    Re: Working with <## data

    Can you upload a small sample file?

    Your first problem is that a cell showing <0.05 would be a text value and would be ignored by the MIN() function. I'm thinking you would have to use a helper column (or row) to convert any/all such text values to numerics and do your MIN() calc on that range.

  4. #4
    Valued Forum Contributor
    Join Date
    12-03-2009
    Location
    Firenze, Italy
    MS-Off Ver
    Excel 2000 XP
    Posts
    436

    Re: Working with <## data

    Hi,

    in the example Data in A1:Z1

    23, 45, 62, <0.05, 5, 34, <0.10, 12, Not Analyzed, 14, <0.05


    =MIN(IF(ISNUMBER(SUBSTITUTE(A1:Z1,"<","")+0),SUBSTITUTE(A1:Z1,"<","")+0))
    Array MIN to be confirmed with control+shift+enter.

    Regards

  5. #5
    Extremely Helpful member
    Join Date
    12-23-2006
    Location
    Belgium
    MS-Off Ver
    XL2003
    Posts
    6,127

    Re: Working with <## data

    Why don't you simply get rid of the "<" using Ctrl H - Replace what : < With (nothing) and click "replace all", then apply the usual formula
    Quoting entire posts clutters the forum and makes threads hard to read !

    If you are pleased with a member's answer then use the Star icon to rate it

    Click here to see forum rules

  6. #6
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Working with <## data

    If you want to actually return <0.05, then, assuming data is in A2:A12 try:

    =INDEX(A2:A12,MATCH(TRUE,SUBSTITUTE(A2:A12,"<","")+0=MIN(IF(ISNUMBER(SUBSTITUTE(A2:A12,"<","")+0),SUBSTITUTE(A2:A12,"<","")+0)),0))
    confirmed with CTRL+SHIFT+ENTER not just ENTER
    Last edited by NBVC; 03-07-2011 at 07:51 AM.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  7. #7
    Registered User
    Join Date
    03-03-2011
    Location
    Fredericton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Working with <## data

    The < is very important in the final spreadsheet, so I don't just want to make it go away.

  8. #8
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Working with <## data

    Did you try my formula above? It retains the "<" symbol.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  9. #9
    Registered User
    Join Date
    03-03-2011
    Location
    Fredericton, Canada
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Working with <## data

    Perfect! Both solutions worked the way they were supposed to (although I did have to take the fixed references out of the "INDEX" function in order to apply the formula to all the data set ), now I just have to learn what exactly each function does and the how the logic is applied, and I think my life will be a lot easier when I run into similar problems! Thanks for all the help, it's given me a starting place to learn some new stuff
    Last edited by Xipha; 03-04-2011 at 08:21 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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.2.0