Dynamic Ranges in Formula

RobR1981

New Member
Joined
Sep 11, 2019
Messages
3
Hello All,

I have the following formula: =SUMPRODUCT(--SUBTOTAL(3,OFFSET(Audit!$F$2:$F$57,ROW(Audit!$F$2:$F$57)-MIN(ROW(Audit!$F$2:$F$57)),,1)),--(LEFT(Audit!$A$2:$A$57,(FIND("-",Audit!$A$2:$A$57))-1)=F$11))

The formula does do what is intended, but I would like to use this formula in other workbooks which may have more or less than 57 rows in column F. I am trying to make the range dynamic, but am at a loss as to how to do so.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hi
This might help
Dynamic Named Range


  • When you add a value to the range, Excel does not update the sum.
  • To expand the named range automatically when you add a value to the range, execute the following the following steps. ...
  • Click Edit.
  • Click in the "Refers to" box and enter the formula =OFFSET($A$1,0,0,COUNTA($A:$A),1)

(You can google "dynamic named range")
Good luck
 
Last edited:
Upvote 0

Forum statistics

Threads
1,225,741
Messages
6,186,761
Members
453,370
Latest member
juliewar

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