excel - Multiple "if then/ or" -
not quite sure if can if function? moment using below formula:
=+if(b7<100000,"cc",if(b7<250000,"mv, mp, pm",if(b7<500000,"fn",if(b7<1000000,"kh",if(b7>1000000,"df",false))))) i want add critera if cell a=1 c=+if(b7<100000,"cc",if(b7<250000,"mv, mp, pm",if(b7<500000,"fn",if(b7<1000000,"kh",if(b7>1000000,"df",false)))))
if a=2 c=+if(b7<10000,"cc",if(b7<50000,"ccl",if(b7<500000,"fn",if(b7<1000000,"kh",if(b7>1000000,"df",false)))))
hope clear enough , help
update: found, way easier excpected :)
=+if(a=1,if(b7<100000,"cc",if(b7<250000,"mv, mp, pm",if(b7<500000,"fn",if(b7<1000000,"kh",if(b7>1000000,"df",false))))),if(b7<10000,"cc",if(b7<50000,"ccl",if(b7<500000,"fn",if(b7<1000000,"kh",if(b7>1000000,"df",false))))) ok work if either true or false case
ps: try out switch function :)
if can using nested. syntax follows
=if(a1=1;<first if>;if(a1=2;<second if>;"not in 1 or 2")) so formula is.
=if(a1=1;if(b7<100000;"cc";if(b7<250000;"mv, mp, pm";if(b7<500000;"fn";if(b7<1000000;"kh";if(b7>1000000;"df";false)))));if(a1=2;if(b7<10000;"cc";if(b7<50000;"ccl";if(b7<500000;"fn";if(b7<1000000;"kh";if(b7>1000000;"df";false)))));"not in 1 or 2"))
Comments
Post a Comment