Data Import & Export

How to Retrieve Data from Non-Adjacent Cells in Excel Using WPS Office

Khadija KhanKhadija Khan Nov 13, 2026 870 views

Question details

The user needs to automatically collect values from separate non-adjacent cells in a spreadsheet instead of copying and pasting them manually each day.

How to Retrieve Data from Non-Adjacent Cells in Excel Using WPS Office
Product
WPS Office Spreadsheets
Device & OS
not provided
Scenario
Daily reporting or data consolidation from a worksheet where the required values are stored in non-adjacent cells or columns.
Observed behavior
Manually copying and pasting individual non-adjacent cells each day is time-consuming and should be replaced with an automated retrieval workflow.
Before you start

Make sure the source data uses a consistent layout, and identify the exact cells or columns you need before choosing a formula or Power Query approach.

Solution 1Recommended

Retrieve Non-Adjacent Cells with CHOOSECOLS, HSTACK, or INDEX Formulas

Use this method when the data layout is stable and you want formula results to update automatically whenever the source cells change.

Dynamic array functions such as CHOOSECOLS and HSTACK can combine non-adjacent columns or cells without manual copying. If your WPS Office version does not support dynamic arrays, INDEX is a reliable alternative for extracting specific cell references.

1
Select the result cell

Open the workbook in WPS Office Spreadsheets and click the cell where you want the extracted data to appear.

2
Enter a dynamic array formula

Type a formula such as =CHOOSECOLS(A1:C10,1,3) to return only columns 1 and 3, or =HSTACK(A2,C2,E2) to combine selected cells horizontally from the same row.

3
Confirm the formula

Press Enter and check the spill range. Adjust the source range or column numbers if the returned values do not match your non-adjacent layout.

Retrieve Non-Adjacent Cells with CHOOSECOLS, HSTACK, or INDEX Formulas
Formula updates automatically: Once the formula is set, WPS Spreadsheets refreshes the extracted values automatically whenever the source cells change.
WPS Office Data Retrieval

Retrieve Non-Adjacent Excel Data Directly in WPS Office

WPS Office Spreadsheets lets you extract non-adjacent cells with familiar Excel-compatible formulas, Power Query, and automation tools, so you can stop copying and pasting manually every day.

  1. 1. Open the workbook: Download and install WPS Office, then open your existing Excel workbook in WPS Office Spreadsheets.
  2. 2. Enter a retrieval formula: Click the target cell and type =CHOOSECOLS(A1:C10,1,3) or =HSTACK(A2,C2,E2) to collect the non-adjacent values you need.
  3. 3. Set up Power Query for repeated imports: Go to the Data tab, choose From Range/Table, and in the Power Query Editor keep only the required non-adjacent columns.
  4. 4. Refresh automatically: Update the source data or refresh the query to repopulate the extracted values without repeating manual selection.
Retrieve non-adjacent cells or columns without manual copy-paste.Full compatibility with Microsoft Excel .xlsx, .xls, and .csv files.Familiar spreadsheet interface and Excel-like formulas.Dynamic formula results and refreshable Power Query output.
microsoft office alternative - wps office

Frequently Asked Questions

What formula pulls non-adjacent cells from the same row?

Use =HSTACK(A2,C2,E2) if your spreadsheet supports dynamic arrays. In older versions, create separate INDEX formulas for each cell and combine them with & or CONCAT.

How do I keep only specific non-adjacent columns in Power Query?

In the Power Query Editor, hold Ctrl and select the columns you need, right-click one of the selected headers, choose Remove Other Columns, and then click Close & Load.

Does CHOOSECOLS work in every Excel-compatible spreadsheet?

CHOOSECOLS is available in newer Microsoft 365 and WPS Office versions that support dynamic arrays. For older versions, use INDEX or Power Query instead.

Will formula results update when the source cells change?

Yes. When you use formulas such as CHOOSECOLS, HSTACK, or INDEX, WPS Spreadsheets recalculates automatically after the referenced cells are updated.

Is VBA required to automate daily non-adjacent extraction?

No. Formulas and Power Query are usually enough. VBA or Excel Automate is only needed for very complex repeated logic that cannot be handled by worksheet formulas or query steps.