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.
And just to clarify, not all the data sets would necissarily have data with <0.05
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.
Hi,
in the example Data in A1:Z1
23, 45, 62, <0.05, 5, 34, <0.10, 12, Not Analyzed, 14, <0.05
Array MIN to be confirmed with control+shift+enter.=MIN(IF(ISNUMBER(SUBSTITUTE(A1:Z1,"<","")+0),SUBSTITUTE(A1:Z1,"<","")+0))
Regards
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
If you want to actually return <0.05, then, assuming data is in A2:A12 try:
confirmed with CTRL+SHIFT+ENTER not just ENTER=INDEX(A2:A12,MATCH(TRUE,SUBSTITUTE(A2:A12,"<","")+0=MIN(IF(ISNUMBER(SUBSTITUTE(A2:A12,"<","")+0),SUBSTITUTE(A2:A12,"<","")+0)),0))
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.
The < is very important in the final spreadsheet, so I don't just want to make it go away.
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.
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks