Dynamic Arrary - Generate long table iterated through multiple columns using sequence

zmjerry

New Member
Joined
Dec 13, 2020
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,

I'm so excited to join this group. I recently watched some videos on the dynamic array function in Excel and I think this is gonna change a lot of things. I'm looking forward to learn more from all of you.

Here is my problem:

As the pictures show, Table 1 is a simple =SEQUENCE(5,1,0,1). Table 2 is a manual table that would get added more assets and products to it.

I want to have a dynamic array to repeat 0-4 for each row in Table 2, by inputting just one formula in H3.

I'm able to do this in Power Query by merging unrelated columns in Table 1 and Table 2, and expand it. But I need to do this in the worksheets instead.

Any help or discussion is appreciated.

Thanks,
MJ
 

Attachments

  • Snipaste_2020-12-13_14-13-44.png
    Snipaste_2020-12-13_14-13-44.png
    21.3 KB · Views: 38

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
How about two formulae
+Fluff v2.xlsm
ABCDEFGHIJ
1
2NameProduct
30Asset 1A0Asset 1A
41Asset 1B1Asset 1A
52Asset 2C2Asset 1A
63Asset 2D3Asset 1A
744Asset 1A
80Asset 1B
91Asset 1B
102Asset 1B
113Asset 1B
124Asset 1B
130Asset 2C
141Asset 2C
152Asset 2C
163Asset 2C
174Asset 2C
180Asset 2D
191Asset 2D
202Asset 2D
213Asset 2D
224Asset 2D
23
Main
Cell Formulas
RangeFormula
C3:C7C3=SEQUENCE(5,,0)
H3:H22H3=INDEX(C3#,MOD(SEQUENCE(ROWS(C3#)*ROWS(Table11))-1,ROWS(C3#))+1)
I3:J22I3=INDEX(Table11,SEQUENCE(ROWS(C3#)*ROWS(Table11),,1,1/ROWS(C3#)),{1,2})
Dynamic array formulas.
 
Last edited:
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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