Creating a list of tasks in a sequence

Innoguide

Board Regular
Joined
Sep 13, 2011
Messages
159
I have 10 tasks that can each be assigned to 1 of ten sequence numbers. If there is more than 1 task assigned to a sequence number those tasks are run in parallel. So there can be anywhere from 1 to 10 tasks assigned to a sequence number but each task can only be assigned once.

The tasks are identified by the task numbers in column B and the sequence for the task is assigned in column A.

Does anyone have any suggestions for a formula in column E that will create a comma-separated list of the tasks assigned to each sequence number?

Note in the example that only 5 of the sequence numbers are used since some of the tasks run in parallel. The unused sequence numbers are blank.

Thanks in advance for any help!
ABCDE
1Assigned SequenceTask NumberSequenceTask List
212121212, 218
312182200, 202, 208, 210
422003204
522024206
622085214, 216
722106
832047
942068
1052149
11521610

<tbody>
</tbody>

<tbody>
</tbody>
 
Last edited:

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
You require Excel 2016 for this solution because it uses the new function TEXTJOIN.

ABCDE
1Assigned SequenceTask NumberSequenceTask List
212121212, 218
312182200, 202, 208, 210
422003204
522024206
622085214, 216
722106
832047
942068
1052149
11521610

<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet33

Array Formulas
CellFormula
E2{=TEXTJOIN(", ",,IF($A$2:$A$11=D2,$B$2:$B$11,""))}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try to enter the {} manually yourself

<tbody>
</tbody>
 
Upvote 0
Wow DR Steele- very elegant solution. Works perfectly!

Thanks!

You require Excel 2016 for this solution because it uses the new function TEXTJOIN.

ABCDE
1Assigned SequenceTask NumberSequenceTask List
212121212, 218
312182200, 202, 208, 210
422003204
522024206
622085214, 216
722106
832047
942068
1052149
11521610

<tbody>
</tbody>
Sheet33

Array Formulas
CellFormula
E2{=TEXTJOIN(", ",,IF($A$2:$A$11=D2,$B$2:$B$11,""))}

<tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try to enter the {} manually yourself

<tbody>
</tbody>
 
Last edited:
Upvote 0
OK - This is strange. The formula works fine the first time, but it is not updating when I change the sequence numbers in column A

Calculation is set to auto and I've tried "Calculate Now", but the formula will not update unless I copy the cells over again.

Splendid. You're welcome.
 
Upvote 0

Forum statistics

Threads
1,215,546
Messages
6,125,459
Members
449,228
Latest member
moaz_cma

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