INSRWS

INSRWS(a,[r],[g])
a
array
[r]
row's group size, if omitted r=1
[g]
gap size, if omitted g=1, if<0 gap inserted also before 1st row

Inserts one or more blank rows

Xlambda

Well-known Member
Joined
Mar 8, 2021
Messages
860
Office Version
  1. 365
Platform
  1. Windows
INSRWS Inserts blank Rows. Calls ZINS
- can insert 1 or more blank rows, called "gap", after each group of r rows. Gap size argument g
- if g<0 a nr. of abs(g) blank rows is also inserted before 1st row
Note: Could have embedded ZINS function with INSRWS but can be a useful function tool to solve other types of tasks, like inserting text patterns.
Excel Formula:
=LAMBDA(a, [r], [g],
    LET(
        x, MAX(1, r),
        y, IF(g, ABS(g), 1),
        q, ZINS(ROWS(a), x, y),
        s, IF(g < 0, VSTACK(SEQUENCE(y) ^ 0 - 1, q), q),
        b, INDEX(IF(a = "", "", a), s, SEQUENCE(, COLUMNS(a))),
        IF(s, b, "")
    )
)
ZINS(n,x,g) Zeros Insert, Inserts 1 or more zeros to a sequence of n elements
n: nr. of elements
x: element's group size
g: 0's group size
Excel Formula:
=LAMBDA(n, x, g,
    LET(
        d, IF(SEQUENCE(x) < x, ",", "," & REPT("0,", g)),
        --TEXTSPLIT(TEXTJOIN(d, , SEQUENCE(n)), , ",")
    )
)
Book3
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAG
1
2r,g,omit.r,2, g,omit.r,omit. ,g,2r,3,g,2r,5,g,3r,omit. ,g,-1r,4,g,-3
3a=INSRWS(B4#)=INSRWS(B4#,2)=INSRWS(B4#,,2)=INSRWS(B4#,3,2)=INSRWS(B4#,5,3)=INSRWS(B4#,,-1)=INSRWS(B4#,4,-3)
4123123123123123123  
5456456456456123
6789456789789
7101112789456101112456123
8131415789101112131415456
9161718101112789789
10192021101112131415789131415101112
11222324161718161718101112
12252627131415161718
13282930192021101112192021131415
14313233161718222324192021222324131415
15343536222324252627161718161718
16373839192021252627131415252627282930192021
17404142282930192021222324
18434445222324
19464748313233161718282930222324
20495051252627343536313233313233
21343536343536252627252627
22282930373839192021373839282930
23404142404142282930313233
24313233373839434445343536
25434445222324404142313233
26343536464748434445
27343536
28373839495051252627464748373839
29464748495051373839404142
30404142495051434445
31282930404142464748
32434445
33434445
34464748313233
35464748495051
36495051
37343536495051
38
39
40373839
41
42
43404142
44
45
46434445
47
48
49464748
50
51
52495051
53
Sheet1
Cell Formulas
RangeFormula
F3,J3,N3,R3,V3,Z3,AD3F3=FORMULATEXT(F4)
B4:D20B4=SEQUENCE(17,3)
F4:H36F4=INSRWS(B4#)
J4:L28J4=INSRWS(B4#,2)
N4:P52N4=INSRWS(B4#,,2)
R4:T30R4=INSRWS(B4#,3,2)
V4:X29V4=INSRWS(B4#,5,3)
Z4:AB37Z4=INSRWS(B4#,,-1)
AD4:AF35AD4=INSRWS(B4#,4,-3)
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B4:AF53Expression=B4<>""textNO
B4:AF52Expression="b4<>"""""textNO
B4:AF52Expression="B4<>"""""textNO
 
Upvote 0
Book3.xlsx
ABCDEFGHIJKLMNOPQRSTUVWX
1NARRINS with arrays different dimentions
21234=NARRINS(,,B3:D10,F3:H6,J3:L6,N3:P18)
3A3191B4391C5938D1812A3191
4A1087B9591C3053D8869D1812
5A1368B9548C7322D7679A1087
6A4058B4089C3862D4215D8869
7A5337D5671B4391
8A5589D5473D7679
9A3014D5853C5938
10A3311D7263D4215
11D3582A1368
12D4491D5671
13D3343A4058
14D7330D5473
15D6153B9591
16D6832D5853
17D6866C3053
18D2642D7263
19A5337
20D3582
21Note: In iterative process, for consistent results counta(x(i-1))/counta(x(i)) = integerA5589
22D4491
23B9548
24D3343
25C7322
26D7330
27A3014
28D6153
29A3311
30D6832
31B4089
32D6866
33C3862
34D2642
35
Sheet10
Cell Formulas
RangeFormula
S2S2=FORMULATEXT(S3)
S3:U34S3=NARRINS(,,B3:D10,F3:H6,J3:L6,N3:P18)
Dynamic array formulas.
 
Introducing ARRAYS , a composed lambda helper function that applies any given function to each element of a sequence of arrays (min 2, max 5) and stacks the results horizontally or vertically.
ARRAYS(a,b,[c],[d],[e])(fn,[hz])
a,b,c,d,e: arrays or single values: min 2 arrays, max 5 arrays
fn: lambda helper function
[hz]: if 1 results stacked horizontally, if omitted vertically
Excel Formula:
=LAMBDA(a, b, [c], [d], [e],
    LAMBDA(fn, [hz],
        LET(
            x, LAMBDA(i, LET(w, SWITCH(i, 1, a, 2, b, 3, c, 4, d, 5, e), IF(w = "", "", w))),
            o, --VSTACK(ISOMITTED(c), ISOMITTED(d), ISOMITTED(e)),
            na, IFNA(XMATCH(1, o), 4) + 1,
            r, REDUCE(0, SEQUENCE(na), LAMBDA(v, i, IF(hz, HSTACK(v, fn(x(i))), VSTACK(v, fn(x(i)))))),
            IFNA(IF(hz, DROP(r, , 1), DROP(r, 1)), "")
        )
    )
)
Book3.xlsx
ABCDEFGHIJKLMNOPQRSTUV
1
2single argument functions13
3cdc77aba3
411aac5
5=ARRAYS(B4,B6,B8,B10,B12:C13)(LAMBDA(x,TYPE(x)))24xxxy
62text147412yxxy
7233431yyyx
83TRUE4427xxxy
916
104#N/A64sort unique for each array (results stacked horizontally
11
125a2=ARRAYS(K3:M4,K6:M8,O3:T3,O6:P7,R5:S8)(LAMBDA(x,SORT(UNIQUE(TOCOL(x)))),1)
133ba231xx
14c372xy
15functions that accept multiple arguments but return single resultsd4a3yx
167byy
1711=SUM(B17:C18,B20:E20,B22:C23,B25#)
1837167arrays that have no 0's
19123
20214a-343a07d-4
2154ng80.01
2231212k0
23976=ARRAYS(B17:C18,B20:E20,B22:C23,B25#)(LAMBDA(x,SUM(x)))
2411=AND(K20:L21,N20:O22,Q20:S21)
2541232FALSE
26456109
2778945=ARRAYS(K20:L21,N20:O22,Q20:S21)(LAMBDA(x,AND(x)))
28TRUE
29FALSE
30TRUE
31
Sheet11
Cell Formulas
RangeFormula
E5,K27,K24,G17,K12E5=FORMULATEXT(E6)
E6:E10E6=ARRAYS(B4,B6,B8,B10,B12:C13)(LAMBDA(x,TYPE(x)))
B10B10=NA()
K13:O16K13=ARRAYS(K3:M4,K6:M8,O3:T3,O6:P7,R5:S8)(LAMBDA(x,SORT(UNIQUE(TOCOL(x)))),1)
G18G18=SUM(B17:C18,B20:E20,B22:C23,B25#)
E23E23=FORMULATEXT(G24)
G24:G27G24=ARRAYS(B17:C18,B20:E20,B22:C23,B25#)(LAMBDA(x,SUM(x)))
B25:D27B25=SEQUENCE(3,3)
K25K25=AND(K20:L21,N20:O22,Q20:S21)
K28:K30K28=ARRAYS(K20:L21,N20:O22,Q20:S21)(LAMBDA(x,AND(x)))
Dynamic array formulas.
 
Book3.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXY
1
2Tbv1v2v3=ARRAYS(B3:E7,B8:E12,B13:E17,B18:E22)(LAMBDA(x,LET(y,BYCOL(x,LAMBDA(x,SUM(x))),IF(y,y,"Sum"))))
3A-497837Sum381-29
4A413421Sum20-82232=ARRAYS(B3:E7,B8:E12,B13:E17,B18:E22)(LAMBDA(x,LET(y,BYCOL(x,LAMBDA(x,AVERAGE(x))),IFERROR(y,"Avg"))))
5A10-70-17Sum246720Avg0.616.2-5.8
6A-2263-48Sum16341-256Avg4-16.446.4
7A23-24-22Avg4.813.44
8B434550Avg32.68.2-51.2
9B-16-9271
10B603327
11B-38-4010=NARRINS(,B2:E2,B3:E22,H3#)=NARRINS(,B2:E2,B3:E22,N5#)
12B-29-2874Tbv1v2v3Tbv1v2v3
13C-1492-4A-497837A-497837
14C94-5582A413421A413421
15C95-17-65A10-70-17A10-70-17
16C-60-196A-2263-48A-2263-48
17C-91661A23-24-22A23-24-22
18D78-17-36Sum381-29Avg0.616.2-5.8
19D1274-80B434550B434550
20D-9-34-86B-16-9271B-16-9271
21D7188-17B603327B603327
22D11-70-37B-38-4010B-38-4010
23B-29-2874B-29-2874
24Sum20-82232Avg4-16.446.4
25C-1492-4C-1492-4
26C94-5582C94-5582
27C95-17-65C95-17-65
28C-60-196C-60-196
29C-91661C-91661
30Sum246720Avg4.813.44
31D78-17-36D78-17-36
32D1274-80D1274-80
33D-9-34-86D-9-34-86
34D7188-17D7188-17
35D11-70-37D11-70-37
36Sum16341-256Avg32.68.2-51.2
37
Sheet12
Cell Formulas
RangeFormula
H2,N11,H11,N4H2=FORMULATEXT(H3)
C3:E22C3=RANDARRAY(20,3,-99,99,1)
H3:K6H3=ARRAYS(B3:E7,B8:E12,B13:E17,B18:E22)(LAMBDA(x,LET(y,BYCOL(x,LAMBDA(x,SUM(x))),IF(y,y,"Sum"))))
N5:Q8N5=ARRAYS(B3:E7,B8:E12,B13:E17,B18:E22)(LAMBDA(x,LET(y,BYCOL(x,LAMBDA(x,AVERAGE(x))),IFERROR(y,"Avg"))))
H12:K36H12=NARRINS(,B2:E2,B3:E22,H3#)
N12:Q36N12=NARRINS(,B2:E2,B3:E22,N5#)
Dynamic array formulas.
 
Book3.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAE
1report comes from =>MP thread post #10
2
3EastNorthSouthWest
4CrestedMajesticQuadSunsetYanakiCrestedMajesticQuadSunsetYanakiCrestedMajesticQuadSunsetYanakiCrestedMajesticQuadSunsetYanaki
594172.961.7597
6131.694122.2113.749694.0581.48
778.96146.64114
8248.16103.411469.8475.66
9124.08171.0879.8123.569.84163.93
10122.2103.4295.68136.8126.1266.75
11105.652.8133136.881.48128.04252.2
12112.8124.811457222.3135.8
13
14=ARRAYS(B3:F12,G3:K12,L3:P12,Q3:U12)(LAMBDA(x,LET(b,BYROW(x,LAMBDA(y,SUM(y))),i,IF(SEQUENCE(ROWS(b))=1,"Tot",b),IF(i=0,"",i))),1)
15↓↓↓
16↓↓↓=NARRINS(1,,B3:U12,B17#)
17TotTotTotTotEastTotNorthTotSouthTotWestTot
18CrestedMajesticQuadSunsetYanakiCrestedMajesticQuadSunsetYanakiCrestedMajesticQuadSunsetYanakiCrestedMajesticQuadSunsetYanaki
1994234.65979494172.961.75234.659797
20461.549694.0581.48131.694122.2113.74461.54969694.0594.0581.4881.48
21225.611478.96146.64225.6114114
22351.56114145.5248.16103.4351.5611411469.8475.66145.5
23295.16203.3233.77124.08171.08295.1679.8123.5203.369.84163.93233.77
24225.6295.68136.8392.85122.2103.4225.6295.68295.68136.8136.8126.1266.75392.85
25158.4269.8461.72105.652.8158.4133136.8269.881.48128.04252.2461.72
26112.8124.8393.3135.8112.8112.8124.8124.811457222.3393.3135.8135.8
27
28
Sheet13
Cell Formulas
RangeFormula
B14B14=FORMULATEXT(B17)
G16G16=FORMULATEXT(G17)
B17:E26B17=ARRAYS(B3:F12,G3:K12,L3:P12,Q3:U12)(LAMBDA(x,LET(b,BYROW(x,LAMBDA(y,SUM(y))),i,IF(SEQUENCE(ROWS(b))=1,"Tot",b),IF(i=0,"",i))),1)
G17:AD26G17=NARRINS(1,,B3:U12,B17#)
Dynamic array formulas.
 
Lovely function!
I was trying to use it to solve this


using Lambdas only, but failed miserably : (
 
Lovely function!
I was trying to use it to solve this


using Lambdas only, but failed miserably : (
Hi st001, thanks!! ✌️🙏. Cool challenge. This is the first draft I came up with. Some lambda query.
The main purpose was to prove that NARRINS could be useful 😊
Could have been much shorter if I would have used my old formulas ASTACK and AUNSTACK that were designed for these scenarios.
Maybe I will write a variant using them also.
CITIES(tb)
Excel Formula:
=LAMBDA(tb,
    LET(
        r, ROWS(tb),
        c, TAKE(tb, 1),
        cy, FILTER(c, c <> ""),
        n, COLUMNS(cy),
        y, REPT(cy, SEQUENCE(r) ^ 0),
        a, NARRINS(1, , tb, y),
        w, WRAPROWS(TOCOL(DROP(a, 2)), 3),
        s, SORTBY(w, MOD(SEQUENCE((r - 2) * n) - 1, n)),
        b, CHOOSECOLS(FILTER(s, TAKE(s, , 1) <> ""), {3, 1, 2}),
        VSTACK({"City", "Name", "Age"}, b)
    )
)
Book3.xlsx
ABCDEFGHIJKLMNOPQRS
1
2MumbaiNew YorkHong KongLondonMumbaiNew YorkHong KongLondon
3NameAgeNameAgeNameAgeNameAgeNameAgeNameAgeNameAgeNameAge
4A14E14I14N5A14E14I14N5
5B12F12J12O5B12F12J12O5
6c18G18K18p5c18G18K18p5
7D10L19Q5D10L19Q5
8M20M20
9
10=CITIES(B2:I8)It was not clear where the cities are placed, above Name, or above Age.
11CityNameAgeAnyhow, lambda works both ways
12MumbaiA14
13MumbaiB12=CITIES(K2:R8)
14Mumbaic18CityNameAge
15MumbaiD10MumbaiA14
16New YorkE14MumbaiB12
17New YorkF12Mumbaic18
18New YorkG18MumbaiD10
19Hong KongI14New YorkE14
20Hong KongJ12New YorkF12
21Hong KongK18New YorkG18
22Hong KongL19Hong KongI14
23Hong KongM20Hong KongJ12
24LondonN5Hong KongK18
25LondonO5Hong KongL19
26Londonp5Hong KongM20
27LondonQ5LondonN5
28LondonO5
29Londonp5
30LondonQ5
31
Sheet14
Cell Formulas
RangeFormula
C10,K13C10=FORMULATEXT(C11)
C11:E27C11=CITIES(B2:I8)
K14:M30K14=CITIES(K2:R8)
Dynamic array formulas.
 
Book3.xlsx
ABCDEFGHIJKLMNOP
1
2If the table gets extended, more cities and more names
3=CITIES(B4:K12)
4MumbaiNew YorkHong KongLondonMadridCityNameAge
5NameAgeNameAgeNameAgeNameAgeNameAgeMumbaiA14
6A14E14I14N5R23MumbaiB12
7B12F12J12O5S32Mumbaic18
8c18G18K18p5T43MumbaiD10
9D10L19Q5U18New YorkE14
10M20V12New YorkF12
11MA17X23New YorkG18
12MB20Hong KongI14
13Hong KongJ12
14Hong KongK18
15Hong KongL19
16Hong KongM20
17Hong KongMA17
18Hong KongMB20
19LondonN5
20LondonO5
21Londonp5
22LondonQ5
23MadridR23
24MadridS32
25MadridT43
26MadridU18
27MadridV12
28MadridX23
29
Sheet15
Cell Formulas
RangeFormula
M3M3=FORMULATEXT(M4)
M4:O28M4=CITIES(B4:K12)
Dynamic array formulas.
 
Same task solved using ASTACK that calls AUNSTACK, step by step
Book3.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAA
1Concept CTYSTK using ASTACK,NARRINS
24. stacking5. clms order+exclude blanks
3MumbaiNew YorkHong KongLondonMadrid=ASTACK(B28:P34,3)=LET(a,R4#,CHOOSECOLS(FILTER(a, TAKE(a, , 1) <> ""), {3,1,2}))
4NameAgeNameAgeNameAgeNameAgeNameAgeA14MumbaiMumbaiA14
5A14E14I14N5R23B12MumbaiMumbaiB12
6B12F12J12O5S32c18MumbaiMumbaic18
7c18G18K18p5T43D10MumbaiMumbaiD10
8D10L19Q5U18MumbaiNew YorkE14
9M20V12MumbaiNew YorkF12
10MA17X23MumbaiNew YorkG18
11MB20E14New YorkHong KongI14
12F12New YorkHong KongJ12
131. extract cities2. prepare cities to be insertedG18New YorkHong KongK18
14=LET(c,B3:K3,FILTER(c,c<>""))=REPT(B15#,SEQUENCE(ROWS(B3:K11))^0)New YorkHong KongL19
15MumbaiNew YorkHong KongLondonMadridMumbaiNew YorkHong KongLondonMadridNew YorkHong KongM20
16MumbaiNew YorkHong KongLondonMadridNew YorkHong KongMA17
17MumbaiNew YorkHong KongLondonMadridNew YorkHong KongMB20
18MumbaiNew YorkHong KongLondonMadridI14Hong KongLondonN5
19MumbaiNew YorkHong KongLondonMadridJ12Hong KongLondonO5
20MumbaiNew YorkHong KongLondonMadridK18Hong KongLondonp5
21MumbaiNew YorkHong KongLondonMadridL19Hong KongLondonQ5
22MumbaiNew YorkHong KongLondonMadridM20Hong KongMadridR23
23MumbaiNew YorkHong KongLondonMadridMA17Hong KongMadridS32
243. insertingMB20Hong KongMadridT43
25=NARRINS(1,,B3:K11,H15#)N5LondonMadridU18
26MumbaiMumbaiNew YorkNew YorkHong KongHong KongLondonLondonMadridMadridO5LondonMadridV12
27NameAgeMumbaiNameAgeNew YorkNameAgeHong KongNameAgeLondonNameAgeMadridp5LondonMadridX23
28A14MumbaiE14New YorkI14Hong KongN5LondonR23MadridQ5London
29B12MumbaiF12New YorkJ12Hong KongO5LondonS32MadridLondon
30c18MumbaiG18New YorkK18Hong Kongp5LondonT43MadridLondon
31D10MumbaiNew YorkL19Hong KongQ5LondonU18MadridLondon
32MumbaiNew YorkM20Hong KongLondonV12MadridR23Madrid
33MumbaiNew YorkMA17Hong KongLondonX23MadridS32Madrid
34MumbaiNew YorkMB20Hong KongLondonMadridT43Madrid
35U18Madrid
36V12Madrid
37X23Madrid
38Madrid
39
Sheet16
Cell Formulas
RangeFormula
R3,B25,H14,B14,V3R3=FORMULATEXT(R4)
R4:T38R4=ASTACK(B28:P34,3)
V4:X27V4=LET(a,R4#,CHOOSECOLS(FILTER(a, TAKE(a, , 1) <> ""), {3,1,2}))
B15:F15B15=LET(c,B3:K3,FILTER(c,c<>""))
H15:L23H15=REPT(B15#,SEQUENCE(ROWS(B3:K11))^0)
B26:P34B26=NARRINS(1,,B3:K11,H15#)
Dynamic array formulas.
 
CTYSTK(tb)
Excel Formula:
=LAMBDA(tb,
    LET(
        c, TAKE(tb, 1),
        cy, FILTER(c, c <> ""),
        y, REPT(cy, SEQUENCE(ROWS(tb)) ^ 0),
        a, ASTACK(DROP(NARRINS(1, , tb, y), 2), 3),
        b, CHOOSECOLS(FILTER(a, TAKE(a, , 1) <> ""), {3, 1, 2}),
        VSTACK({"City", "Name", "Age"}, b)
    )
)
Book3.xlsx
ABCDEFGHIJKLMNOPQRSTU
1
2MumbaiNew YorkHong KongLondonMumbaiNew YorkHong KongLondonMadrid
3NameAgeNameAgeNameAgeNameAgeNameAgeNameAgeNameAgeNameAgeNameAge
4A14E14I14N5A14E14I14N5R23
5B12F12J12O5B12F12J12O5S32
6c18G18K18p5c18G18K18p5T43
7D10L19Q5D10L19Q5U18
8M20M20V12
9MA17X23
10MB20
11
12=CTYSTK(B2:I8)=CTYSTK(K2:T10)
13CityNameAgeCityNameAge
14MumbaiA14MumbaiA14
15MumbaiB12MumbaiB12
16Mumbaic18Mumbaic18
17MumbaiD10MumbaiD10
18New YorkE14New YorkE14
19New YorkF12New YorkF12
20New YorkG18New YorkG18
21Hong KongI14Hong KongI14
22Hong KongJ12Hong KongJ12
23Hong KongK18Hong KongK18
24Hong KongL19Hong KongL19
25Hong KongM20Hong KongM20
26LondonN5Hong KongMA17
27LondonO5Hong KongMB20
28Londonp5LondonN5
29LondonQ5LondonO5
30Londonp5
31LondonQ5
32MadridR23
33MadridS32
34MadridT43
35MadridU18
36MadridV12
37MadridX23
38
Sheet18
Cell Formulas
RangeFormula
B12,F12B12=FORMULATEXT(B13)
B13:D29B13=CTYSTK(B2:I8)
F13:H37F13=CTYSTK(K2:T10)
Dynamic array formulas.
 
Book3.xlsx
ABCDEFGHIJKLMNOP
1Concept STKCTY, using only ASTACK
21. extracting cities
3MumbaiNew YorkHong KongLondon=FILTER(B3:I3,B3:I3<>"")
4NameAgeNameAgeNameAgeNameAgeMumbaiNew YorkHong KongLondon
5A14E14I14N5
6B12F12J12O5
7c18G18K18p5
8D10L19Q5
9M20
10
112. stacking3. 1clm for FILTER4. index for cities5. appending cities6. filtering
12=ASTACK(B5:I9,2)=TAKE(B13#,,1)=HSTACK(INDEX(K4#,G13#),B13:C31)=FILTER(I13#,E13#<>"")
13A14A1MumbaiA14MumbaiA14
14B12B1MumbaiB12MumbaiB12
15c18c1Mumbaic18Mumbaic18
16D10D1MumbaiD10MumbaiD10
171MumbaiNew YorkE14
18E14E2New YorkE14New YorkF12
19F12F2New YorkF12New YorkG18
20G18G2New YorkG18Hong KongI14
212New YorkHong KongJ12
222New YorkHong KongK18
23I14I3Hong KongI14Hong KongL19
24J12J3Hong KongJ12Hong KongM20
25K18K3Hong KongK18LondonN5
26L19L3Hong KongL19LondonO5
27M20M3Hong KongM20Londonp5
28N5N4LondonN5LondonQ5
29O5O4LondonO5
30p5p4Londonp5
31Q5Q4LondonQ5
324London#N/A#N/A
33=QUOTIENT(SEQUENCE(ROWS(B13#))-1,ROWS(B3:I9)-2)+1
34
Sheet17
Cell Formulas
RangeFormula
K3,I12,M12,E12,B12K3=FORMULATEXT(K4)
K4:N4K4=FILTER(B3:I3,B3:I3<>"")
B13:C32B13=ASTACK(B5:I9,2)
E13:E32E13=TAKE(B13#,,1)
G13:G32G13=QUOTIENT(SEQUENCE(ROWS(B13#))-1,ROWS(B3:I9)-2)+1
I13:K32I13=HSTACK(INDEX(K4#,G13#),B13:C31)
M13:O28M13=FILTER(I13#,E13#<>"")
G33G33=FORMULATEXT(G13)
Dynamic array formulas.
 

Forum statistics

Threads
1,223,575
Messages
6,173,148
Members
452,502
Latest member
PQCurious

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