Excel, conditional checkbox?

Solved
Asfero -  
Mike-31 Posted messages 18405 Registration date   Status Contributeur Last intervention   -
Hello,

Here's my question about Excel.

I have added checkboxes to my document. I would like a number to appear in a cell when they are checked, and when not checked, nothing should show in that same cell.

Conversely, how do I include the checkbox in the IF function?? Or is there another function?

Thank you for your help (I'm quite a beginner with Excel)...
Configuration: Windows XP Firefox 3.0.10

17 réponses

Mike-31 Posted messages 18405 Registration date   Status Contributeur Last intervention   5 145
 
Re,

Yes, absolutely, with Excel there are only solutions.

So right-click on your checkbox and go to control format, in the linked cell select a cell, for example A1, which will serve to control your checkbox and in which TRUE or FALSE will be recorded depending on whether your checkbox is checked or not.

Then in another cell the formula is simple

=IF(A1=TRUE,125,"")

If you have some knowledge of VBA it would be preferable to go through the control bar and enter a VBA

A+--

A problem without a solution is a poorly posed problem (Einstein)
8