conditional statement problem

R

RYNNER

hello,

i hav a prob... how can i make a formula that states.. if A1=2 then B1+2
else B1+3(this is on cell C1) and so on and so fort at C row.. and what if A1
is blank then A2 has a value and i wanted it to automatically formulated at
C1.

hope you help me guyz...

rynner from philippines
 
S

Shane Devenshire

Hi,

Try

=B1+IF(A1=2,2,3)

or an even shorter version

=2+B1+(A1<>2)


And copy it down as far as needed.
 

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

Top