how to inplement "if then else"

  • Thread starter Thread starter Leo Kerner
  • Start date Start date
L

Leo Kerner

Can somebody tell me how to implement "if then else" structures in
excel?
Something like

if C3 < 56 then B1= function_1
else if (C3 > 56 AND C3 <100) then B1 = function_2
else B1 = funcion_3

Thanks.

Leo
 
one way:

B1: =IF(C3<=56, function_1, IF(C3<100, function_2, function_3))

note that you don't have give a result for C3 = 56, so I assumed that it
should return function_1
 
hi
if Range("C3") < 56 then
Range("B1").value = "Function_1"
else
if Range("C3") > 56 AND Range("C3") < 100 then
Range("B1").value = "Function_2"
else
Range("B1").value = "Functions_3"
end if
end if
this would be the sturcture but i think it still may give
to problems. i don't know what these functions are.
Post back with more info if you have problems.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top