Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Dynamic List from Table

  1. #11
    MrExcel MVP
    Moderator
    Peter_SSs's Avatar
    Join Date
    May 2005
    Location
    Macksville, Australia
    Posts
    40,976
    Post Thanks / Like
    Mentioned
    90 Post(s)
    Tagged
    21 Thread(s)

    Default Re: Dynamic List from Table

    Quote Originally Posted by TheRogue View Post
    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.

    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.

    List

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

    Spreadsheet Formulas
    CellFormula
    C1=SUM(A2:A8)
    C2=IF(A2,SUM(A$1:A1)+1,"")
    B11=IF(ROWS(B$11:B11)>C$1,"",LOOKUP(ROWS(B$11:B11),C$2:C$8,B$2:B$8))


    Excel tables to the web >> Excel Jeanie HTML 4
    Hope this helps, good luck.
    Peter
    Excel 365 - Windows 10
    - Want to help your helpers by posting a small, copyable, screen shot directly in your post? Look here
    - If posting vba code, please use Code Tags - like this [code]Paste code here[/code] - or use the # key in the Reply window
    - Read: Forum Rules, Forum Use Guidelines, & FAQ

  2. #12
    New Member TheRogue's Avatar
    Join Date
    Aug 2019
    Location
    Sarasota, FL
    Posts
    23
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Dynamic List from Table

    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.

  3. #13
    MrExcel MVP
    Moderator
    Peter_SSs's Avatar
    Join Date
    May 2005
    Location
    Macksville, Australia
    Posts
    40,976
    Post Thanks / Like
    Mentioned
    90 Post(s)
    Tagged
    21 Thread(s)

    Default Re: Dynamic List from Table

    Quote Originally Posted by TheRogue View Post
    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


    List

    ABCDEF
    1COUNTITEMHelper List
    23COLA1 COLA
    32GRAPE4 COLA
    43CHERRY6 COLA
    50DIET GRAPE
    61GINGER ALE9 GRAPE
    72ORANGE10 CHERRY
    80LEMON CHERRY
    9 CHERRY
    10 GINGER ALE
    11 ORANGE
    12 ORANGE
    13

    Spreadsheet Formulas
    CellFormula
    C2=IF([@COUNT],SUM(INDEX([COUNT],1):[@COUNT])-[@COUNT]+1,"")
    F2=IF(ROWS(F$2:F2)>SUM(Table1[COUNT]),"",LOOKUP(ROWS(F$2:F2),Table1[Helper],Table1[ITEM]))


    Excel tables to the web >> Excel Jeanie HTML 4
    Hope this helps, good luck.
    Peter
    Excel 365 - Windows 10
    - Want to help your helpers by posting a small, copyable, screen shot directly in your post? Look here
    - If posting vba code, please use Code Tags - like this [code]Paste code here[/code] - or use the # key in the Reply window
    - Read: Forum Rules, Forum Use Guidelines, & FAQ

  4. #14
    New Member TheRogue's Avatar
    Join Date
    Aug 2019
    Location
    Sarasota, FL
    Posts
    23
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Dynamic List from Table

    Thank you very much! This is going to work perfectly.
    As usual, I had gotten "lost in the weeds" & was over-complicating it.

  5. #15
    MrExcel MVP
    Moderator
    Peter_SSs's Avatar
    Join Date
    May 2005
    Location
    Macksville, Australia
    Posts
    40,976
    Post Thanks / Like
    Mentioned
    90 Post(s)
    Tagged
    21 Thread(s)

    Default Re: Dynamic List from Table

    No problem, glad to help.
    Hope this helps, good luck.
    Peter
    Excel 365 - Windows 10
    - Want to help your helpers by posting a small, copyable, screen shot directly in your post? Look here
    - If posting vba code, please use Code Tags - like this [code]Paste code here[/code] - or use the # key in the Reply window
    - Read: Forum Rules, Forum Use Guidelines, & FAQ

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •