creating a dynamic list based on values in a table

rwells

New Member
Joined
Sep 21, 2016
Messages
10
Office Version
  1. 365
Platform
  1. Windows
I am attempting to create one entry for each instance of the items listed in a table (all in one column) so the list of entries can be imported into another program.
The number of entries required for each item is equal to the value in it's corresponding cell.

Naming convention for the output entry should be: Y-axis label_X-axis label_sequence #

These values are dynamic. The number of entries in the output column need to be able to change based on the value in each cell.

Sample data attached.

I'm using Office 365, and am open to either a formula or VBA.

Thanks in advance for any help!
 

Attachments

  • mock data - dynamic list creation.png
    mock data - dynamic list creation.png
    18.7 KB · Views: 35

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
For formula, try:
Book1 (version 2).xlsb
ABCDEF
1
2ApplesBananasPears
3North132North_Apples_1
4South022North_Bananas_1
5East103North_Bananas_2
6West211North_Bananas_3
7North_Pears_1
8total18North_Pears_2
9South_Bananas_1
10South_Bananas_2
11South_Pears_1
12South_Pears_2
13East_Apples_1
14East_Pears_1
15East_Pears_2
16East_Pears_3
17West_Apples_1
18West_Apples_2
19West_Bananas_1
20West_Pears_1
Sheet6
Cell Formulas
RangeFormula
F3:F20F3=LET( val,TOCOL(IFS(B3:D6>0,B3:D6),2), coor,TOCOL(IFS(B3:D6>0,A3:A6 &"_"&B2:D2),2), TOCOL(IFS(val>=SEQUENCE(,MAX(val)),coor),2) & "_" & DROP(REDUCE("",val,LAMBDA(a,b,VSTACK(a,SEQUENCE(b)))),1))
D8D8=SUM(B3:D6)
Dynamic array formulas.
 
Upvote 0
I'm using Office 365

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
For formula, try:
Book1 (version 2).xlsb
ABCDEF
1
2ApplesBananasPears
3North132North_Apples_1
4South022North_Bananas_1
5East103North_Bananas_2
6West211North_Bananas_3
7North_Pears_1
8total18North_Pears_2
9South_Bananas_1
10South_Bananas_2
11South_Pears_1
12South_Pears_2
13East_Apples_1
14East_Pears_1
15East_Pears_2
16East_Pears_3
17West_Apples_1
18West_Apples_2
19West_Bananas_1
20West_Pears_1
Sheet6
Cell Formulas
RangeFormula
F3:F20F3=LET( val,TOCOL(IFS(B3:D6>0,B3:D6),2), coor,TOCOL(IFS(B3:D6>0,A3:A6 &"_"&B2:D2),2), TOCOL(IFS(val>=SEQUENCE(,MAX(val)),coor),2) & "_" & DROP(REDUCE("",val,LAMBDA(a,b,VSTACK(a,SEQUENCE(b)))),1))
D8D8=SUM(B3:D6)
Dynamic array formulas.
Genius! Thank you very much!
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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