Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel: How to use Checkbox with IF Statement? 1

Status
Not open for further replies.

rlee16

Technical User
Jan 19, 2003
44
0
0
HK
I have a checkbox in my excel file. Depending on whether it is checked or not, I would like Cell A1 to grab value from either A2 or A3.

e.g.
Cell A1 = if(CheckBox1.Value = True,A2, A3)

I do not know how to properly write the syntax for this. Thanks in advance!

Richard
 
Hi Richard,

Link your checkbox to a cell, say A4, then use
=IF(A4,A2,A3)

Enjoy,
Tony
 
Thanks Tony,

Works like a charm!

Richard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top