Repeat Item X times

MGCC

New Member
Joined
Jul 13, 2023
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Can anyone help me with the following:
1702903320670.png

I want to create a flow of hotels as above. Repeat Hotel "A" the number of times it has nights, do the same with B, C.. Is there an "easy" way to to this?

Thank you
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
How about
Fluff.xlsm
ABCDEFGHIJKLMNOPQR
1
2ABC324AAABBCCCC
Sheet4
Cell Formulas
RangeFormula
J2:R2J2=TOROW(IF(SEQUENCE(MAX(F2:H2))<=F2:H2,B2:D2,1/0),2,1)
Dynamic array formulas.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,176
Messages
6,123,470
Members
449,100
Latest member
sktz

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