Dynamic range without COUNTA

yousafkhan1976

New Member
Joined
Feb 24, 2019
Messages
4
Hi Everyone, my first post here!

I have searched and tried many different ways to create a dynamic named range where the starting cell column remains the same but the row can move depending on the number of rows inserted above. I thought the following may work, but even though if the formula is used in a cell I get the correct range defined "$A48:$AF83", but when I put the same formula in the "Refers To:" section of the named range, it does not work.

="$A"&((MATCH("Staff Effort, Hours",Resources!A:A,0)+1)&":$"&(SUBSTITUTE(ADDRESS(1,COUNTA(Resources!45:45),4),1,""))&((MATCH("LastRowHours",Resources!A:A,0))-1))

Any help would be greatly appreciated. :)
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Here is what I do when I want a Dynamic Named range.

Lets assume we want the Dynamic Named Range in Range("A5:A15")

And as we add more data into Ranges("A16") and below The Range expands downward

But we still want the Top of the Named range to stay at A5 even if we add more rows above row 5

Do this:

Select the Range("A5:A15")
Choose Insert Table

Now choose The same Range and Name it "Mom"

Now as you add more data Below A15 this will still be part of the Range named "Mom"

Try this and see how it works.
It always works for me.
Presto: A Dynamic Named Range
 
Upvote 0

Forum statistics

Threads
1,215,030
Messages
6,122,762
Members
449,095
Latest member
m_smith_solihull

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