Cell Reference of the nth Non-Blank cell in a column

kevsvette

New Member
Joined
Oct 5, 2015
Messages
24
I need a formula that will return the CELL reference (not the value in the cell) of the Nth non-blank cell. This is so I can exclude the column header. So really I need the 2nd non-blank cell, but thought it might be helpful to add the flexibility.

So basically if he first non-blank that could have text/date/number. I've scoured the web and cant find what I'm looking for.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Maybe something like this:
If you have Excel 2010 or later the formula in C3 below. If not then the formula in C5 that must be entered with CTRL-SHIFT-ENTER.
In C2 of the example enter the nth blank cell you want.
Change ranges to match your data.
Excel Workbook
ABC
1Title
2nth row =2
3T1$A$3
4T2
5T3$A$3
Sheet
 
Upvote 0
Control+shift+enter, not just enter:

=CELL("address",INDEX($A$2:$A$7,SMALL(IF($A$2:$A$7<>"",ROW($A$2:$A$7)-ROW(INDEX($A$2:$A$7,1,1))+1),2)))
 
Upvote 0
I need a formula that will return the CELL reference (not the value in the cell) of the Nth non-blank cell.
Just wondering what you are going to then do with that cell reference?
Reason for asking is that it may be possible to bypass the cell reference and go straight to the next action.
 
Upvote 0
I use it for other formula as range references... I have found a means to find the CELL address of the last non-blank cell, but couldn't figure out the first (minus the header) non blank cell. This information is then used within other formulas via an Indirect formula as a range reference.
 
Upvote 0
I use it for other formula as range references... I have found a means to find the CELL address of the last non-blank cell, but couldn't figure out the first (minus the header) non blank cell. This information is then used within other formulas via an Indirect formula as a range reference.

How do you mean? Care to elaborate on what you need?
 
Upvote 0
Aladin... you formula works perfectly Thank You!!!

So to explain its use... I use your formulas result in other Countifs formulas as the first cell reference in a range.

I had already figured out how to find the last non blank cell in the column so I use these two cell addresses as the countifs range.
 
Upvote 0
Aladin... you formula works perfectly Thank You!!!

So to explain its use... I use your formulas result in other Countifs formulas as the first cell reference in a range.

I had already figured out how to find the last non blank cell in the column so I use these two cell addresses as the countifs range.

That's fine. Thanks for the update.

It looks like you have:

COUNTIFS(INDIRECT(firstnonblankcellref:lastnonblankcellref),criterion)

If A1 is a header (not data) and A2:A7 consists of numeric data, we can also have: Control+shift+enter, not just enter:

=COUNTIFS(INDEX($A$2:$A$7,MIN(IF($A$2:$A$7<>"",ROW($A$2:$A$7)-ROW(INDEX($A$2:$A$7,1,1))+1))):INDEX($A$2:$A$7,MATCH(9.99E+307,$A$2:$A$7)),criterion)

If A2:A7 consists of text, replace in the above formula 9.99E+307 with REPT("z",255).
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top