HLOOKUP Function in WPS Spreadsheet: Formula, Examples & Troubleshooting
Learn the HLOOKUP formula in WPS Spreadsheet: search a header row and return a value beneath the match, 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: HLOOKUP searches the first row of its table and returns a value from a specified row in the same column. Use FALSE for an exact header lookup; TRUE or an omitted fourth argument uses an ascending approximate match.
Availability and version history
- Introduced: documented by 2019-06-25 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
=HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])
The return-row index is relative to the entire supplied table, including its first lookup row. The source explicitly permits omission of range_lookup even though its displayed signature does not bracket that argument. Exact mode does not require sorting; approximate mode requires an ascending top row.
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
=HLOOKUP("Amount",A1:F9,3,FALSE)
Expected result: 75. Amount appears in column D; the third row of A1:F9 is the second order, whose amount is 75.
Example 2: original comparison
=HLOOKUP("Team",A1:F9,2,FALSE)
Expected result: East. Team appears in column B; the second row contains East.
Example 3: check the return-row boundary
For the original table:
=HLOOKUP("Amount",A1:F9,1,FALSE)
=HLOOKUP("Amount",A1:F9,2,FALSE)
=HLOOKUP("Amount",A1:F9,9,FALSE)
Expected results are Amount, 120 and 80. Row 1 returns the matched header itself; row 2 returns the first record; row 9 returns the eighth record. The return index is not a count of data rows after excluding headings.
The WPS reference states that text matching is case-insensitive, so =HLOOKUP("amount",A1:F9,3,FALSE) has expected result 75 for this unique header. This does not establish a wildcard rule or a complete text-normalization policy.
Advanced example: choose the record with MATCH
The original Item column contains one Folder record. Combine its data-relative position with the header-inclusive return table:
=HLOOKUP("Amount",$A$1:$F$9,MATCH("Folder",$A$2:$A$9,0)+1,FALSE)
MATCH returns 5 within A2:A9. Adding one gives return-row index 6 in A1:F9, where Folder’s amount is 150.
If the +1 is omitted, the formula selects row 5 of the table instead and returns Tape’s 90. Both outputs are plausible numbers, so a formula that runs without error can still be misaligned. Keep the lookup and return boundaries visible.
Advanced example: use a horizontal threshold table
On a separate worksheet, place this table in A1:C2:
| A | B | C |
|---|---|---|
| 0 | 100 | 200 |
| 0.02 | 0.05 | 0.08 |
The first row is ascending. For =HLOOKUP(150,A1:C2,2,TRUE), the expected multiplier is 0.05, from threshold 100. Inputs 0, 99.99, 100, 199.99, 200 and 250 produce 0.02, 0.02, 0.05, 0.05, 0.08 and 0.08.
Omitting the fourth argument uses that approximate rule. In contrast, FALSE for the unlisted key 150 gives the source’s unavailable-match error category. Choose the mode to fit the task rather than using an approximate result merely to suppress a missing-key error.
Advanced example: separate a multiplier from its interpretation
If the multiplier selected for a quantity of 230 applies to the whole quantity, 230*0.08 gives 18.4. An incremental band policy would need a different calculation; HLOOKUP only selects one row value from the chosen column.
If the table is rearranged, preserve the association between each threshold and its multiplier. Sorting only the first row while leaving the second row unchanged would change those associations and invalidate the report.
Documented errors and source cautions
The dated lesson assigns #VALUE! when row_index_num is less than 1 and #REF! when it exceeds the table’s row count. In the original A1:F9 table, index 10 exceeds nine rows. For the two-row threshold table, index 3 is already outside the table.
The lesson also describes an unavailable-match error for a missing exact key and for an approximate key below the smallest header. It prints that label as #N/A!, with an extra exclamation mark. This guide does not certify that punctuation as the native display; the existence of the no-match error is the supported point.
The walkthrough’s broad statement that VLOOKUP can search in both directions should not be read as changing the basic first-column VLOOKUP definition. Use the appropriate dedicated function or a documented composite formula for the required direction.
Limits and related design choices
All headers in the primary examples are unique. Duplicate-header tie behavior, wildcard handling, numeric-text matching and a complete source-error matrix remain unverified by this lesson. Do not transfer Google Sheets’ HLOOKUP restrictions or Excel’s edge rules to WPS merely because the function name matches.
For a vertically arranged key column, use VLOOKUP. For a two-dimensional lookup with explicit row and column positions, INDEX with MATCH can make each alignment step visible.
Related guides and verification
Related guides already published for this function: Microsoft Excel | Google Sheets | LibreOffice Calc | Apache OpenOffice Calc | Gnumeric
Each product guide has a separate evidence scope; shared function names do not establish identical versions, matching rules or array behavior.
- WPS Academy: HLOOKUP, 2019-06-25 (Chinese; Windows Personal).
- WPS Academy: MATCH.
- WPS Academy: INDEX.
- 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.