Check box

Dhimit

Board Regular
Joined
Jul 24, 2007
Messages
195
Hi,

Can somebody pls. tell me the syntax for using a checkbox in a col. ?

If checkbox checked >> Syntax ??
If un-checked >. Syntax ??

Does it simply evaluate to val. of cell to either 'Y' or 'N' ?

Pls. advise.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Checkbox values are true false...
Checked = True
UnChecked = False

Code:
If CheckBox1 = TRUE Then
    Action if it's checked
Else
    Action if it's false
End If

Hope that helps..
 
Upvote 0
Checkbox values are true false...
Checked = True
UnChecked = False

Code:
If CheckBox1 = TRUE Then
    Action if it's checked
Else
    Action if it's false
End If

Hope that helps..

Thnaks.

How do i incorporate this in a 'IF' function statement ?

I tried this but it only evaluates to 'n' , i.e it does'nt give a result to 'y' when unchecked

=IF(I3=TRUE,"yes","no" )


Rgds - DC
 
Upvote 0
If you want it to be Yes when it's UNchecked, and No when it IS Checked..

=IF(I3=TRUE,"No","Yes")

The checkbox value is FALSE when UNchecked, TRUE when CHECKED.
 
Upvote 0
If you want it to be Yes when it's UNchecked, and No when it IS Checked..

=IF(I3=TRUE,"No","Yes")

The checkbox value is FALSE when UNchecked, TRUE when CHECKED.

Thanks - why is that when i toggle the checkbox it does'nt evaluate the result ?

it returns value on the 1st instance, but it does'nt return value of opp. action ?
 
Last edited:
Upvote 0
Do you have the "Linked Cell" Property of the Checkbox Set to I3 ?

Do you see the Text TRUE or FALSE in I3?
 
Upvote 0
Do you have the "Linked Cell" Property of the Checkbox Set to I3 ? >> How do i do this ?

Do you see the Text TRUE or FALSE in I3?

I've placed the checkbox on I3 & evaluating result to another cell > K3
 
Upvote 0
Was the checkbox cretead with the "Forms" Toolbar or the "Control Toolbox" toolbar?

It would be better created by the Control Toolbox..

Then you can right click the checkbox, choose properties.
Theres a property called "Linked Cell", set that to I3
 
Upvote 0
I used checkbox from Control toolbox, but can't seem to call up the properties when i right click ?

DC
 
Upvote 0

Forum statistics

Threads
1,214,807
Messages
6,121,679
Members
449,047
Latest member
notmrdurden

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top