Function Problems

Multiply Excel Cells When a Form Checkbox Is Checked

Tauseeq MagsiTauseeq Magsi Nov 18, 2026 869 views

Question details

Use a Form checkbox to control whether two Excel cells are multiplied.

Multiply Excel Cells When a Form Checkbox Is Checked
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet contains a Form checkbox and two values that should be multiplied only when the checkbox is checked.
Observed behavior
The linked cell should supply TRUE or FALSE so the formula returns the product when checked and zero when cleared.
Before you start

Confirm that the checkbox is a Form control and that B7 and C7 contain the values to multiply. Make sure D7 is available for the checkbox link and E7 is available for the result.

Solution 1Recommended

Link the Form checkbox and multiply by its TRUE or FALSE value

Use this formula-based method to control the result without a macro.

1
Link the checkbox

Right-click the Form checkbox, select Format Control, open the Control tab, and set Cell link to D7. Click OK.

2
Enter the formula

Select E7 and enter =B7*C7*D7, then press Enter.

3
Test the result

Click the checkbox. When checked, D7 is TRUE and E7 shows B7 multiplied by C7; when cleared, D7 is FALSE and E7 shows zero.

4
Remove the label if desired

Right-click the checkbox, choose Edit Text, and delete the displayed label. Click outside the control to finish.

Link the Form checkbox and multiply by its TRUE or FALSE value
Why the formula works: In this multiplication, Excel treats the linked TRUE value as 1 and FALSE as 0. Removing the displayed label does not remove the control or its internal name.
WPS Spreadsheet

Calculate from a Checkbox Value in WPS Spreadsheet

Open the workbook in WPS Spreadsheet and use the same linked TRUE or FALSE value to control the multiplication. Form control editing options can vary by version.

  1. 1. Open the workbook: In WPS Spreadsheet, choose Open and select the Excel workbook containing the checkbox.
  2. 2. Check the linked cell: Click the checkbox and check whether D7 changes between TRUE and FALSE. If it is not linked, use the checkbox's control properties to set D7 as its linked cell, if that option is available in your version.
  3. 3. Enter the formula: Select E7, enter =B7*C7*D7, and press Enter.
  4. 4. Test and save: Click the checkbox to test both states, then choose File > Save. If your version cannot edit the checkbox link, set it in Excel or enter TRUE and FALSE in D7 directly.
Use a TRUE or FALSE value to turn the multiplication result on or offOpen and save Microsoft Excel XLSX filesWork with formulas in a familiar spreadsheet interfaceEdit spreadsheets with a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Do I need a macro to multiply cells based on a checkbox?

No. Link the Form checkbox to D7 and enter =B7*C7*D7 in E7. The linked TRUE or FALSE value controls the result.

Why does the formula return zero when the checkbox is cleared?

Clearing the linked checkbox sets D7 to FALSE. In the multiplication formula, FALSE acts as zero, so the result is zero.

How do I hide the text next to the checkbox?

Right-click the Form checkbox, select Edit Text, and delete the displayed text. The checkbox and its internal name remain.

How can I check whether the checkbox is linked correctly?

Click the checkbox and watch D7. It should change between TRUE and FALSE. If it does not, right-click the checkbox and check Format Control > Control > Cell link.