How to Fix Excel OFFSET, MATCH, and CELL Reference Errors
Question details
The user is encountering a reference error when attempting to use the OFFSET function combined with MATCH and CELL, because the CELL function outputs a text string instead of a usable cell reference.

- Product
- Excel / WPS Spreadsheet
- Device & OS
- not provided
- Scenario
- Attempting to create a dynamic range or look up a relative value by feeding a cell address generated by the CELL function into the OFFSET function.
- Observed behavior
- A formula reference error occurs because the OFFSET function requires an actual cell reference, but it receives a text string (such as "$A$4") from the CELL function.
Ensure you know exactly which cell address your CELL function is outputting, and verify that your target dataset contains the lookup values required by the MATCH function.
Convert the Text Address to a Reference Using INDIRECT
Wrap the CELL function inside INDIRECT to convert the text string into a valid cell reference that the OFFSET function can read.
The CELL function with the "address" argument returns the location of a cell as text (e.g., "$A$4"). Since OFFSET needs a reference object, you must bridge this gap using the INDIRECT function, which translates text strings into active cell references.
Click on the cell where you want to build and display the result of your OFFSET formula.
Modify your existing CELL formula by wrapping it inside the INDIRECT function. For example, change it to INDIRECT(CELL("address", ...)).
Place the newly created INDIRECT formula into the reference argument of your OFFSET function. The complete formula should look like: =OFFSET(INDIRECT(CELL("address",INDEX($A$1:$A$13,MATCH(D1,$A$1:$A$13,0),1))),1,1,1,1).
Hit Enter on your keyboard to calculate the formula and verify the reference error is resolved.

Use INDEX and MATCH to Avoid Volatile Functions
If your goal is to find a value relative to a matched item, use a non-volatile INDEX and MATCH combination instead of OFFSET.
Easily Manage Complex Formulas in WPS Spreadsheet
WPS Spreadsheet fully supports advanced lookup functions like OFFSET, INDIRECT, INDEX, and MATCH, allowing you to build dynamic formulas and fix reference errors seamlessly.
- 1. Open your workbook: Launch WPS Spreadsheet and open the file containing your complex formulas.
- 2. Navigate to the Formulas tab: Click on the 'Formulas' tab located on the top ribbon menu.
- 3. Use Insert Function: Click on 'Insert Function' to search for INDIRECT or INDEX and safely construct your formula with the dialog box prompts.
- 4. Troubleshoot with Formula Evaluation: If you encounter errors, click 'Evaluate Formula' in the Formulas tab to troubleshoot your nested functions step-by-step.

Frequently Asked Questions
Why does the CELL function return text instead of a cell reference?
The CELL function is designed to return information about the formatting, location, or contents of a cell. When requesting the "address", it explicitly outputs a text string representing that location (like "$A$1"), rather than an active reference that other functions can immediately interact with.
What does a volatile function mean in Excel and WPS?
A volatile function, such as OFFSET or INDIRECT, recalculates automatically every time any cell in the workbook changes, regardless of whether its specific precedent cells changed. This can significantly slow down performance in large or complex files.
Can I completely avoid using the INDIRECT function?
Yes, in most lookup scenarios you can use a combination of INDEX and MATCH to dynamically reference ranges and look up values. This method is generally preferred because it does not rely on volatile functions like INDIRECT or OFFSET.




