need dynamic array formula help

Scott R

Active Member
Joined
Feb 20, 2002
Messages
493
Office Version
  1. 365
Platform
  1. Windows
I'd like a formula in E2 that spills to E2:E9 that uses helper data in A:C which creates a sequence (2,3,4 from A2:B2, 1 from A3:B3, etc.)

startstopcountoutput
2432
1113
5514
2431
5
2
3
4
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
How about
Excel Formula:
=LET(data,A2:C5,DROP(REDUCE("",SEQUENCE(ROWS(data)),LAMBDA(x,y,VSTACK(x,SEQUENCE(INDEX(data,y,3),,INDEX(data,y,1))))),1))
 
Upvote 0
Solution
How about
Excel Formula:
=LET(data,A2:C5,DROP(REDUCE("",SEQUENCE(ROWS(data)),LAMBDA(x,y,VSTACK(x,SEQUENCE(INDEX(data,y,3),,INDEX(data,y,1))))),1))
Outstanding. Glad to know it was possible.
 
Upvote 0
One option:
Excel Formula:
=DROP(REDUCE("",A2:A5&"|"&C2:C5,LAMBDA(a,b,VSTACK(a,SEQUENCE(TEXTAFTER(b,"|"),1,TEXTBEFORE(b,"|"))))),1)
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
One option:
Excel Formula:
=DROP(REDUCE("",A2:A5&"|"&C2:C5,LAMBDA(a,b,VSTACK(a,SEQUENCE(TEXTAFTER(b,"|"),1,TEXTBEFORE(b,"|"))))),1)
Thanks. Both of these meaty solutions provide great training!
 
Upvote 0

Forum statistics

Threads
1,223,667
Messages
6,173,681
Members
452,527
Latest member
ineedexcelhelptoday

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