WPS Spreadsheets: Reference Another Excel Table Cell with OFFSET
Question details
The user needs to reference a cell at a fixed position relative to a formula cell inside an Excel table.
- Product
- WPS Spreadsheets
- Device & OS
- not provided
- Scenario
- A formula is entered in a table column and must retrieve a value from the current row, the row above, or a nearby column using structured references.
- Observed behavior
- The goal is to use OFFSET with a structured reference so the formula can return values from a fixed relative position in the table.
Confirm that the data range is formatted as a table and identify the exact name of the column containing the formula, such as MyCol. Check which relative position you need to reference before entering the formula.
Use OFFSET with a structured reference to retrieve a nearby table cell
Use this method when the formula must reference a cell at a fixed row and column offset from the current table cell.
The structured reference [@MyCol] identifies the cell in the MyCol column on the current table row. OFFSET then moves from that cell by the specified number of rows and columns.
A negative row or column offset moves upward or left, while a positive offset moves downward or right. Replace MyCol with the actual table column name.
Open the workbook in WPS Spreadsheets and click the cell in the table column where the formula should be entered.
In the formula bar or directly in the cell, enter =OFFSET([@MyCol],0,-1), replacing MyCol with the name of the current table column, and press Enter.
To return the value one row above the current cell in the same column, enter =OFFSET([@MyCol],-1,0) in the table formula cell.
To return the value one row up and one column to the right, enter =OFFSET([@MyCol],-1,1), then press Enter.
Review the result and use the table’s fill handle or copy and paste to apply the formula to other table rows as needed.
Build Excel-compatible table formulas with structured references in WPS
WPS Spreadsheets lets you enter OFFSET formulas with structured references directly in table cells, making it easy to retrieve values from fixed relative positions while maintaining compatibility with common Excel workbook formats.
- 1. Open the workbook: Launch WPS Office, choose Spreadsheets, and open the Excel workbook containing the table.
- 2. Select the formula location: Click the table cell where the relative reference formula should be calculated.
- 3. Enter an OFFSET formula: Type a formula such as =OFFSET([@MyCol],0,-1) in the formula bar, replacing MyCol with the actual table column name.
- 4. Adjust the offset: Change the row and column arguments to -1, 0, or 1 to reference the required nearby cell, then press Enter.
- 5. Save the compatible workbook: Choose File > Save As, select XLSX if needed, and save the updated workbook.

Frequently Asked Questions
How do I reference the cell immediately to the left in a WPS table?
Click the formula cell and enter =OFFSET([@MyCol],0,-1), replacing MyCol with the name of the table column containing the formula. Press Enter to return the value from the cell to the left.
What formula references the cell above the current table row?
Use =OFFSET([@MyCol],-1,0). The -1 moves one row upward and 0 keeps the same column. The formula may return an error in the first data row because there is no table row above it.
How can I reference a cell one row up and one column to the right?
Enter =OFFSET([@MyCol],-1,1). This moves one row up and one column right from the current-row cell represented by [@MyCol].
Can I replace MyCol with any table column name?
Yes. Replace MyCol with the exact name of the column that contains the formula. If the column name includes spaces or special characters, use the structured-reference syntax suggested by WPS Spreadsheets when selecting the column.
Why does an OFFSET formula return an error at the top of the table?
The requested offset may point outside the table or worksheet. For example, =OFFSET([@MyCol],-1,0) cannot retrieve a table row above the first data row. Use a condition such as IFERROR if you need to display a blank or custom message at the boundary.




