Hello all!
There has to be an easier way to accomplish what I'm after, would love any ideas. I am trying to write a formula that spits out a value based on what range the percentage falls in. I'm currently using nested IFs to determine if the percentage falls in between the ranges below and gives me the value in the third column.
This code is basically if my value is greater than 3, and less than 3.4, give me 1500, if false repeat for 3.5-3.9 etc. I've tried to mess around with Index Match but haven't found any solution yet. Thanks in advance!
There has to be an easier way to accomplish what I'm after, would love any ideas. I am trying to write a formula that spits out a value based on what range the percentage falls in. I'm currently using nested IFs to determine if the percentage falls in between the ranges below and gives me the value in the third column.
3.0% | 3.4% | 1500 |
3.5% | 3.9% | 1410 |
4.0% | 4.4% | 1320 |
4.5% | 4.9% | 1230 |
5.0% | 5.4% | 1140 |
5.5% | 5.9% | 1050 |
Excel Formula:
=IF($P$10<$AL$17,$AN$17,IF(AND($P$10>$AL$18,$P$10<$AM$18),AN18,IF(AND($P$10>$AL$19,$P$10<$AM$19),$AN$19,IF(AND($P$10>$AL$20,$P$10<$AM$20),$AN$20,IF(AND($P$10>$AL$21,$P$10<$AM$21),$AN$21,IF(AND($P$10>$AL$22,$P$10<$AM$22),$AN$22,IF(AND($P$10>$AL$23,$P$10<$AM$23),$AN$23,IF($P$10=$AL$24,AN24,IF($P$10>$AL$24,$AN$25,"0")))))))))
This code is basically if my value is greater than 3, and less than 3.4, give me 1500, if false repeat for 3.5-3.9 etc. I've tried to mess around with Index Match but haven't found any solution yet. Thanks in advance!