ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Excel CheckBox (https://www.excelbanter.com/new-users-excel/152051-excel-checkbox.html)

Angela

Excel CheckBox
 
I've created a checkbox in A1.
If the checkbox is checked, I want B1 to appear as 1 and if not, 2. I
cannot get my if function to work. The worksheet recongnizes A1 as an empty
cell. I tried checkbox1"1", and got a name error message. Help.

Peo Sjoblom

Excel CheckBox
 
You need to link the check box to a cell and it will return either TRUE or
FALSE so if it is linked to H1 you can use this in B1


=IF(H1,1,2)


You could link it to a cell that is not visible (like IV1) or hide the
column where the linked cell is
if you don't like to see TRUE or FALSE

--
Regards,

Peo Sjoblom



"Angela" wrote in message
...
I've created a checkbox in A1.
If the checkbox is checked, I want B1 to appear as 1 and if not, 2. I
cannot get my if function to work. The worksheet recongnizes A1 as an
empty
cell. I tried checkbox1"1", and got a name error message. Help.




Angela

Excel CheckBox
 
Great answer, it works. Thanks much

"Angela" wrote:

I've created a checkbox in A1.
If the checkbox is checked, I want B1 to appear as 1 and if not, 2. I
cannot get my if function to work. The worksheet recongnizes A1 as an empty
cell. I tried checkbox1"1", and got a name error message. Help.



All times are GMT +1. The time now is 04:28 PM.

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