Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to find the nth non blank cell in Excel?

How could you find and return the nth non blank cell value from a column or a row in Excel? This article, I will talk about some useful formulas for you to solve this task.

Find and return the nth non blank cell value from a column with formula

Find and return the nth non blank cell value from a row with formula

Office Tab Enable Tabbed Editing and Browsing in Office, and Make Your Work Much Easier...
Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%
  • 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.

arrow blue right bubble Find and return the nth non blank cell value from a column with formula

For example, I have a column of data as following screenshot shown, now, I will get the third non blank cell value from this list.

doc find nth non blank 1

Please enter this formula: =INDEX($A$1:$A$25,SMALL(ROW($A$1:$A$25)+(100*($A$1:$A$25="")), 3))&"" into a blank cell where you want to output the result, D2, for example, and then press Ctrl + Shift + Enter keys together to get the correct result, see screenshot:

doc find nth non blank 2

Note: In above formula, A1:A25 is the data list that you want to use, and the number 3 indicates the third non blank cell value which you want to return, if you want to get the second non blank cell, you just need to change the number 3 to 2 as you need.


arrow blue right bubble Find and return the nth non blank cell value from a row with formula

If you want to find and return the nth non blank cell value in a row, the following formula may help you, please do as this:

Enter this formula: =INDEX($A$1:$M$1,SMALL(IF($A$1:$M$1<>"",COLUMN($A$1:$M$1)-COLUMN($A$1)+1),4)) into a blank cell where you want to locate the result, and then press Ctrl + Shift + Enter keys together to get the result, see screenshot:

doc find nth non blank 3

Note: In above formula, A1:M1 is the row values that you want to use, and the number 4 is the fourth non blank cell value which you want to return, if you want to get the second non blank cell, you just need to change the number 4 to 2 as you need.


Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Shirazi · 3 months ago
    very helpful,
    although when I return the nth non blank cell in a column set to DATE, the returned value appears as number(general number).formatting the cell into DATE also doesn't change the result. could you please give me a hand!
    thanks a lot
    • To post as a guest, your comment is unpublished.
      skyyang · 10 days ago
      Hello, Shirazi,
      Sorry, maybe there is no direct formula for you to get the date format.

      If someone else has the solution, please comment here.
  • To post as a guest, your comment is unpublished.
    John · 1 years ago
    Hi everyone!


    Could you also help me return the row number of the second, third non-blank cell?


    Please help me.
    • To post as a guest, your comment is unpublished.
      skyyang · 1 years ago
      Hello, John,
      the following formula can help you to get all the row numbers of the non-blank cells, please try it, thank you!
      =IFERROR(ROW(INDEX($A$1:$A$12,SMALL(INDEX(NOT(ISBLANK($A$1:$A$12))*ROW($A$1:$A$12),0),COUNTBLANK($A$1:$A$12)+ROW(A1)))),"")
  • To post as a guest, your comment is unpublished.
    Jerry · 2 years ago
    Hey everyone,

    I have a table with numerous columns and rows. The rows have range names, and a description/location at the beginning of the row range with its own range, example "Building No.s". There are multiple Row Ranges/ Buildings. There are headers at the top of each columns for specific "Building Assembly Types". The table content is numeric quantities for each type "Building Assembly Type" for each specific "Building" description/location. There could be as many as (100) "Building Assembly Types" column headers but I will limit the assemblies to (10) per row range, so there will be numerous blank cells in each "Building No." range.

    I have other summary tables set up for each "Building" that I want to pull the non-blank cells quantities to, along with the corresponding header "Assembly Type" for each "Building" with a (10) max "Assemblies" per page.

    I can identify the non-blank cell quantities by use of the array formula above for rows. The problem I am having is identifying the header that corresponds to it.

    Ultimately if I can identify the "Assembly" header, I can always index the "Quantities" once I have the header "Assembly" identified for each "Building". Then I would be able do a lookup for all the parts associated with each "Assembly" type for that "Building" from my Assembly parts database and multiply it times the "Quantity" of each assembly type.

    Hopefully this makes since and someone can help.
  • To post as a guest, your comment is unpublished.
    noel · 2 years ago
    Hello,
    I am looking for the third blank row in a column and I copied your formula and just changed the range from $A$1:$A:$25 to my range $D$306:$D$354.
    But when I change the range I get #REF! as my answer.
    I already converted to an array, control-shift-enter.
    Now the cell range I am referencing has formulas in them, so could that be why I am getting #REF.
    Your formula: =INDEX($A$1:$A$25,SMALL(ROW($A$1:$A$25)+(100*($A$1:$A$25="")), 3))&""
    My formula: =INDEX($D$306:$D$354,SMALL(ROW($D$306:$D$354)+(1*($D$306:$D$354="")), 2))&""

    Thanks,
    Noel
    • To post as a guest, your comment is unpublished.
      sumit pandey · 2 years ago
      you have put the 1 instead of 100 therefore answered was wrong. please use below formula

      INDEX($D$306:$D$354,SMALL(ROW($D$306:$D$354)+(100*($D$306:$D$354="")), 3))&"" than ctrl + shift+enter