Display the line number of the first unused row

mistawicket

New Member
Joined
Jun 16, 2008
Messages
25
Hello!
New to the site & the search option didn't help me find what I was looking for...

Is there a simple formula I can enter in a cell to display the first blank line I have in a range of B6:B2000, without using a macro?
 

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

PaddyD

MrExcel MVP
Joined
May 1, 2002
Messages
14,234
hi - welcome to the board.

=MIN(IF(LEN(A1:A10)=0,ROW(A1:A10)))

..entered with control + shift + enter, not just enter.
 
Upvote 0

mistawicket

New Member
Joined
Jun 16, 2008
Messages
25
Thnx for the welcome... Wow that was a fast response...

so If I use what you posted...

"
=MIN(IF(LEN(A1:A10)=0,ROW(A1:A10)))
"

but replace the range with my data:

=MIN(IF(LEN(B6:B2000)=0,ROW(B6:B2000)))

then it should show the first unused cell & not the last empty cell?



Gravy! I tried it & it worked...! Thnx for the info!

Out of curiosity, why do you have to enter this formula while holding crtl + shift?
 
Upvote 0

PaddyD

MrExcel MVP
Joined
May 1, 2002
Messages
14,234
check out the excel help topic on 'array formulas & how to enter them' (or something like that)
 
Upvote 0

Yogi Anand

MrExcel MVP
Joined
Mar 12, 2002
Messages
11,454
Hi mistawicket:

Welcome to MrExcel Board!

Try the following array formula ...

=MIN(IF(B6:B2000="",ROW(B6:B2000)))

an array formula is entered with CTRL+SHIFT+ENTER rather than with just ENTER
 
Upvote 0

Forum statistics

Threads
1,191,182
Messages
5,985,168
Members
439,944
Latest member
Vangelis74

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
Top