Check boxes for adding up numbers

xdj

New Member
Joined
May 2, 2005
Messages
15
Howdy,
It sounds simple enough, but I can't seem to grasp the concept.
I have a column of prices, I would like to have check boxes in a column beside the prices so that I can check the boxes and that they give me the sum of the prices that are checked.
Is that possible?
Any help would be appreciated.

Cheers,

Chris
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
Sure, make sure you're using the Checkboxes from the "Control Toolbox" Toolbar, not the "Forms" Toolbar...

once you get your checkboxes in (or while you're putting them in), right click each one, properties.
Find the Linked Cell Property. Set that to a cell adjescent to the cell with the value you want summed. For example, if you're wanting to sum A1 based on that checkbox, put B1 as the linked cell..

Once you have all those done, each cell in column B will now = TRUE or FALSE based on the checkbox being checked...

then you can use Sumif
=SUMIF(B1:B10,TRUE,A1:A10)

Hope this helps...
 
Upvote 0

xdj

New Member
Joined
May 2, 2005
Messages
15
Thank you for the response.
I'm having problems with the check box, it's always checked. I can not uncheck it.
Any suggestions?

Thank you,

Chris
 
Upvote 0

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
Make sure to Exit Out of Design Mode.

That's a toggle button on the "Control Toolbox" Toolbar
 
Upvote 0

xdj

New Member
Joined
May 2, 2005
Messages
15
Hey, that's it!
Now to continue on with it...
Thank you.
 
Upvote 0

xdj

New Member
Joined
May 2, 2005
Messages
15
jonmo1,
Now all that happens is when I check the box, TRUE appears in the location where the price is and FALSE when it is unchecked.
What did I do wrong?
 
Upvote 0

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
The linked cell of each checkbox should be a cell NEXT TO the cell with the price...Not the cell with the price itself..
 
Upvote 0

xdj

New Member
Joined
May 2, 2005
Messages
15
Sweet!
Is there a way for the "TRUE" and "FALSE" not to be displayed?
Thanks,
 
Upvote 0

Forum statistics

Threads
1,191,610
Messages
5,987,659
Members
440,104
Latest member
thigarette

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