Others

How to Filter Google Sheets Rows Based on Numeric Values

Maira MehtabMaira Mehtab Nov 10, 2026 868 views

Question details

The user needs to filter and return names from a dataset where the corresponding row contains at least one numeric value greater than zero.

How to Filter Google Sheets Rows Based on Numeric Values
Product
Google Sheets
Device & OS
not provided
Scenario
Extracting specific rows of data based on the presence of numeric values in adjacent columns.
Observed behavior
Requires a formula combining BYROW, FILTER, LET, and HSTACK to calculate row totals and filter out rows with no numeric values.
Before you start

Ensure your dataset is organized with names in one column and the corresponding numeric data in adjacent columns, and note the exact cell ranges before applying the formula.

Solution 1Recommended

Use a Combined Formula with LET, BYROW, HSTACK, and FILTER

Apply an advanced array formula to calculate row totals and filter the results dynamically.

This method uses the LET function to define variables, making the formula easier to read. BYROW calculates the sum of each row, HSTACK combines the names with their totals, and FILTER extracts only the rows where the total is greater than zero.

1
Select the output cell

Click on the empty cell where you want the filtered list of names and totals to appear.

2
Enter the LET formula

Type the formula: =LET(names, C9:C12, totals, BYROW(D9:F12, LAMBDA(row, SUM(row))), combined, HSTACK(names, totals), FILTER(combined, totals>0, ""))

3
Adjust cell ranges

Replace C9:C12 with the range containing your names, and D9:F12 with the range containing the numeric values you want to check.

4
Apply the formula

Press Enter. The cell will now display an array of names and their corresponding row totals, excluding any rows where the total is zero or blank.

Use a Combined Formula with LET, BYROW, HSTACK, and FILTER
Formula Variation: You can also use a simplified version for the BYROW function: =LET(names, C9:C12, totals, BYROW(D9:F12, SUM), combined, HSTACK(names, totals), FILTER(combined, totals>0, "")).
Advanced Data Filtering in WPS Spreadsheet

Filter and Analyze Data Easily with WPS Spreadsheet

WPS Spreadsheet offers powerful data analysis tools, supporting advanced array formulas and intuitive filtering options to help you manage complex datasets efficiently.

  1. 1. Open your dataset: Launch WPS Spreadsheet and open your workbook containing the data you want to filter.
  2. 2. Apply advanced formulas: Use the formula bar to input array functions to dynamically extract data based on numeric conditions.
  3. 3. Use built-in filters: Alternatively, navigate to the 'Data' tab on the ribbon and click 'AutoFilter' to manually filter rows based on custom numeric conditions.
Fully compatible with Microsoft Excel (.xlsx) and CSV formats.Supports advanced functions and complex array formulas for dynamic data filtering.Lightweight and fast, ensuring smooth performance even with large datasets.Free to use with a familiar, user-friendly interface that minimizes the learning curve.
microsoft office alternative - wps office

Frequently Asked Questions

Can I filter rows based on a specific numeric threshold instead of just greater than zero?

Yes, you can modify the condition in the FILTER function. For example, to filter rows with a total greater than 50, change totals>0 to totals>50 in your formula.

Why is my formula returning a #NAME? error?

This error usually occurs if your spreadsheet software does not support newer functions like LET, BYROW, or HSTACK. Ensure you are using a recent version of your spreadsheet application that supports dynamic arrays.

How do I return only the names without the row totals?

To return only the names, you can adjust the FILTER function to only output the 'names' array instead of the 'combined' array. You can use a simpler formula like: =FILTER(names, BYROW(D9:F12, SUM)>0).