Forum Discussion
SARAH11
Sep 25, 2021Brass Contributor
Nested IF function
Hello Genius people, I need your help with nested IF function I have 4 tables and a dropdown list, I want some of the numbers from the tables to change according to the choice of the dropdown ...
- Sep 25, 2021Suppose,
value for ....is
as it is= 5
25% = 125
50% = 150
75% = 175
100% = 200
and the drop-down list is in cell A1, then the required formula could be
=IF(A1=0.25,125,IF(A1=0.5,150,IF(A1=0.75,175,IF(A1=1,200,5))))
Note that the "as it is" value (5) needs to be hard coded into the formula. And effectively it (5) shall be displayed only when the A1 cell is empty.
Hope that that's what you intended and the formula works as such.
SARAH11
Sep 25, 2021Brass Contributor
I forgot to mention that I have 4 percentage: 100%, 75%, 50% and 25% in the dropdown list. every percent incur different cells numbers
Juliano-Petrukio
Sep 25, 2021Bronze Contributor
I know that IF formula is so captivating to start it, but it can become a nightmare when we want to nest multiple conditions.
So I recommend you using the CHOOSE formula where you can amplify easily your conditions.
=IFERROR(CHOOSE(MATCH(A1,{MatrixOfOptions},0),125,150,175,200),5)
Translating it
=IFERROR(CHOOSE(MATCH(A1,{0.25,0.5,0.75,1},0),125,150,175,200),5)
- SARAH11Sep 25, 2021Brass Contributor
What {MatrixOfOptions} and 0 represents? Both formulas didnt work 😕
- Juliano-PetrukioSep 25, 2021Bronze Contributor
Find attachment
- SARAH11Sep 25, 2021Brass ContributorMuch appreciated, but even though it didnt work in the file you sent, do I need to activate/download something for CHOOSE function to work?