Excel CheckBox

A

Angela

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

Peo Sjoblom

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top