inkserious
Technical User
- Jul 26, 2006
- 67
I'm stuck on what would normally seem to be a simple formula. I have a table: column A contains minimum values: 0, 2.4, 2.8, 3.8, and 4.5. Column B contains maximum values of 2.39, 2.79, 3.79, 4.49 and 5 respectively. Column C contains corresponding percentages: 0.0%, 0.0%, 2.0%, 2.5% and 3.0% respectively.
Column A Column B Column C
[tt]0[/tt][tab][tab][tab][tab][tt]2.39[/tt][tab][tab][tab][tt]0.0%[/tt]
[tt]2.4[/tt][tab][tab][tab][tt]2.79[/tt][tab][tab][tab][tt]0.0%[/tt]
[tt]2.8[/tt][tab][tab][tab][tt]3.79[/tt][tab][tab][tab][tt]2.0%[/tt]
[tt]3.8[/tt][tab][tab][tab][tt]4.49[/tt][tab][tab][tab][tt]2.5%[/tt][tt]
4.5[/tt][tab][tab][tab][tt]5.0[/tt][tab][tab][tab][tt]3.0%[/tt]
I need to look up a number whose value is greater than or equal to a number in column A and whose value is less than or equal to the corresponding value in column B and then return the percentage value in column C. For example, 3.25 would be between 2.8 and 3.79 so it would return 2.0%; 3.8 would be between 3.8 and 4.49 so it would return 2.5%, etc.
Thanks for any help you can provide.
-ep
Column A Column B Column C
[tt]0[/tt][tab][tab][tab][tab][tt]2.39[/tt][tab][tab][tab][tt]0.0%[/tt]
[tt]2.4[/tt][tab][tab][tab][tt]2.79[/tt][tab][tab][tab][tt]0.0%[/tt]
[tt]2.8[/tt][tab][tab][tab][tt]3.79[/tt][tab][tab][tab][tt]2.0%[/tt]
[tt]3.8[/tt][tab][tab][tab][tt]4.49[/tt][tab][tab][tab][tt]2.5%[/tt][tt]
4.5[/tt][tab][tab][tab][tt]5.0[/tt][tab][tab][tab][tt]3.0%[/tt]
I need to look up a number whose value is greater than or equal to a number in column A and whose value is less than or equal to the corresponding value in column B and then return the percentage value in column C. For example, 3.25 would be between 2.8 and 3.79 so it would return 2.0%; 3.8 would be between 3.8 and 4.49 so it would return 2.5%, etc.
Thanks for any help you can provide.
-ep