Dynamic formula fill down

tdcockers

New Member
Joined
Mar 29, 2016
Messages
21
Office Version
  1. 365
Platform
  1. Windows
Wondering how to write a formula that will copy down (like dragging the fill handle) based on the length of a dynamic array? Unfortunately tables are not an option in this case.

In the below, all the formulas in row 4 are dynamic arrays of the same length. I'm trying to figure out an array formula in cell F4 that calculates YTD figures (based on lookup cell F3) for each row? My best guess was using SEQUENCE and OFFSET... until I found out OFFSET won't play in arrays.

sample.xlsx
ABCDEF
1 YTD
2 AUG JUL AUG SEP OCT
3
441100-----
541300----
641400----
741500----
84230071,40553,300-130,313
943100----
1043200--48,00416,079
114410012,44711,279--
1245050----
1345070----
144510079,2614,2481,0751,075
1545110----
1645120----
1745130----
1845140----
Sheet1
Cell Formulas
RangeFormula
A4:A18,C4:F18A4=O30:O44
B4B4=SUM(OFFSET(B4,0,1):OFFSET(B4,0,XMATCH($B$2,$C$2:$F$2)))
Dynamic array formulas.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
I assume that you mean B4 & B2 rather than F4 & F3. If so try
Excel Formula:
=BYROW(TAKE(C4#,,XMATCH(B2,C2:F2)),LAMBDA(br,SUM(br)))
 
Upvote 0
Solution
I assume that you mean B4 & B2 rather than F4 & F3
Yes I did, thank you... the other references are the cell numbers in my unsanitised file.

Formula works perfectly with one mod, the TAKE range needed to be C4#:F4# because each column is an individual array rather than a multi-array column. Thanks!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,240
Messages
6,170,951
Members
452,368
Latest member
jayp2104

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