+ Reply to Thread
Results 1 to 8 of 8

Using Index(Match) to populate list

  1. #1
    Forum Contributor
    Join Date
    06-27-2013
    Location
    Nebraska
    MS-Off Ver
    Office 365
    Posts
    115

    Using Index(Match) to populate list

    Hello,

    I have workbook with two different tabs for material. On the Matl tab the user would enter the material's part number that they are wanting to use. This value in column A is then used elsewhere. I have added a second tab, Matl2, that I am wanting to automatically populate values in column A if they are entered on the Matl tab. I was able to get this to work using an index match for some of the material numbers. The ones I am having trouble with are the materials in column B with a "-##" behind them. For instance, on row 18 I have a 702032 in column A of the Matl tab. I am wanting that same 702032 to be populated on the Matl2 tab. I have attached the sheet I am working with to help. There are usually twice as many materials on the Matl tab because we have different pricing for different locations.

    Thank you
    Attached Files Attached Files
    Last edited by erice; 05-10-2018 at 04:14 PM.

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Using Index(Match) to populate list

    I don't know if I'm understanding the goal correctly, but try the following in A4 of sheet2:

    =IFERROR(IF(INDEX(Chosen_Steel,MATCH(B4,Steel_Part,0))=0,"",INDEX(Chosen_Steel,MATCH(B4,Steel_Part,0))),"")

    ...then fill down. Does that do the trick?
    Attached Files Attached Files
    If your problem has been solved, please use "Thread Tools" to mark the thread as "Solved".

    If you're grateful for this site's existence and would like to contribute to the community, please consider posting something hilarious in our joke thread:
    https://www.excelforum.com/the-water...ke-thread.html

  3. #3
    Forum Contributor
    Join Date
    06-27-2013
    Location
    Nebraska
    MS-Off Ver
    Office 365
    Posts
    115

    Re: Using Index(Match) to populate list

    CAntosh,

    thank you for your reply. That appears to be working like I was hoping for.

    Thanks again!

  4. #4
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Using Index(Match) to populate list

    Glad to help, good luck!

  5. #5
    Forum Contributor
    Join Date
    06-27-2013
    Location
    Nebraska
    MS-Off Ver
    Office 365
    Posts
    115

    Re: Using Index(Match) to populate list

    I thought this was working, but when I went to add it to the full scale sheet I noticed a problem. In the workbook attached the user will enter the material number in column A for the facility that it would be coming from. The available materials to pick from at Facility 1 (rows 5 to 25) and Facility 2 (rows 27 to 47) are the same in column B, but have different pricing due to coming from different locations. On the Matl2 tab I am wanting column A to populate if that material was entered on the Matl tab. This is working for all materials coming from Facility 1, but when I enter anything in the Facility 2 section it does not populate on the Matl2 tab. For instance, A10 on the Matl2 tab should read 702008 if the formulas were working correctly.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Using Index(Match) to populate list

    hmmm... I think I see what you mean. It was only looking at the first occurrence of the matching B value on sheet one. Try this version:

    On Matl2, A4: =IF(COUNTIFS(Chosen_Steel,IFERROR(LEFT(Matl2!B4,FIND("-",Matl2!B4)-1),B4),Steel_Part,Matl2!B4)>0,IFERROR(LEFT(Matl2!B4,FIND("-",Matl2!B4)-1),B4),"")

    It should return a match if there are any matches on sheet1 for the col. B value that also offer the pre-hyphen value in col A. Take a look:
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    06-27-2013
    Location
    Nebraska
    MS-Off Ver
    Office 365
    Posts
    115

    Re: Using Index(Match) to populate list

    CAntosh,

    That appears to be working properly now. I will put that formula into my full scale workbook and have a few people trial it for errors on Monday. Thanks again for your quick replies!

  8. #8
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Using Index(Match) to populate list

    Excellent, good luck!

+ 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. INDEX MATCH MATCH will not auto populate and takes LONG
    By njm0059 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-26-2018, 04:32 AM
  2. How do I populate an Order Sheet from a Product List using INDEX MATCH?
    By HWall97 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-10-2017, 09:47 PM
  3. Replies: 5
    Last Post: 02-18-2017, 11:21 AM
  4. [SOLVED] Using Match, Index and concatate to populate a fixture table.
    By foozbear in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-02-2015, 02:54 AM
  5. [SOLVED] Index Match/Populate data based on key value
    By mzafar in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-03-2013, 01:49 PM
  6. Index, Match and populate data
    By danmar7 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-26-2010, 03:19 PM
  7. Populate listbox using vlookup or index,match?
    By sarahng86 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2007, 08:42 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