How to count number of cells/rows until first blank in Excel?
Count number of cells/rows until blank with formula
Count times a word appears
|If you want to count the times a specific word appears in a single cell or a range, you can try Count times a word appears of Kutools for Excel, it may make a big favor for you.|
- Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
- More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
- Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
- Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
- Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
- Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
- More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.
Select a blank cell next to the cells you want to count, and enter this formula =MIN(IF(A1:A12="",ROW(A1:A12)-ROW(A1)+1))-1, press Shift + Ctrl + Enter key to get the correct result, and then drag auto fill handle over the cells you need to apply this formula. See screenshot:
1. You also can also apply this formula =MATCH(1,--(A1:A12=""),0)-1 and press Shift + Ctrl + Enter keys simultaneously to count the cells until a blank cell.
2. In above formulas, A1 is the first cell in the list you want to count, and A1:A12 is the list you want to count from.
You are guest
or post as a guest, but your post won't be published automatically.
To post as a guest, your comment is unpublished.· 2 years agoHow Do i get only the max value? for example in the picture i want it to output only 3 (first set of numbers), then 4(second set after the blanks)
To post as a guest, your comment is unpublished.· 2 years agoHi Team,
When applying this formula:
I find that it counts the number of rows from the FIRST blank cell not the NEXT blank cell like it does in your example (where the number seems to reset with each blank cell).
Is there an adjustment I need to make for this?