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

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -