Too many if or nested loop in excel -
i have code has way many nested statements
basically have 1 cell compared 100 cells , 100 cells have own value, , excel have max 64 if loops. suggestions?
a=b =>> x=b1
a=c =>> x=c1
a=d =>> x=d1
a=e =>> x=e1
if(l2=s2,t2,if(l3=s3,t3,if(l4=s4,t4,if(l5=s5,t5,if(l6=s6,t6,if(l7=s7,t7,if(l8=s8,t8,if(l9=s9,t9,if(l10=s10,t10,if(l11=s11,t11)))))))))) thanks!
i think table lookup simpler bunch of ifs:
=hlookup(value,{"cond1","cond2","cond3";"res1","res2","res3"},2,false) or
=vlookup(value,{"cond1","res1";"cond2","res2";"cond3","res3"},2,false) even more simple if conditions , results continuous ranges
Comments
Post a Comment