if then

  • Thread starter Thread starter vdmbqb
  • Start date Start date
V

vdmbqb

I need a formula for cell B1.
If cell A1 is greater than 0 enter that value in b1.

I will be using this formula to teach myself the basics of if then formulas
 
=IF(A1>0,1,"")

This will return 1 if the value in A1 is greater than 0 and Blank if it is
not greater than 0.
 
Your formula will fail if A1 contain text

Here is the correction:
=IF(AND(ISNUMBER(A1),A1>0),A1,"")
 
This also seems to work...

=IF(MAX(A1,0)>0,A1,"")

Rick


Teethless mama said:
Your formula will fail if A1 contain text

Here is the correction:
=IF(AND(ISNUMBER(A1),A1>0),A1,"")
 
Back
Top