Function Problems

How to Return the First 10 Rows of an Excel Table with a Formula in WPS Office

Kushani NimanthikaKushani Nimanthika Nov 13, 2026 869 views

Question details

The user needs a formula to return the first 10 rows of an Excel table without applying criteria, and the formula should return fewer rows automatically when the table has fewer than 10 records.

How to Return the First 10 Rows of an Excel Table with a Formula
Product
WPS Office Spreadsheets
Device & OS
not provided
Scenario
A user has an Excel table and wants to extract the header row plus the first 10 data rows automatically.
Observed behavior
The formula should return the first 10 rows, and automatically return fewer rows when the table contains fewer than 10 records.
Before you start

Open the workbook in WPS Spreadsheets and confirm that the table is formatted as an Excel Table with a defined name such as Table1. Check that your WPS Office version supports dynamic array functions like TAKE, CHOOSEROWS, SEQUENCE, and TOCOL.

Solution 1Recommended

Use TAKE with the Excel Table structured reference

Best for Excel tables because it returns the header row plus the first 10 data rows and automatically handles shorter tables.

TAKE is a dynamic array function that extracts a specified number of contiguous rows or columns from the start or end of an array. When you reference Table1[#All], WPS Spreadsheets includes the header row plus all data rows, so requesting 11 rows returns the header and the first 10 data rows.

1
Select an empty cell

Click an empty cell where you want the result to spill, for example D1.

2
Enter the TAKE formula

Type =TAKE(Table1[#All],11) and press Enter. Replace Table1 with your actual table name if it is different.

3
Confirm the spilled range

WPS Spreadsheets fills the header row and the first 10 data rows, or fewer rows automatically if the table contains fewer than 10 records.

Use TAKE with the Excel Table structured reference
Handles short tables automatically: If the source table contains only 5 data rows, the formula returns the header plus those 5 rows instead of producing an error.
Direct WPS solution

Return the First 10 Table Rows in WPS Spreadsheets

Use WPS Spreadsheets to open your Excel table and apply dynamic array formulas such as TAKE and CHOOSEROWS. WPS Office supports the same formulas and .xlsx format, so you can extract the first 10 rows directly without converting files.

  1. 1. Open the workbook in WPS Spreadsheets: Launch WPS Office, click Open, and select the Excel workbook that contains the table.
  2. 2. Click an empty result cell: Select a blank cell with enough space below and to the right for the spilled rows and columns.
  3. 3. Type the TAKE formula: Enter =TAKE(Table1[#All],11) and press Enter, replacing Table1 with your table name.
  4. 4. Check the output range: Confirm that WPS Spreadsheets returns the header row and the first 10 data rows, or fewer when the table is shorter.
Supports TAKE, CHOOSEROWS, SEQUENCE, and TOCOL dynamic array formulasOpens and saves Excel .xlsx workbooks with full format compatibilityReturns fewer rows automatically when the table is shorter than 10 recordsLightweight and free Office suite with a familiar ribbon interface
microsoft office alternative - wps office

Frequently Asked Questions

Does TAKE work in WPS Spreadsheets?

Yes, WPS Office Spreadsheets supports dynamic array functions including TAKE. If you do not see the function, update WPS Office to a recent version.

What happens if my Excel table has fewer than 10 rows?

The formula returns only the available header row plus data rows. For example, =TAKE(Table1[#All],11) does not error when the source table has fewer than 10 data rows.

How do I include the header row in the result?

Reference Table1[#All] rather than Table1. The formula =TAKE(Table1[#All],11) returns the header row plus the first 10 data rows.

Can I use a normal range instead of an Excel table?

Yes. For a single-column range, use =TOCOL(TAKE(A1:A100,10),3). For a multi-column range, use =TAKE(A1:C100,11) to include the first row as a header.

Does this work with .xlsx files from Microsoft Excel?

Yes, WPS Spreadsheets opens .xlsx files and supports these formulas while preserving compatibility when you save back to .xlsx.