Last row in Dynamic Range

BillTony

Board Regular
Joined
May 3, 2017
Messages
70
I am attempting to retrieve the value found in the last cell/row in column E of a dynamic range. The first row containing data will always be E12 and the last row fluctuates on a daily basis. The formula I am using invariably returns the value found in E12 only - so I am obviously doing something drastically wrong...

I am using a Named Range to house the formula.

Also, the data in column E is obtained via a VLOOKUP, which is why I'm using "value" in the formula.

Any insight would be greatly appreciated!

Thanks in advance...

Code:
'Named Range = Last_Row_ColE.
=value($E$12:INDEX($E:$E,COUNTA($E:$E)))
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
One way:
VBA Code:
Dim lr as Long
Dim rng as Range

'   Find last row in column E with data
    lr = Cells(Rows.Count,"E").End(xlUp).Row

'   Build range variable for column E
    Set rng = Range("E12:E" & lr)
 
Upvote 0
Maybe, =value($E$12:INDEX($E:$E,COUNTA($E:$E)+12))
 
Upvote 0
Thanks to you both!

Do to "security" issues I cannot introduce any Macros / Code to the report.

I have tried the "+12" method, but the results remain unchanged.
 
Upvote 0
Cross posted Retrieve data from last row / cell in Dynamic Range - OzGrid Free Excel/VBA Help Forum

While we do allow Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules). This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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