How to Use an Excel Check Box to Return a Value from Another Cell
Question details
The user wants to display a specific cell's value (like a cost) when a check box is checked, and return zero when the check box is cleared.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Creating interactive spreadsheets where values conditionally appear based on user input via check boxes.
- Observed behavior
- The goal is to have a target cell dynamically update to show a specific value when the check box is ticked, and return 0 when unchecked.
Ensure the Developer tab is enabled in your Excel ribbon, as you will need it to insert Form Control check boxes into your worksheet.
Link the Check Box and Apply an IF Function
By linking the check box to a specific cell and applying an IF formula, you can dynamically display values based on the TRUE or FALSE state of the check box.
When you check or uncheck a Form Control check box in Excel, it can output a TRUE or FALSE value to a linked cell. You can then use a simple IF function to evaluate this linked cell and output your desired value or 0.
Go to the Developer tab, click Insert, and choose the Check Box from the Form Controls section. Click anywhere on your sheet to place it.
Right-click the check box and select Format Control. Go to the Control tab, click in the 'Cell link' box, and select a cell (for example, F1). Click OK.
In your target cell where you want the result to appear (e.g., H1), type the formula =IF(F1,G1,0). In this example, G1 contains the value or cost you want to display when the box is checked.
To keep your sheet looking clean, select the linked cell (F1) and change the font color to white so the TRUE or FALSE text becomes invisible against the white background.

Create Interactive Spreadsheets with WPS Office
WPS Spreadsheet provides full support for form controls, including check boxes, and advanced functions like IF to help you build highly interactive data sheets. It is completely compatible with Microsoft Excel formats.
- 1. Open WPS Spreadsheet: Launch WPS Office and open your spreadsheet file.
- 2. Access Form Controls: Navigate to the Insert tab to easily add a Check Box to your sheet.
- 3. Link and Apply IF: Right-click the check box to set the Cell Link, then use the =IF(LinkedCell, Value, 0) formula exactly as you would in Microsoft Excel.

Frequently Asked Questions
Why is my IF formula returning an error instead of the value?
Ensure your check box is properly linked to a cell that returns TRUE or FALSE. If the linked cell is missing or the reference is broken, the IF function cannot evaluate the condition. Check your Format Control settings to verify the exact linked cell address.
How do I enable the Developer tab to insert a check box?
Go to File > Options > Customize Ribbon. Under the Main Tabs list on the right side, check the box next to 'Developer' and click OK. The Developer tab will now appear at the top of your Excel window.
Can I use text instead of numbers with the IF function?
Yes, you can easily modify the IF formula to return text strings instead of cell values or zeros. For example, use =IF(F1,"Approved","Pending"). Just make sure to enclose your desired text inside double quotation marks.




