Function Problems

How to Automatically Populate Plant Life Forms from ID Codes in WPS Spreadsheets

Rana GarciaRana Garcia Nov 13, 2026 869 views

Question details

The user needs a spreadsheet lookup method that automatically returns the plant life form associated with each plant identification code.

How to Automatically Populate Plant Life Forms from ID Codes in WPS Spreadsheets
Product
WPS Spreadsheets
Device & OS
not provided
Scenario
Working with a plant inventory or biological dataset in a spreadsheet, where one column contains plant ID codes and another column should display the matching life form.
Observed behavior
The life form column currently remains blank instead of populating automatically from the plant ID codes.
Before you start

Make sure your spreadsheet has a Plant ID column and a separate lookup table or range containing Plant ID and Life Form columns. Confirm that the plant IDs in the source data exactly match the lookup values, including spaces and capitalization.

Solution 1Recommended

Use XLOOKUP to populate plant life forms from ID codes

Best for current WPS Spreadsheets versions that support XLOOKUP; it returns the matching life form and includes a built-in fallback for missing codes.

XLOOKUP is the modern lookup method. It searches the Plant ID column in your lookup table and returns the corresponding Life Form value. Because the not-found argument is built in, you do not need to wrap the formula in IFERROR.

1
Create a lookup table

In a separate area or sheet, create columns for Plant ID and Life Form. Enter each plant code and its matching life form, select the range, then click Insert > Table and name the table LookupTable.

2
Enter the XLOOKUP formula

Select the cell next to the first plant code, for example B2, and enter =XLOOKUP(A2,LookupTable[Plant ID],LookupTable[Life Form],""). Press Enter.

3
Copy the formula down

Drag the fill handle from the formula cell down through all plant ID rows, or double-click the fill handle, to populate the matched life form for every code.

Use XLOOKUP to populate plant life forms from ID codes
Matches every listed ID: XLOOKUP handles missing plant codes with the empty-string fallback, so the sheet stays clean without nested error functions.

Populate plant life forms from ID codes in WPS Spreadsheets

WPS Spreadsheets can automatically return the life form for each plant ID using XLOOKUP or VLOOKUP. Create a lookup table, enter a lookup formula, and copy it down to update your plant inventory in seconds.

  1. 1. Open WPS Spreadsheets: Launch WPS Office and open a new or existing plant inventory workbook in WPS Spreadsheets.
  2. 2. Create the lookup table: Click the + sheet icon to add a sheet, then enter Plant ID and Life Form columns. Select the range and click Insert > Table.
  3. 3. Enter the lookup formula: In the cell next to the first plant ID, type =XLOOKUP(A2,LookupTable[Plant ID],LookupTable[Life Form],"") and press Enter.
  4. 4. Copy the formula down: Drag the fill handle down through all plant ID rows to auto-populate every life form.
  5. 5. Save the workbook: Click Menu > Save As and choose a Microsoft Excel-compatible .xlsx format if needed.
Automatically fills life forms from plant ID codesSupports XLOOKUP and VLOOKUP lookup formulasFully compatible with Microsoft Excel .xlsx workbooksFree, lightweight, and easy to use
QA img-9

Frequently Asked Questions

Does WPS Spreadsheets support XLOOKUP?

Yes. Current WPS Spreadsheets versions support XLOOKUP. If your version does not show XLOOKUP, use the fallback formula =IFERROR(VLOOKUP(A2,LookupTable,2,FALSE),"").

What should I do if a plant ID code is missing from the lookup table?

The formula returns an empty string when the not-found argument is "". To show a custom message instead, replace "" with "Not found" inside the formula.

Can I use the lookup table on another sheet?

Yes. Place the lookup table on a separate sheet, select it, and create a table named LookupTable. The formulas can reference LookupTable[Plant ID] and LookupTable[Life Form] across sheets.

How do I copy the formula down without changing the lookup range?

If you use an Excel table named LookupTable, the structured reference stays fixed automatically. For a normal range, lock the lookup range with absolute references such as $B$2:$C$100.