Displaying last filled cell before a blank cell

30percent

Board Regular
Joined
May 5, 2011
Messages
123
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I have a list of data on Sheet 1, on column B. I wonder how do I display the last filled cell on column B BEFORE A BLANK CELL onto another cell say Sheet 2, cell B2.

Thank you!!
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hi,

I have a list of data on Sheet 1, on column B. I wonder how do I display the last filled cell on column B BEFORE A BLANK CELL onto another cell say Sheet 2, cell B2.

Thank you!!
There are several ways to do this. The best solution depends on what type of data is in the range.

Is the data in the range:

text
numbers
dates
times
logical values like TRUE and/or FALSE

Are there any formulas in the range?
Do any of these formulas return formula blanks (="")?
Do any of these formulas return errors?
Could the data in the range be all of the above?

A generic method...

Book1
BCD
212_14
317__
437__
5___
6___
7___
891__
983__
10Text__
1196__
1251__
13Data__
1442__
1533__
1664__
17___
18___
197__
2014__
Sheet1

This array formula** entered in D2:

=INDEX(B:B,MAX(IF(B2:B20<>"",ROW(B2:B20))))

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
 
Upvote 0
Hi,

I have the data list on sheet 1, and I would like to display it on a cell on sheet 2. I modified the formula to factor it in.

I pressed on CTRL, Shift and Enter on the cell I want to display and paste the following formula:
=INDEX(Sheet1!B3:B24,MAX((Sheet1!B3:B24<>"")*ROW(1:1000)))

However I have this displayed on the cell #VALUE!

Please advise
 
Upvote 0
It is Sheet1
Try this array formula**:

=INDEX(Sheet1!B:B,MAX(IF(Sheet1!B3:B24<>"",ROW(Sheet1!B3:B24))))

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
 
Upvote 0
Hi,
sorry, It still doesn't work.

I copied the following formula:
=INDEX(Sheet1!B:B,MAX(IF(Sheet1!B3:B24<>"",ROW(Sheet1!B3:B24))))

Pressed on CTRL, Shift and Enter keys.

I right clicked on my mouse and pasted the formula.

I ended up getting #VALUE!

Please advise, thank you!
 
Upvote 0
Hi,
sorry, It still doesn't work.

I copied the following formula:
=INDEX(Sheet1!B:B,MAX(IF(Sheet1!B3:B24<>"",ROW(Sheet1!B3:B24))))

Pressed on CTRL, Shift and Enter keys.

I right clicked on my mouse and pasted the formula.

I ended up getting #VALUE!

Please advise, thank you!
Here's a small sample file that demonstrates this.

zzz30percent.xls 14kb

http://cjoint.com/?AIDxLvua8YQ
 
Upvote 0
Hi 30percent.

Pressed on CTRL, Shift and Enter keys.
I right clicked on my mouse and pasted the formula.
First: I right clicked on my mouse and pasted the formula.
And then: Pressed on CTRL, Shift and Enter keys.
(in formula-editor)
 
Upvote 0

Forum statistics

Threads
1,224,585
Messages
6,179,704
Members
452,938
Latest member
babeneker

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