if then formula

V

vdmbqb

Very simply put;

I need to return a value in A1.

If the amount in B1 is greater than zero A1 should return the value in B1.

But, if the cell B1 is blank, then A1 should return the amount in C1.

TIA
bob
 
D

Dave Peterson

You could use a formula in A1:

=if(b1>0,B1,if(b1="",c1,"What Happens If B1 is 0 or Negative"))
 
T

T. Valko

What if B1 is 0 or less?

If B1 will only be numbers >=0 or an empty/blank cell:

=IF(N(B1),B1,C1)
 

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