Function Problems

How to Return Names Around a Cell in an Excel Seating Chart with WPS Spreadsheets

John WilsonJohn Wilson Nov 13, 2026 869 views

Question details

The user needs a dynamic WPS Spreadsheets formula to find a person in a seating chart and return the names in the surrounding cells.

How to Return Names Around a Cell in an Excel Seating Chart with WPS Spreadsheets
Product
WPS Spreadsheets
Device & OS
not provided
Scenario
The user has an Excel seating chart grid and wants to look up a person, then display the nearby seats instead of manually checking the layout.
Observed behavior
A normal lookup finds only the matching person, so the user needs a formula that returns the surrounding cell names automatically.
Before you start

Confirm that your seating chart uses a consistent grid structure and that your WPS Spreadsheets version supports dynamic array functions such as XMATCH, INDEX, and SEQUENCE before entering the formula.

Solution 1Recommended

Use XMATCH, SEQUENCE, and INDEX to Return Adjacent Names from a Seating Chart

Use this method when your seating chart names are in a regular row or column and you want a dynamic spill range instead of dragging formulas manually.

The formula uses XMATCH to locate the name in the lookup row, then INDEX with SEQUENCE returns the selected number of seats from the matching column. IFERROR returns an empty string when the name is not found, which keeps the seating chart readable.

1
Open the seating chart workbook

Open WPS Spreadsheets and load the workbook that contains your Excel seating chart range, such as B2:F20.

2
Select the lookup output cell

Click the first empty cell where you want the returned names to appear, normally below or beside your lookup name in H2.

3
Enter the dynamic formula

Type =IFERROR(INDEX($B$2:$F$20,SEQUENCE(5),XMATCH(H2,$B$2:$F$2,0)),"") and press Enter to spill the five names from the matched column.

4
Adjust the range for your layout

Change $B$2:$F$20, SEQUENCE(5), and $B$2:$F$2 to match your seating grid; increase or reduce the number in SEQUENCE for more or fewer surrounding positions.

Use XMATCH, SEQUENCE, and INDEX to Return Adjacent Names from a Seating Chart
Names appear automatically: The formula spills the surrounding seat names from the matching column and returns blank cells when no match exists.
WPS Spreadsheets formula

Return Surrounding Names in a Seating Chart with WPS Spreadsheets

Open your seating chart workbook in WPS Spreadsheets and use the XMATCH, SEQUENCE, and INDEX formula to return the adjacent names without rebuilding the file. WPS Office supports Excel functions and the .xlsx format, so existing seating charts work directly.

  1. 1. Download and install WPS Office: Get WPS Office from the official WPS site, install it, and open WPS Spreadsheets.
  2. 2. Open the seating chart workbook: Click File > Open and select your .xlsx seating chart file to keep all formulas and formatting intact.
  3. 3. Select the output cell: Click the first empty cell where the adjacent names should appear, such as below the lookup value in H2.
  4. 4. Enter the dynamic lookup formula: Type =IFERROR(INDEX($B$2:$F$20,SEQUENCE(5),XMATCH(H2,$B$2:$F$2,0)),"") and press Enter to spill the names.
  5. 5. Save and reuse the chart: Adjust the range if needed, then save the file as .xlsx or WPS format and share it for any event or classroom seating plan.
Returns matching and surrounding names with a dynamic spill formulaOpens and edits .xlsx and .xls seating chart workbooks without conversionFree, lightweight Office suite with a familiar ribbon and formula engineSupports XMATCH, INDEX, and SEQUENCE for automatic seat lookupsSaves and shares seating charts in Microsoft Excel-compatible formats
microsoft office alternative - wps office

Frequently Asked Questions

Does this XMATCH formula work in WPS Spreadsheets?

Yes. WPS Spreadsheets supports XMATCH, SEQUENCE, and INDEX in current versions used for dynamic array formulas. If your version does not list XMATCH, replace it with MATCH and adapt the formula.

What does the IFERROR part do?

It returns an empty string when the lookup name is not found in the source range, so the output stays clean instead of showing #N/A.

How can I return names on both sides of the matched seat?

Use separate helper formulas or adjust the INDEX reference: one formula subtracts from the matched column for the left neighbor and another adds to it for the right neighbor.

What should I check if the formula returns #SPILL!?

Clear any existing data or merged cells in the cells where the five names would spill, because dynamic array formulas require an empty spill area.

How do I handle wrapped seating chart edges?

For wrap-around layouts, build manual neighbor formulas with IF and MOD conditions around the row or column boundary, because a simple INDEX range will not automatically wrap.