Checkboxes to calculate tax

city_girl4you

New Member
Joined
Oct 15, 2006
Messages
7
Hi All,

I'm hoping somebody can help me. I created a template of a contract and within it I have created checkboxes to indicate which taxes to apply to the total. In some cases the customer would be exempt from paying one or more taxes. There is a checkbox for each tax.

I don't know how to do the calculations if the box is checked. For instance:

Checkbox 1 - (PST exempt?) if they are then $0.00 if they're not, then Subtotal x 8%

Checkbox 2 - (GST exempt?) if they are then $0.00, if they're not, then Subtotal x 6%

I'm so frustrated trying to get this to work. HELP!!! :cry:
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi,

Right click on the check box and select the Contol Tab. Link the control with a cell, e.g. A1.

Now assuming the subtotal is in B1 you can use a formula like this:

=IF(A1=TRUE,0,B1*0.08)

The linked cells can be out in a hidden column so as they're out of sight.

Dom
 
Upvote 0
Right-click on your checkbox. Select Format Control, then the Control tab. In the Cell link: box, enter a cell address of a cell that is out of view of the invoice (cells H11 and H12, respectively, in the sample below). Now, if either of the checkboxes are checked, their respective linked cells will return TRUE. If not checked, the cells will return FALSE.

Now, you can use these formulas (which refer to the sample below):
Formula in C11 is: =IF(H11=TRUE,"",$C$10*B11)
Formula in C12 is: =IF(H12=TRUE,"",$C$10*B12)

The sample below has both of the boxes un-checked.
Book1
ABCDEFGH
9
10Subtotal100
11PST Tax8%8FALSE
12GST Tax6%6FALSE
13114
14
Sheet1


EDIT: Dom, you're just too fast for me. Must be all of those muscles. :)
 
Upvote 0

Forum statistics

Threads
1,215,544
Messages
6,125,444
Members
449,226
Latest member
Zimcho

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