Formula Errors

Fix the Excel Formula Too Many Values or Cell References Error

Kushani NimanthikaKushani Nimanthika Nov 20, 2026 870 views

Question details

The user needs to resolve an Excel error that appears when entering an IF formula.

Fix the Excel Formula Too Many Values or Cell References Error
Product
Microsoft Excel
Device & OS
not provided
Scenario
The user is entering an IF formula that checks whether C8 contains JOBCODE and returns ADDRESS or an empty string.
Observed behavior
Excel reports too many values, cell references, and/or names even though the IF formula is normally valid.
Before you start

Identify the worksheet cell where you are entering the formula and check whether it is a standalone formula or part of a longer expression. Note the exact error message and whether other formulas work in the same workbook.

Solution 1Recommended

Check the IF formula syntax and cell format

Use this approach to rule out an incorrect formula prefix, argument separator, or cell format.

1
Select a worksheet cell

Click an empty worksheet cell where you want the result to appear, rather than entering the expression in a name or another formula context.

2
Check the cell format

On the Home tab, check the Number Format box. If the cell is formatted as Text, change it to General before reentering the formula.

3
Enter the formula

In the cell or formula bar, enter =IF(C8="JOBCODE","ADDRESS","") and press Enter. The equals sign is required to begin the formula.

4
Try the regional separator

If your Excel settings use semicolons between arguments, enter =IF(C8="JOBCODE";"ADDRESS";"") instead. Use straight quotation marks and check that each opening parenthesis has a matching closing parenthesis.

Check the IF formula syntax and cell format
Expected result: The formula returns ADDRESS when C8 contains JOBCODE; otherwise, it returns an empty string. Text formatting may prevent a formula from evaluating, but it does not necessarily explain this specific error.
Free Microsoft Office alternative

Work with IF Formulas in WPS Spreadsheets

WPS Office is a free, lightweight, and easy-to-use alternative for working with spreadsheets. Its familiar interface and Excel format compatibility make it easy to move existing files, although it does not repair an error in Microsoft Excel itself.

Create and edit spreadsheets with IF formulas.Open and save Microsoft Excel formats, including XLSX.Use a familiar spreadsheet interface for easier migration.Work with a free, lightweight Office alternative.
QA img-9

Frequently Asked Questions

Is =IF(C8="JOBCODE","ADDRESS","") a valid Excel formula?

Yes. In a worksheet cell, it returns ADDRESS if C8 contains JOBCODE and an empty string otherwise. If your regional settings use semicolons, use them instead of commas between the arguments.

Why does Excel show my formula as text?

The cell may be formatted as Text. Select it, choose General from the Number Format box on the Home tab, then reenter the formula beginning with an equals sign.

How can I tell whether the workbook is causing the error?

Select File > New to create a blank workbook, put JOBCODE in C8, and test the IF formula in another cell. Compare the result with the original workbook and test a simple formula such as =1+1 in both.

What should I check if the IF formula is nested?

Select the formula cell and inspect the full expression in the formula bar. Check that each IF has the correct arguments, separators, quotation marks, and matching parentheses.