Dynamic List from Table

TheRogue

New Member
Joined
Aug 3, 2019
Messages
23
I have a table which lists types of soda & the quantities on hand.
I'm trying to create a dynamic list that would put each one on a new row (skipping zero quantities). It would list each, the # of time specified & then move on to the next value. The result list for this table should look something like:
COLA
COLA
COLA
GRAPE
GRAPE
CHERRY
CHERRY
CHERRY
GINGER ALE
ORANGE
ORANGE


<colgroup><col style="mso-width-source:userset;mso-width-alt:2413;width:50pt" width="66"> <col style="mso-width-source:userset;mso-width-alt:2889;width:59pt" width="79"> </colgroup><tbody>
[TD="width: 66, align: left"]COUNT[/TD]
[TD="width: 79, align: left"]ITEM[/TD]

[TD="class: xl65"]3[/TD]
[TD="align: left"]COLA[/TD]

[TD="class: xl65"]2[/TD]
[TD="align: left"]GRAPE
[/TD]

[TD="class: xl65"]3[/TD]
[TD="align: left"]CHERRY[/TD]

[TD="class: xl65"]0[/TD]
[TD="align: left"]DIET[/TD]

[TD="class: xl65"]1[/TD]
[TD="align: left"]GINGER ALE[/TD]

[TD="class: xl65"]2[/TD]
[TD="align: left"]ORANGE[/TD]

[TD="class: xl65"]0[/TD]
[TD="align: left"]LEMON
[/TD]

</tbody>
 
Peter - Thank you for your response. The Data in columns B&C are my starting point (that's the data provided), Column A is the result that I'm trying to achieve. However, I need to do it in a way that is dynamic (so that if one of the quantities in column B are changed, the List in column A automatically adds or removes entries, as appropriate.
Sorry, I had misread the question. :oops:

Would a helper column (could be hidden) be acceptable?

C1 is a stand-alone formula
C2 copied down to the end of your data.
B11 copied down as far as you might ever need.

Excel Workbook
ABC
1COUNTITEM11
23COLA1
32GRAPE4
43CHERRY6
50DIET
61GINGER ALE9
72ORANGE10
80LEMON
9
10
11COLA
12COLA
13COLA
14GRAPE
15GRAPE
16CHERRY
17CHERRY
18CHERRY
19GINGER ALE
20ORANGE
21ORANGE
22
23
List
 
Upvote 0

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Yes. Thank you. This does exactly what I want it to. Now, I just have to see if I can "tweak" it some. (The provided data is a table. There is no problem w/ adding a helper column to the table, but the result has to live elsewhere.) You've showed me the concept (which I now understand), now I just have to apply it to my situation.
 
Upvote 0
Now, I just have to see if I can "tweak" it some. (The provided data is a table. There is no problem w/ adding a helper column to the table, ...
Try something like this


Excel Workbook
ABCDEF
1COUNTITEMHelperList
23COLA1COLA
32GRAPE4COLA
43CHERRY6COLA
50DIETGRAPE
61GINGER ALE9GRAPE
72ORANGE10CHERRY
80LEMONCHERRY
9CHERRY
10GINGER ALE
11ORANGE
12ORANGE
13
List
 
Upvote 0
Thank you very much! This is going to work perfectly.
As usual, I had gotten "lost in the weeds" & was over-complicating it.
 
Upvote 0

Forum statistics

Threads
1,223,275
Messages
6,171,119
Members
452,381
Latest member
Nova88

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