try
=match(g2,ll3:ul3)
then adjust with -1 or -2 or ?
--
Don Guillett
SalesAid Software
(E-Mail Removed)
"Robert H" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> have a table that I insert measured data into. Based on the value
> of the measured data, a formula returns a value in an adjacent cell.
> Usualy this would be easy for me just using a simple IF function But
> my method creates too many ifs and I get an error:
>
> =IF((G$2>=LL3)*(G$2<=UL3),3,IF((G$2>=LL4)*(G$2<=UL4),4,IF((G
> $2>=LL5)*(G
> $2<=UL5),5,IF((G$2>=LL6)*(G$2<=UL6),6,IF((G$2>=LL7)*(G$2<=UL7),7,IF((G
> $2>=LL8)*(G$2<=UL8),8,IF((G$2>=LL9)*(G$2<=UL9),9,FALSE)))))))
> It also just seems inefficient to next all those Ifs, and have to do
> it for each cell of meaured data...
>
> In this case the data to fill the cell comes from a small table:
>
> WT LL UL
> 3 1.40 1.60
> 4 1.70 1.90
> 5 2.00 2.20
> 6 2.30 2.60
> 7 2.70 3.00
> 8 3.10 3.50
> 9 3.60 4.15
> 10 4.10 4.75
> 11 4.62 5.46
> 12 5.20 6.25
> 13 5.83 7.10
> 14 6.50 8.00
> 15 7.20 9.00
>
> I neet a formula/Function etc to look through the LL and UL columns
> nad when the value fits, return the adjacent WT.
>
> So If I enter 2.8 as measured data the result in the target cell will
> be "7".
>
> Thanks
> Robert
>