Repeat names in a list by number of times in a cell

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,210
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi Eveyone,
Hope someone can help me with this,
I need a formula that can create a list of names reapeting the name the number of time in a column,
So In Range B5:B105 in have a list of names (wont always be to 105 but this is the max,)
In range D5:D105 I have a number, this number is the number of time I want that name to be repeated,
what I like is a formula in column F to give me the list of names, the number of times in column D
like this:

ABCDEF
1NameTimes to repeatresult i'd like
2Name12Name1
3Name24Name1
4Name31Name2
5Name42Name2
6Name2
7Name2
8Name3
9Name4
Name4

happy to add helper columns if needed, please help if you can
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
How about
Excel Formula:
=TOCOL(IF(SEQUENCE(,MAX(D2:D200))<=D2:D200,B2:B200,1/0),2)
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,257
Messages
6,177,473
Members
452,781
Latest member
Latlonchy

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