INDEX Function in WPS Spreadsheet: Formula, Examples & Troubleshooting
Learn the INDEX formula in WPS Spreadsheet: return the value at a position inside a range, with reproducible examples, expected answers and compatibility cautions.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: INDEX selects a position within an array or reference. WPS documents an array form and a reference form; the latter can select one of several same-sheet areas with a fourth argument. Row and column numbers are relative to the chosen input area.
Availability and version history
- Introduced: documented by 2019-08-19 in the official WPS lesson; original introduction is not established.
- Availability: WPS Office for Windows Personal; no numeric release is stated in the lesson metadata.
- Scope: current supported builds remain unverified. These historical Windows rules do not establish equivalent behavior in every WPS client.
- Checked: October 14, 2026. Full function-specific review and independent lookup models; no native WPS test was performed.
Syntax and arguments
=INDEX(array, row_num, [column_num])
=INDEX(reference, row_num, [column_num], [area_num])
For a one-column range, the column argument can be omitted, as in the original first example. For a one-row input, the row argument may be omitted when the column is supplied. A fourth area selector belongs to the reference form, not a universal extension to every array value.
Examples use English function names and comma separators. Square brackets describe optional arguments and are not typed. Results below are independent documentation-based expectations, with unresolved cases explicitly identified.
Prepare the original table
Enter the original dataset in A1:F9, including its heading row. Row is explanatory and is not an extra worksheet column. Amount and Units are numeric. Keep output cells outside this table.
| Row | A · Item | B · Team | C · Status | D · Amount | E · Units | F · Agent |
|---|---|---|---|---|---|---|
| 1 | Item | Team | Status | Amount | Units | Agent |
| 2 | Pen | East | Paid | 120 | 12 | Ana |
| 3 | Pad | West | Pending | 75 | 5 | Bo |
| 4 | Box | East | Paid | 210 | 7 | Ana |
| 5 | Tape | North | Paid | 90 | 0 | Cy |
| 6 | Folder | West | Paid | 150 | 3 | Bo |
| 7 | Pen | East | Pending | 60 | 8 | Dee |
| 8 | Pad | West | Paid | 125 | 12 | Ana |
| 9 | Box | North | Pending | 80 | 4 | Cy |
Example 1: original control
=INDEX(D2:D9,3)
Expected result: 210. The third entry in the Amount range is D4=210.
Example 2: original comparison
=INDEX(A2:D9,2,2)
Expected result: West. The second row and second column within A2:D9 is B3=West.
Scalar positions and the original controls
The original =INDEX(D2:D9,3) is a documented one-column selection, with expected result 210. Writing =INDEX(D2:D9,3,1) makes the single column explicit and selects the same value.
The original =INDEX(A2:D9,2,2) returns West, because row 2 of that input is worksheet row 3 and column 2 is B. A worksheet coordinate such as D4 is not the same pair of relative numbers for every possible input range.
The WPS source permits the one-column omission used here; this guide does not import Collabora’s separate omitted-dimension array-entry wording.
Example 3: build a two-dimensional lookup
Using the original table:
=INDEX(A2:F9,MATCH("Folder",A2:A9,0),MATCH("Amount",A1:F1,0))
MATCH supplies row position 5 and column position 4, so INDEX returns 150. Both searches use exact mode 0. The data array excludes headings while the column-label range includes only its heading row; their relative columns still align.
An explicit first-match example is =INDEX(D2:D9,MATCH("Box",A2:A9,0),1), returning 210 under MATCH’s documented first-equal rule. The lookup policy belongs to MATCH; INDEX simply selects the resulting position.
Advanced example: return a value to the left of a lookup column
=INDEX(A2:A9,MATCH(210,D2:D9,0),1)
Expected item: Box. The unique amount 210 has relative position 3 in D2:D9, and the same position in A2:A9 supplies the item.
Keeping the lookup and return ranges aligned is essential. If the return range began at A3 instead, position 3 would point to Tape at A5. A valid formula with plausible output can therefore select the wrong record without an obvious error.
Advanced example: choose between two nonadjacent areas
On a separate worksheet, enter these numeric blocks:
| Cell | Value | Cell | Value |
|---|---|---|---|
| H2 | 11 | K2 | 101 |
| I2 | 12 | L2 | 102 |
| H3 | 21 | K3 | 201 |
| I3 | 22 | L3 | 202 |
Then evaluate:
=INDEX((H2:I3,K2:L3),2,2,2)
=INDEX((H2:I3,K2:L3),2,2,1)
=INDEX((H2:I3,K2:L3),2,2)
Expected selected values are 202, 22 and 22. The outer parentheses make the two nonadjacent ranges one reference argument; their listed order determines area numbers 1 and 2. The omitted area selector defaults to 1.
This syntax follows the official WPS reference and walkthrough, which explicitly use commas and parentheses for multiple areas in the shown locale. Other locale separators must be checked in the intended client.
Same-sheet areas and reference semantics
The source requires areas in this reference-form list to be on the same worksheet and documents #VALUE! when they are not. This guide does not replace that requirement with a cross-sheet union copied from another spreadsheet product.
INDEX’s reference result can be used as a value where the surrounding expression needs one. For the H2:I3 block, =2*INDEX(H2:I3,1,2) has expected result 24, because the selected cell contains 12.
A larger formula that consumes a reference is a different context from displaying a whole returned array. Confirm the surrounding function’s own argument requirements rather than assuming every reference is automatically expanded into visible cells.
Entire rows, columns and array-entry scope
The WPS reference says a zero row selector returns a whole column and a zero column selector returns a whole row. For H2:I3, INDEX(H2:I3,0,2) identifies the second column containing 12 and 22; INDEX(H2:I3,2,0) identifies the second row containing 21 and 22.
For the array form, the source expressly says returned array values need array-formula entry. It does not establish automatic spill behavior in every current WPS client. These shapes are documentation-based expectations; no current-build array-entry or spill test was performed.
The scalar examples above deliberately use explicit positive coordinates or a documented one-dimensional omission, so their expected result is a single value.
Boundary errors and practical checks
The source documents #REF! when a row, column or selected reference area does not identify a valid cell or area. In H2:I3, row 3 is beyond two rows; in the two-area reference list, area 3 is beyond the supplied list.
Check positions relative to the selected area, the order of area references and the alignment of any MATCH ranges. Text-number coercion, negative or fractional selectors, cross-client array contexts and every blank-source display case remain unverified.
Use MATCH to determine a position, VLOOKUP for a first-column table lookup and HLOOKUP for a first-row table lookup. An alternative design can solve a different layout without implying that the original function’s native syntax changed.
Related guides and verification
Related guides already published for this function: Microsoft Excel | Google Sheets
Each product guide has a separate evidence scope; shared function names do not establish identical versions, matching rules or array behavior.
- WPS Academy: INDEX, 2019-08-19 (Chinese; Windows Personal).
- WPS Academy: MATCH.
- Editorial testing standards.
Evidence level: Full article reviewed against complete WPS function references. Original title, publication date, dataset and two formulas are preserved. Additional calculations and reference selections are independently modeled, not captured native results.