Here is what I did. No VBA code was used.
I linked each of your checkboxes to a cell
Go to the Developer panel and click Design. Right-click the checkbox and select Properties. Type the address of the desired cell into the LinkedCell property. When the box is checked, this cell will be True and when the box is unchecked it will be False.
named those cells
This step is unnecessary but allows the formulas be more readable. You must use Name Manager to do this. If you prefer you can just use the cell addresses in the formula.
and then the SUM formulas checks those cells to determine which values to include.
For each cell, I specified the conditions that determine whether that cell is included in the sum.
Based on your last post it would be corrected to
I also used Conditional Formatting to set the cells to be grayed out when checkbox B is selected. This is just for appearances.
Bookmarks