Hey all,
I am needing to shorten this formula so I can put it into a data validation drop down list.
=IF($c$11="1", 'LI'!$A$9:$A$99, IF($c$11="2", 'LI'!$b$9:$B$99, IF($c$11="4", 'LI'!$d$9:$d$99, IF($c$11="5", 'LI'!$e$9:$e$99, IF($c$11="6", 'LI'!$f$9:$f$99, IF($c$11="7", 'LI'!$g$9:$g$99, IF($c$11="8", 'LI'!$h$9:$h$99, IF($c$11="9", 'LI'!$i$9:$i$99, IF($c$11="10", 'LI'!$j$9:$j$99, IF($c$11="11", 'LI'!$k$9:$k$99, IF($c$11="13", 'LI'!$m$9:$m$99, IF($c$11="14", 'LI'!$n$9:$n$99, IF($c$11="15", 'LI'!$o$9:$o$99)))))))))))))))
Each of the parameters is referring to a column, which I need to be able to pull multiple values, based on the cell condition in C11.
The formula works fine when I had less IF conditions, but now that I have 15 separate columns to draw from, I need to revise this formula.
Does anyone have any work arounds or tips?
Thanks in advance!
I am needing to shorten this formula so I can put it into a data validation drop down list.
=IF($c$11="1", 'LI'!$A$9:$A$99, IF($c$11="2", 'LI'!$b$9:$B$99, IF($c$11="4", 'LI'!$d$9:$d$99, IF($c$11="5", 'LI'!$e$9:$e$99, IF($c$11="6", 'LI'!$f$9:$f$99, IF($c$11="7", 'LI'!$g$9:$g$99, IF($c$11="8", 'LI'!$h$9:$h$99, IF($c$11="9", 'LI'!$i$9:$i$99, IF($c$11="10", 'LI'!$j$9:$j$99, IF($c$11="11", 'LI'!$k$9:$k$99, IF($c$11="13", 'LI'!$m$9:$m$99, IF($c$11="14", 'LI'!$n$9:$n$99, IF($c$11="15", 'LI'!$o$9:$o$99)))))))))))))))
Each of the parameters is referring to a column, which I need to be able to pull multiple values, based on the cell condition in C11.
The formula works fine when I had less IF conditions, but now that I have 15 separate columns to draw from, I need to revise this formula.
Does anyone have any work arounds or tips?
Thanks in advance!