Function Problems

How to Use an Excel Check Box to Return a Value from Another Cell

Muhammad TalhaMuhammad Talha Nov 2, 2026 870 views

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.

How to Use an Excel Check Box to Return a Value from Another Cell
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.
Before you start

Ensure the Developer tab is enabled in your Excel ribbon, as you will need it to insert Form Control check boxes into your worksheet.

Solution 1Recommended

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.

1
Insert the Check Box

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.

2
Link the Check Box to a Cell

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.

3
Enter the IF Formula

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.

4
Hide the Linked Cell Value (Optional)

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.

Link the Check Box and Apply an IF Function
Applying to Multiple Check Boxes: If you have multiple check boxes, link each one to a corresponding cell in column F, then drag the fill handle of cell H1 down to quickly copy the IF formula for the remaining rows.
Master Spreadsheets with WPS Office

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. 1. Open WPS Spreadsheet: Launch WPS Office and open your spreadsheet file.
  2. 2. Access Form Controls: Navigate to the Insert tab to easily add a Check Box to your sheet.
  3. 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.
Seamless compatibility with Microsoft Excel (.xlsx, .xls) files and formulas.Easily insert Form Controls like check boxes, option buttons, and drop-down lists.Free, lightweight, and user-friendly interface that requires no steep learning curve.
microsoft office alternative - wps office

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.