purely dynamic named range

ajm

Well-known Member
Joined
Feb 5, 2003
Messages
2,007
Office Version
  1. 365
Platform
  1. Windows
good morning folks, I have had a user insert rows above a table in a model which has thrown out associated macros. i normally go through after the review period and lock things down but wasn't quick enough. also, this is one of my superusers so i expect he will want to add things after i hand over.

so, i am trying to make the model as dynamic as possible.

first question: how to include dynamic references in the dynamic named range formula which uses INDEX

I have so far for "MyRngToCopy":
Code:
=RngFirstCellFwdPlan:INDEX('Forward Plan'!$1:$1048576,COUNTA('Forward Plan'!$A:$A)-1,COUNTA(RngFPlanHDR))

I have made the starter cell into a named range (RngFirstCellFwdPlan) and also the number of columns wide (RngFPlanHDR).

How do i amend the "'Forward Plan'!$1:$1048576" so that it starts at the same row as the table using ?
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Hey ajm,

Just clarifying because of the format of your message - are you looking for a solution for your formula in the Excel sheet, or are you looking for a solution that would be used in VBA code/macros?

Just a bit tough to tell with the formatting of your "Code" section.

Thanks!
 
Upvote 0
Hi Gimics. sorry for keeping you waiting. hope you weren't holding your breath. i was trying to make the range name refers to formula more dynamic. Have resolved.
 
Upvote 0

Forum statistics

Threads
1,215,172
Messages
6,123,438
Members
449,100
Latest member
sktz

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