IF (formula is true) put a "1" in another cell

S

Sandta

How do you put a value in another cell if the formula you are using is true.

=if(A1>=3000,"(put a 1 in B1)",otherwise false)
 
T

T. Valko

This will return 1 if true and 0 if false:

=--(A1>=3000)

To make it more robust you might want to ensure that A1 actually conatins
number (a TEXT entry will evaluate to be >=3000):

=COUNT(A1)*(A1>=3000)
 
Top