Named range for next blank row

theta

Well-known Member
Joined
Jun 9, 2009
Messages
960
Hi

Is there any way for a dynamic named range to be the range in A:F where no data follows (i.e. the next availabe row) - do not want it to be the next blank row as there are blanks in my data. So needs to the last row (range A:F) where all cells below (A:F to the end of the worksheet) are blank

Any ideas?
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
This is one way, but could probably be more efficient if we knew if there were going to be numbers or text in the cells:
Excel Workbook
ABCDEFGH
1sadfA30:F30
2sadfdf
3sdf
4s
5df
6dfs
7fsd
8dfs
9sadfdf
10sdf
11fs
12dff
13sd
14dffs
15dfs
16dfs
17sdff
18
19dfsdfs
20
21sd
22
23ff
24ds
25
26
276
28
29w
30
31
32
33
34
35
Sheet14
#VALUE!

Hope that helps.
 
Upvote 0
Comlpete mixture of data. Can be any character. Anything from a space or a full stop..through to an alpha string

(dealing with random system reports that some people "fudge"...so looking for the next clean range to start working with)
 
Upvote 0
Try defining the name as:

=INDEX(Sheet1!$A:$A,MATCH(REPT("z",255),Sheet1!$A:$A)+1):INDEX(Sheet1!$F:$F,MATCH(REPT("z",255),Sheet1!$A:$A)+1)
 
Upvote 0
Hmmm...need to select the next A:F where all A:F cells after it are blank to the base of the worksheet...

So need to analyze A, B, C, D, F...

?
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,735
Members
452,939
Latest member
WCrawford

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