ActiveX Checkbox defining formula in another cell

tmo

New Member
Joined
Mar 9, 2009
Messages
4
I'm new at this, please help :confused:

I have activeX checkboxes in a column of cells that also have numeric values. I want to total the values in the cells of the column by adding cells ONLY if the checkbox in that cell is not checked. When the box is checked, I do not want the value included in the sum. How can I do this?
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
I suggest using checkboxes from the 'Forms' toolbar. Link them to a cell in each row.

Let's say you link the cells to column A, and you want to sum the values in column B for all values that aren't checked:
=SUMIF(A1:A100,"<>"&TRUE,B1:B100)

I'm sure you can do it with a macro too, but it will get a bit more complicated.
 
Upvote 0

Forum statistics

Threads
1,214,873
Messages
6,122,029
Members
449,061
Latest member
TheRealJoaquin

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