Spill Sequence referencing three columns of data

sabin348

New Member
Joined
Nov 2, 2013
Messages
25
Office Version
  1. 365
Platform
  1. Windows
I found this thread where the solution where the solution from @smozgur woks great except I have three columns of data instead of two. I'm having trouble trying to take the formula and scale it for three columns.

Here's the thread link:

Here's his formula:
Excel Formula:
= LET(stepRows, ROWS(steps),    dateRows, ROWS(dates),    seq, SEQUENCE(stepRows * dateRows, 2),    IF(ISEVEN(seq),      INDEX(dates,MOD(SEQUENCE(stepRows * dateRows)-1,dateRows)+1),      INDEX(steps, INT(((seq+1)/2-1)/dateRows)+1)    )  )= LET(stepRows, ROWS(steps),    dateRows, ROWS(dates),    seq, SEQUENCE(stepRows * dateRows, 2),    IF(ISEVEN(seq),      INDEX(dates,MOD(SEQUENCE(stepRows * dateRows)-1,dateRows)+1),      INDEX(steps, INT(((seq+1)/2-1)/dateRows)+1)    )  )
 

Attachments

  • Capture.JPG
    Capture.JPG
    58.2 KB · Views: 12
Oops, had the wrong value in the Mod function, it should be
Excel Formula:
=LET(a,B2#,b,C2#,c,FILTER(D2:D10,D2:D10<>""),ra,ROWS(a),rb,ROWS(b),rc,ROWS(c),HSTACK(TOCOL(IF(SEQUENCE(,rb*rc),a,1/0),2),INDEX(b,MOD(INT(SEQUENCE(ra*rb*rc,,0,1/rc)),rb)+1),TOCOL(IF(SEQUENCE(,ra*rb),c,1/0),2,1)))
This worked. Can I throw a curve ball at you? If, and only if Data column 1 says 003, I need data column C to say A and C instead of A and B
 
Upvote 0

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
As that is a significantly different question, it needs a new thread. Thanks
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
Please note that when marking a post as the solution, please mark the actual thread that contains the solution (not your own post acknowledging that some other post is the solution).

You will notice that once you mark a post as the solution, it also appears at the very top under the original question, so anyone can easily see at quick glance the original question and the solution. So marking any post that does not actually contain the solution would kind of defeat the purpose of that.

I have gone ahead and change the posted solution for you.
 
Upvote 0

Forum statistics

Threads
1,215,088
Messages
6,123,056
Members
449,091
Latest member
ikke

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