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

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
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,213,484
Messages
6,113,927
Members
448,533
Latest member
thietbibeboiwasaco

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