Is it possible to nest more than 7 functions
On Mon, 2 Apr 2007 17:38:03 -0700, billy boy
wrote:
Here is what I have
=IF(AND(E591000,E5<99000),"1-50 &
1-40",IF(AND(E5139600,E5<147000),"4-40's",IF(AND(E5182000,E5<198000),"2-40's
&
2-50's",IF(AND(E5176501,E5<181999),"3-50’s",IF(AND(E5161000,E5<167500),"3-40's
& 1-50",IF(AND(E5167501,E5<176500),"3-40's & 1-50 OR
3-50's",IF(AND(E5147001,E5<154500),"4-40's OR 1-40 & 2-50's","No good")))
This is what I want
=IF(AND(E591000,E5<99000),"1-50 &
1-40",IF(AND(E5139600,E5<147000),"4-40's",IF(AND(E5182000,E5<198000),"2-40's
&
2-50's",IF(AND(E5176501,E5<181999),"3-50’s",IF(AND(E5161000,E5<167500),"3-40's
& 1-50",IF(AND(E5167501,E5<176500),"3-40's & 1-50 OR
3-50's",IF(AND(E5147001,E5<154500),"4-40's OR 1-40 &
2-50's",IF(AND(E5182000,E5<195000),"3-50's,","No good"))))))))
Thanks
VLOOKUP would be a much simpler construct.
It would also let you more easily see that you have some overlapping ranges. In
your desired formula, you have the following:
....IF(AND(E5182000,E5<198000),"2-40's & 2-50's" ...
....IF(AND(E5182000,E5<195000),"3-50's," ...
You could set up a table like:
0 No Good
91,000 1-50 & 1-40
99,001 No Good
139,600 4-40's
147,001 4-40's OR 1-40 & 2-50's
154,501 No Good
161,000 3-40's & 1-50
167,501 3-40's & 1-50 OR 3-50's
176,501 3-50's
182,000 2-40's & 2-50's
182,000 3-50's
But you'd have to figure out what you want to do at the end where you have
overlapping ranges.
And then use a formula like:
=VLOOKUP(E5,tbl,2)
--ron
|