ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   IF (formula is true) put a "1" in another cell (https://www.excelbanter.com/excel-discussion-misc-queries/235116-if-formula-true-put-1-another-cell.html)

Sandta

IF (formula is true) put a "1" in another cell
 
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)

Mike Rogers[_2_]

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

Place formula in B1

=if(A1=3000,1 ,"")

Mike Rogers

"Sandta" wrote:

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. Valko

IF (formula is true) put a "1" in another cell
 
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)

--
Biff
Microsoft Excel MVP


"Sandta" wrote in message
...
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)





All times are GMT +1. The time now is 12:37 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com