Gareth Brown
Board Regular
- Joined
- Jul 29, 2002
- Messages
- 52
Hi all,
Is there a neater way than using nested ifs to achieve a vlookup BETWEEN two numbers?
ie. have the equivalent of a lookup table except i need a value returned if it is between the numbers:
Min;Max;Return value
60;110;0.455
-10;60;0.318
110;150;0.136
150;(inf);0.091
-(inf);-10;0.000
So if I have 80 (between 60 and 110) 0.455 is returned.
Any ideas?
thanks in advance.
Is there a neater way than using nested ifs to achieve a vlookup BETWEEN two numbers?
ie. have the equivalent of a lookup table except i need a value returned if it is between the numbers:
Min;Max;Return value
60;110;0.455
-10;60;0.318
110;150;0.136
150;(inf);0.091
-(inf);-10;0.000
So if I have 80 (between 60 and 110) 0.455 is returned.
Any ideas?
thanks in advance.