if then formula

  • Thread starter Thread starter vdmbqb
  • Start date Start date
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
 
You could use a formula in A1:

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

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

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