Assign list based on column value

Cr864

New Member
Joined
Dec 30, 2021
Messages
21
Office Version
  1. 365
Platform
  1. Windows
Hi, i was wondering if someone could guide me on the quickest way to post the list of names below based on the number on the column beside it. We'll just call them column A & B for the purposes of this and the destination column could be column C. We have work assignments we sign out each day and each number is the number of work assignments they should get out of a greater list.

The way we currently do it is just copying all the names, pasting 5 times, copying all the names except the 5s, pasting 5 more times to get to the 10s, etc etc until everyone gets their amount. Surely there is a quicker way
1640871055473.png
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Hi & welcome to MrExcel.
How about
+Fluff 1.xlsm
ABC
1
2A2A
3B0A
4C5C
5D3C
6E2C
7F2C
8G3C
9H5D
10I1D
11D
12E
13E
14F
15F
16G
17G
18G
19H
20H
21H
22H
23H
24I
25
Main
Cell Formulas
RangeFormula
C2:C24C2=LET(a,TEXTJOIN("",,REPT("</m><m>"&A2:A10,B2:B10)),FILTERXML("<k><m>"&MID(a,8,LEN(a))&"</m></k>","//m"))
Dynamic array formulas.
 
Upvote 0
Solution
Hi & welcome to MrExcel.
How about
+Fluff 1.xlsm
ABC
1
2A2A
3B0A
4C5C
5D3C
6E2C
7F2C
8G3C
9H5D
10I1D
11D
12E
13E
14F
15F
16G
17G
18G
19H
20H
21H
22H
23H
24I
25
Main
Cell Formulas
RangeFormula
C2:C24C2=LET(a,TEXTJOIN("",,REPT("</m><m>"&A2:A10,B2:B10)),FILTERXML("<k><m>"&MID(a,8,LEN(a))&"</m></k>","//m"))
Dynamic array formulas.
This works perfectly! Thank you very much!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,019
Messages
6,122,707
Members
449,093
Latest member
Mnur

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