IF function using embedded checkbox

wind1star

New Member
Joined
Jan 4, 2007
Messages
6
I need to create a formula that will calculate a total if someone checks a certain box. (Each check box is associated with a cost. When people check the correct costs, the bottom should total the costs checked.)
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi,

Are the checkboxes on a Userform or directly in an Excel spreadsheet?

If on an Excel spreadsheet, a checkbox will return either TRUE OR FALSE.
You can link your checkboxes to cells (1 per checkbox), either hiding the result column of the checkboxes or leaving it out in the open.

Then write an IF formula to gather the results. First checkbox linked to cell A1, for example.

=IF(A1=TRUE,50,0) Just replace the 50 with whatever the correct cost is.

Repeat this process for all checkboxes.

Ron
 
Upvote 1
Hi wind1star,

Ron put us on the right direction but you might need to elaborate the formula that you need to develop. Please give us some more insight on your needs and how the check boxes will be used.

RAM
 
Upvote 0
The sheet will more or less be an order form. When the user clicks the checkbox(s) I would like the sum of all the services that were checked to total at the bottom. So, I was thinking of developing a column beside the checkbox that would carryover the total if the box is checked.
 
Upvote 0
Hi wind1star,

That being said, you can use the solution I gave you by hiding the oclumn holding the result of the checkbox and then write an If statement for the cost.

At the bottom, sum all the costs together.

Ron
 
Upvote 0
To link the checkbox, right click on the checkbox and there will be an option called Format Control.

Click on Format Control and you will see a location called Cell Link. Type in the cell you would like the result to populate in.

Ron
 
Upvote 0
linked

My checkbox "Format Control" does not have the "location -cell link" you mentioned. Is there a special way to insert checkboxes other than by using the Control Toolbox?
 
Upvote 0
Oops!!!

I guess I should have asked which control you were using.

Use the forms toolbar. You will find the checkbox I was referring to on there.
 
Upvote 0

Forum statistics

Threads
1,224,722
Messages
6,180,559
Members
452,987
Latest member
mrfitness_79

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