Using checkbox states in a formula

mplees

Active Member
Joined
Feb 6, 2006
Messages
351
Hi,

could anyone tell me whether the value of a checkbox can be used in a formula (in a cell, not in VBA)?

I originally had a formula that was:

=IF(AND(A1=1,B1<C1),"LOW","OK")

....but now I have to use a checkbox to evaluate instead of the cell value.

=IF(AND(Checkbox1=TRUE,B1<C1),"LOW","OK") obviously doesn't work

Is this possible, or would I have to do this using VBA - or is there an alternative approach? I have over 300 rows that have to be evaluated this way, so I'd prefer a formula based approach, if it can be done.

As always, thanks for the assistance - it is most appreciated!

Regards,

Mark
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
Can't you link the CheckBox to a cell using the LinkedCell property and use that cell in your test?
 

Jon von der Heyden

MrExcel MVP, Moderator
Joined
Apr 6, 2004
Messages
10,808
Office Version
  1. 365
Platform
  1. Windows
Hi,

Try using check box from the Forms menu. You can link these to a cell (right click checkbox -> Control -> Cell Link).

This will output TRUE or FALSE.

Regards,
Jon
 

mplees

Active Member
Joined
Feb 6, 2006
Messages
351
Thank you all for your assistance - it's most appreciated!

Regards,

Mark
 

Forum statistics

Threads
1,136,346
Messages
5,675,228
Members
419,555
Latest member
Paddington

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
Top