I have a spreadsheet in Excel 2007 (on Windows Vista) which has two columns of numbers (they're actually currency amounts) similar to this:
A............B
0.00......30.00
30.01.....32.50
32.51.....35.00
35.01.....37.50
37.51.....40.00
40.01.....42.50
...
And so on, up to
242.50.....245.00
Over 245.00
On another sheet of the same Spreadsheet, the user will be generating a number based on other (unrelated) inputs. This number could be any currency amount.
What I would like to be able to do is use a formula to find where the generated number falls in the list. Where this generated number is greater than the number in Column A and less than or equal to the number in column B, the result of the formula will be the value in Column B.
Here's an example, The user generates a number, 36.46, which falls between the numbers in row 4, i.e., 35.01 - 37.50. I would like the formula to return the result 37.50.
If at all possible, I'd like to be able to do it using a formula rather than VBA.
I've tried using various combinations of CHOOSE, IF, AND, VLOOKUP, MEDIAN, and many others, so much that I've completely lost track of where to go now. Any help will be much appreciated.
A............B
0.00......30.00
30.01.....32.50
32.51.....35.00
35.01.....37.50
37.51.....40.00
40.01.....42.50
...
And so on, up to
242.50.....245.00
Over 245.00
On another sheet of the same Spreadsheet, the user will be generating a number based on other (unrelated) inputs. This number could be any currency amount.
What I would like to be able to do is use a formula to find where the generated number falls in the list. Where this generated number is greater than the number in Column A and less than or equal to the number in column B, the result of the formula will be the value in Column B.
Here's an example, The user generates a number, 36.46, which falls between the numbers in row 4, i.e., 35.01 - 37.50. I would like the formula to return the result 37.50.
If at all possible, I'd like to be able to do it using a formula rather than VBA.
I've tried using various combinations of CHOOSE, IF, AND, VLOOKUP, MEDIAN, and many others, so much that I've completely lost track of where to go now. Any help will be much appreciated.