In Excel: use FILTER with BYROW and COUNTA, for example =FILTER(A2:D100, BYROW(A2:D100, LAMBDA(r, COUNTA(r)=1))) to return only rows where exactly one cell is filled. Function availability: FILTER: Excel 2021+; BYROW: Excel 2024+; LAMBDA: Excel 2024+. These are Microsoft's version markers; earlier perpetual releases do not include these functions. Check the actual product and update channel before using the formula. A marker does not establish an identical Web/Mac workflow or Google Sheets support.
On this page7
Function availability: FILTER: Excel 2021+; BYROW: Excel 2024+; LAMBDA: Excel 2024+. These are Microsoft's version markers; earlier perpetual releases do not include these functions. Check the actual product and update channel before using the formula. A marker does not establish an identical Web/Mac workflow or Google Sheets support.
Select the full row range you want to test, excluding headers.
Use BYROW to evaluate each row as a small array.
Use COUNTA(row)=1 as the keep condition.
Wrap the result in FILTER so only matching rows spill into the output area.
What this does
Pulling rows with only one value is a row-level completeness check. Instead of counting a single column, the formula counts filled cells across each row and keeps the row only when the count equals one. It is useful for cleaning partially loaded exports, finding orphan records and separating incomplete rows before analysis. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “pull the rows that have only 1 value in excel”. Start on a copy or a tiny sample, keep the affected rows visible, and compare the result with the outcome you expected before you touch the real workbook. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. The point is a layout choice that keeps the sheet readable and sortable, but the practical win is that someone else can open the file and understand what happened without asking you.
A worked example
A2:D6 contains customer records. Row 2 has only an email, row 3 has name plus email, row 4 has only an ID. =FILTER(A2:D6, BYROW(A2:D6, LAMBDA(r, COUNTA(r)=1))) returns rows 2 and 4, because each has exactly one nonblank cell across the selected columns. Incomplete rows are easy to miss visually. A row-level filter turns the cleanup into an auditable rule instead of manual scanning. Check the referenced cells, argument order and result type in your workbook. Start with the worked example before changing an input, then compare the changed result with the calculation you expected. An error value or a result of a different type is a reason to inspect the inputs and arguments.
In Google Sheets
Google Sheets also has FILTER, but its signature is FILTER(range, condition1, [condition2, …]): every argument after the range is another condition, not Excel's if_empty fallback, and Sheets returns #N/A when no rows match. Remove an Excel "No results" argument before using the formula in Sheets. Function availability: FILTER: Excel 2021+; BYROW: Excel 2024+; LAMBDA: Excel 2024+. These are Microsoft's version markers; earlier perpetual releases do not include these functions. Check the actual product and update channel before using the formula. A marker does not establish an identical Web/Mac workflow or Google Sheets support. Keep this page bookmarked for the next time the same question comes up. Better still, repeat the steps once in your own workbook — doing it yourself is what turns a copied answer into something you remember. For “pull the rows that have only 1 value in excel”, keep the input cells and the result visible while you check the formula in Excel. Follow the worked example and change one input at a time. The steps explain the workbook calculation; this page does not run a live calculator for that task.
Common mistakes
- Counting only one column instead of all fields that define row completeness.
- Including headers in the tested range.
- Using
COUNTinstead ofCOUNTAwhen text values should count as filled. - Forgetting that formulas returning an empty string may still behave differently from truly blank cells.
Frequently asked questions
How do I find rows with exactly one filled cell?
Use BYROW with COUNTA(row)=1 and pass that TRUE/FALSE array into FILTER.
Does this work with text values?
Yes. COUNTA counts text, numbers, dates and logical values. Use COUNT only when you want numeric cells only.
What if I want rows with one blank instead?
Change the condition to COUNTBLANK(row)=1, or compare COUNTA to the expected number of filled fields.
Which Excel release does this formula require?
Function availability: FILTER: Excel 2021+; BYROW: Excel 2024+; LAMBDA: Excel 2024+. These are Microsoft's version markers; earlier perpetual releases do not include these functions. Check the actual product and update channel before using the formula. A marker does not establish an identical Web/Mac workflow or Google Sheets support.
Other ways people ask this
People reach this page typing “excel how to identify entire rows that are repeats”, “how to have a floating row in excel”, “excel average only non zero values” and “excel increment cell value by 1 formula”, among other phrasings; whichever wording you used, the fix above is the one you want.
Why do people search for this in so many different ways?
Because the same task has many names. “excel how to identify entire rows that are repeats”, “how to have a floating row in excel”, “excel average only non zero values” all point at the one operation explained on this page, which is why they all lead here.