Dynamic Named Range

NorthbyNorthwest

Board Regular
Joined
Oct 27, 2013
Messages
154
Office Version
  1. 365
Hi, everyone. Hope someone can help me with a dynamic named range. I have a range where first data cell is B8 (row above is header), last column is DZ (column 130). I need a dynamic named range which takes into account expanding rows. I tried the following formula =OFFSET(Details!$B$8,0,0,COUNTA(Details!$B:$B),129). It doesn't do anything. No marching ants. What am I doing wrong?
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
How did you determine it doesn't work?
Select sheet Details; tab Formulas, group DefinedNames, open NameManager; select "your" Name, click once onto the "Referred to" formula: is a dotted frame displayed? How is that area delimited with the dotted frame, with respect to the area that your Name you expect to be referring?

If on a free area and using Office 365 you type the formula =YourName what do you get?
 
Upvote 0
OK, I followed your instructions and got it working. But now it picks up three extra rows. My data stops at row 115. The dynamic range ends at row 118. Do you why this would happen? How do I write formula to exclude these rows?
 
Upvote 0
Try using
Excel Formula:
[B]=OFFSET(Details!$B$8,0,0,COUNTA(Details!$B8:$B200),129)[/B]
 
Upvote 0
Solution
Thanks for the help, Anthony. I figured out where the three extra rows came from. Appreciate all you do.
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,447
Members
448,966
Latest member
DannyC96

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