Fix the Excel Formula Too Many Values or Cell References Error
Question details
The user needs to resolve an Excel error that appears when entering an IF formula.

- 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.
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.
Check the IF formula syntax and cell format
Use this approach to rule out an incorrect formula prefix, argument separator, or cell format.
Click an empty worksheet cell where you want the result to appear, rather than entering the expression in a name or another formula context.
On the Home tab, check the Number Format box. If the cell is formatted as Text, change it to General before reentering 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.
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.

Test the formula in a new workbook
Use a clean workbook to determine whether the error is specific to the original workbook or formula context.
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.

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.




