+ Reply to Thread
Results 1 to 15 of 15

Formula to auto populate list

  1. #1
    Forum Contributor
    Join Date
    11-02-2007
    Posts
    109

    Formula to auto populate list

    I have a master sheet with a dropdown list. When I select an item from the list, I want to auto populate several lines under this entry. I have tried to use Index Match however cannot work out how to make it select the correct cells.

    To give some context, the reference sheet has a list of products and components. In the attached example, on the Reference tab it has Product A 200ml (top level), and then Bottle 200ml, Label 200ml, Shipper 200ml. All of these are components of the top level entry Product A 200ml. The list then continues with Product A 500ml, with the same subset with components related to that product.

    On the master sheet, if I select the code 106343 from the dropdown, an Index Match correctly returns the information for Product A 200ml. What I can't figure out is if I make this selection, how do I then automatically populate the Bottle 200ml, Label 200ml & shipper 200ml fields directly under this entry so they don't need to be entered manually?

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Formula to auto populate list

    Try this in C5:

    =IFERROR(INDEX(Reference!B:B,SMALL(IF(ISNUMBER(SEARCH(VLOOKUP($A$4,Reference!$A:$B,2,0)&"-",Reference!$B$4:$B$16)),ROW(Reference!$A$4:$A$16)),ROWS($1:1))),"") Ctrl Shift Enter

    Drag the formula to the right and down.

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Formula to auto populate list

    If you are able to use PowerQuery

    Power Query for
    you can try this:
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    11-02-2007
    Posts
    109

    Re: Formula to auto populate list

    Hi,

    Thanks very much. I have tried this formula and even with doing Ctrl Shift Enter cannot make any more than the data in B2 & C2 on the reference sheet appear. i.e only the first line. Not sure if why is not working?? Have reattached with formula included.

    Thanks
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    11-02-2007
    Posts
    109

    Re: Formula to auto populate list

    Hi,

    Thanks that is great information. I am not familiar with PowerQuery however am working through it now. Hopefully can install this to make it work, and will be very helpful for future challenges too

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Formula to auto populate list

    I hope so

  7. #7
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: Formula to auto populate list

    Put on B4 :
    =VLOOKUP(A4,'Reference sheet'!A22:C24,3,FALSE)

    Put this on C4, then copied down and cross:
    =IFERROR(INDEX('Reference sheet'!B$4:B$16,SMALL(IF(LOOKUP(ROW('Reference sheet'!$A$4:$A$16),ROW('Reference sheet'!$A$4:$A$16)/('Reference sheet'!$A$4:$A$16<>""),'Reference sheet'!$A$4:$A$16)=$A$4,ROW('Reference sheet'!$B$4:$B$16)-ROW('Reference sheet'!$B$4)+1),ROWS(A$1:A1))),"")
    Attached Files Attached Files

  8. #8
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Formula to auto populate list

    In the sample from post #4, you didn't confirm the formula with Ctrl Shift Enter. Once you do, you would see {} around the formula.

  9. #9
    Forum Contributor
    Join Date
    11-02-2007
    Posts
    109

    Re: Formula to auto populate list

    Awesome, works beautifully! Much appreciated

  10. #10
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Formula to auto populate list

    You're welcome, glad we could help.

    Thanks for the rep!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  11. #11
    Forum Contributor
    Join Date
    11-02-2007
    Posts
    109

    Re: Formula to auto populate list

    Hi,

    I am still having trouble with this formula and am hoping someone can assist. I used azumi's formula in post 4 however cannot make it return the values.

    Formula in original post was:

    =IFERROR(INDEX('Reference sheet'!B$4:B$16,SMALL(IF(LOOKUP(ROW('Reference sheet'!$A$4:$A$16),ROW('Reference sheet'!$A$4:$A$16)/('Reference sheet'!$A$4:$A$16<>""),'Reference sheet'!$A$4:$A$16)=$A$4,ROW('Reference sheet'!$B$4:$B$16)-ROW('Reference sheet'!$B$4)+1),ROWS(A$1:A1))),"")

    I have attached an updated sheet to show what I am trying to achieve. It lists the above formula in cell I4 of the Sheet1 tab. I am trying to return the product part codes from specific columns on the 'List' tab when a specific product code is entered in cell B3 on the 'Sheet1' tab.

    Thanks
    Attached Files Attached Files

  12. #12
    Forum Contributor
    Join Date
    10-30-2003
    Location
    Singapore
    MS-Off Ver
    Excel 2019
    Posts
    197

    Re: Formula to auto populate list

    Quote Originally Posted by Ozwilly View Post
    Hi,

    I am still having trouble with this formula and am hoping someone can assist. I used azumi's formula in post 4 however cannot make it return the values.

    Formula in original post was:

    =IFERROR(INDEX('Reference sheet'!B$4:B$16,SMALL(IF(LOOKUP(ROW('Reference sheet'!$A$4:$A$16),ROW('Reference sheet'!$A$4:$A$16)/('Reference sheet'!$A$4:$A$16<>""),'Reference sheet'!$A$4:$A$16)=$A$4,ROW('Reference sheet'!$B$4:$B$16)-ROW('Reference sheet'!$B$4)+1),ROWS(A$1:A1))),"")

    I have attached an updated sheet to show what I am trying to achieve. It lists the above formula in cell I4 of the Sheet1 tab. I am trying to return the product part codes from specific columns on the 'List' tab when a specific product code is entered in cell B3 on the 'Sheet1' tab.

    Thanks
    Hi,

    In H4, CSE formula (confirmed enter with Ctrl+Shift+Enter) copied across to J4 and all copied down :

    =IFERROR(INDEX(List!D$4:D$998,SMALL(IF((LOOKUP(ROW(List!$A$4:$A$998),ROW(List!$A$4:$A$998)/(List!$A$4:$A$998<>""),List!$A$4:$A$998)=$A$4)*(List!$E$4:$E$998<>""),ROW(List!$E$4:$E$998)-ROW(List!$E$4)+1),ROWS($A$1:$A1))),"")

    Regards
    Bosco

  13. #13
    Forum Contributor
    Join Date
    11-02-2007
    Posts
    109

    Re: Formula to auto populate list

    Thanks @Bosco,

    I tried what you said and it is still not working. I have added the formula into the file to show you. Appreciate your advice on how to fix it!

    Rgds

    Will
    Attached Files Attached Files
    Last edited by Ozwilly; 08-05-2018 at 09:34 PM.

  14. #14
    Forum Contributor
    Join Date
    11-02-2007
    Posts
    109

    Re: Formula to auto populate list

    Hi, hoping someone can assist to resolve this for me please?

    Thanks

  15. #15
    Forum Contributor
    Join Date
    10-30-2003
    Location
    Singapore
    MS-Off Ver
    Excel 2019
    Posts
    197

    Re: Formula to auto populate list

    Quote Originally Posted by Ozwilly View Post
    Thanks @Bosco,

    I tried what you said and it is still not working. I have added the formula into the file to show you. Appreciate your advice on how to fix it!

    Rgds

    Will
    Sorry, misread your specification, the criteria should be in Column B and the fixed formula to be as follow :


    =IFERROR(INDEX(List!D$4:D$998,SMALL(IF((LOOKUP(ROW(List!$A$4:$A$998),ROW(List!$A$4:$A$998)/(List!$A$4:$A$998<>""),List!$A$4:$A$998)=$B4)*(List!$E$4:$E$998<>""),ROW(List!$E$4:$E$998)-ROW(List!$E$4)+1),ROWS($A$1:$A1))),"")

    Regards
    Bosco
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Auto-populate on one tab based on a list and value from another
    By thedunna in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-10-2018, 08:38 PM
  2. Using a master list of to auto-populate another list
    By Season1987 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-03-2017, 09:57 AM
  3. [SOLVED] Auto populate list
    By jcason in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 03-25-2014, 08:50 AM
  4. Auto populate list
    By sick stigma in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-29-2013, 02:02 PM
  5. auto populate list
    By sick stigma in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-29-2013, 11:04 AM
  6. Replies: 3
    Last Post: 02-28-2012, 11:54 AM
  7. auto populate from a list
    By Alien in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-07-2006, 06:45 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1