Function Problems

Return a Complete Data Range for a Selected Character in Excel

Huma Ashraf ChHuma Ashraf Ch Nov 12, 2026 868 views

Question details

Return all available fields for a character selected in a worksheet cell when the source information is currently stored in separate ranges.

Return a Complete Data Range for a Selected Character in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
The user selects or enters a character name and wants the related row or complete data block to appear automatically.
Observed behavior
Separate, non-contiguous source ranges make it difficult to use one lookup formula to return all related information.
Before you start

Make sure each source block uses the same column order, such as Character, Class, Level, and Status. Put the selected character name in a dedicated input cell, such as H2, before entering a lookup formula.

Solution 1Recommended

Combine the character records and return matching data with FILTER

Use this method when each character record can be placed in one continuous database range. It is the most flexible option when a character may have more than one matching record.

A single continuous source range lets a dynamic-array formula return every matching row and all related columns automatically. Keep character names in the first column of the source data for a clear lookup condition.

1
Create one consistent source table

Move or copy the separate character blocks into one continuous range, for example A1:E100, with one header row in A1:E1. Use the same fields and column order for every record.

2
Choose the character in an input cell

Click cell H2 and type a character name, or create a drop-down list through Data > Data Validation so users can select a name.

3
Enter the FILTER formula

Click the first output cell, such as H5, and enter =FILTER($A$2:$E$100,$A$2:$A$100=$H$2,"No matching character"). Press Enter to spill all matching character data into adjacent cells.

4
Adjust the ranges for your sheet

Replace A2:E100 with the full data range and A2:A100 with the character-name column. Leave the cells below and to the right of the formula empty so the results can expand.

Combine the character records and return matching data with FILTER
Dynamic results update automatically: When the value in H2 changes, FILTER recalculates and displays the data for the newly selected character.
WPS Spreadsheets

Return Selected Character Data with Dynamic Formulas in WPS Spreadsheets

WPS Spreadsheets can organize character records into a single data range and use dynamic lookup formulas to return the details associated with a selected name. Create a selection cell, then use FILTER for all matching rows or XLOOKUP for one matching record.

  1. 1. Organize the source records: In WPS Spreadsheets, place all character records in one continuous range with consistent headers.
  2. 2. Add a character selection cell: Select an input cell, then choose Data > Data Validation to create a list of character names.
  3. 3. Return all matching records: Select the output cell and enter a FILTER formula using the character-name column as the condition.
  4. 4. Use XLOOKUP for a single record: When each character is unique, enter an XLOOKUP formula that returns the related columns from the selected record.
Use FILTER to display all matching character records from a continuous data range.Create drop-down selections with Data Validation for consistent character names.Open and edit Microsoft Excel .xlsx and .xls files with compatible spreadsheet formatting.Use a familiar spreadsheet interface for formulas, named ranges, and lookup tasks.
microsoft office alternative - wps office

Frequently Asked Questions

How do I return an entire row based on a selected name in Excel?

If names are unique, use XLOOKUP with the selected name as the lookup value, the name column as the lookup array, and the full row or desired columns as the return array. For example: =XLOOKUP(H2,A2:A100,A2:E100,"No match").

Why does FILTER return a spill error?

A spill error occurs when cells in the formula's output area are not empty or the formula is inside an Excel table. Clear the blocked cells or move the FILTER formula to an open range outside the table.

Can FILTER return multiple records for the same character?

Yes. FILTER returns every row where the character-name column equals the selected value. This makes it more suitable than XLOOKUP when duplicate character names or multiple entries are expected.

Can I look up data from separate non-contiguous ranges?

You can define each block as a named range and use INDIRECT to refer to the selected range, but this is harder to maintain. Combining the blocks into one consistent database range is usually more reliable for FILTER and XLOOKUP.