+ Reply to Thread
Results 1 to 10 of 10

Index array list based on multiple matching Values

Hybrid View

Jpidge20 Index array list based on... 03-15-2018, 03:38 PM
JohnTopley Re: Index array list based on... 03-15-2018, 03:42 PM
Jpidge20 Re: Index array list based on... 03-19-2018, 11:45 AM
JohnTopley Re: Index array list based on... 03-19-2018, 12:34 PM
Jpidge20 Re: Index array list based on... 03-19-2018, 03:27 PM
Jpidge20 Re: Index array list based on... 03-22-2018, 06:23 PM
JeteMc Re: Index array list based on... 03-26-2018, 08:32 PM
Jpidge20 Re: Index array list based on... 04-13-2018, 03:43 PM
JohnTopley Re: Index array list based on... 04-13-2018, 03:48 PM
JeteMc Re: Index array list based on... 04-13-2018, 09:13 PM
  1. #1
    Registered User
    Join Date
    03-15-2018
    Location
    Austin, TX
    MS-Off Ver
    2010
    Posts
    5

    Index array list based on multiple matching Values

    Hello-

    I have searched and I can't seem to figure out how to do what I am trying to do. I have a sheet with a list of values, exported from another program. I manually import that data into a sheet in my template called "Data". On the Data sheet, column A has department numbers 0-17, column B has three digit equipment numbers (001-999), Column C has letters associated with the number of each piece of equipment being used (A-F, G-H, etc), Column D has "N" or "R" for new or relocated, and Column E has a description. There are multiple instances of equipment numbers in each department.

    The other sheets in the template that are numbered 0-17, for each department. I have figured out how to import all of the equipment numbers into sheets by department number, but I can't figure out how to get columns C, D, and E to import based on the exact equipment number entry in that row.

    Here is what I have to import the equipment into each department sheet:
    {=IF(ISERROR(INDEX(Data!$B:$B,SMALL(IF(Data!$A:$A=$B$2,ROW(Data!$A:$A)),ROW(1:1)),0)),"",INDEX(Data!$B:$B,SMALL(IF(Data!$A:$A=$B$2,ROW(Data!$A:$A)),ROW(1:1)),0))}

    $B$2 is the cell where I enter the department number on each sheet.

    As you can see from the images below, I have figured out how to get it to grab the quantity letter from the row that matches the Department number and Equipment number, but I can't figure out how to get it to show the next one in each series. The entries on C9:C11 on the equipment sheet should be A, B, then C, but they all show up "A". The formula that I am currently using for those cells is
    {=IFERROR(INDEX(Data!$C:$C,MATCH($B$2&B9,Data!$A:$A&Data!$B:$B,0),1),0)}

    Data Sheet:
    Data Sheet.JPG

    Department Sheet:
    Department Sheet.JPG

    Thank you!
    Pidgeon
    Attached Files Attached Files
    Last edited by Jpidge20; 03-15-2018 at 04:15 PM. Reason: Uploaded sample file

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,711

    Re: Index array list based on multiple matching Values

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    03-15-2018
    Location
    Austin, TX
    MS-Off Ver
    2010
    Posts
    5

    Re: Index array list based on multiple matching Values

    Anyone know anything about this? Or can you direct me to a thread with an explanation.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,711

    Re: Index array list based on multiple matching Values

    Try

    for each department sheet : assumes Data is organised as per your current DATA sheet)

    in B8

    =IF(ROWS($1:1)<=COUNTIF(Data!$A$1:$A$1000,$B$2),INDEX(Data!B$1:B$1000,MATCH($B$2,Data!$A$1:$A$1000,0)+ROWS($1:1)-1),"")

    Copy down and across to D

    if F8

    =IF(ROWS($1:1)<=COUNTIF(Data!$A$1:$A$1000,$B$2),INDEX(Data!E$1:E$1000,MATCH($B$2,Data!$A$1:$A$1000,0)+ROWS($1:1)-1),"")

    See "Dept_0" / "Dept_1" in attached.
    Attached Files Attached Files
    Last edited by JohnTopley; 03-19-2018 at 01:15 PM.

  5. #5
    Registered User
    Join Date
    03-15-2018
    Location
    Austin, TX
    MS-Off Ver
    2010
    Posts
    5

    Re: Index array list based on multiple matching Values

    Quote Originally Posted by JohnTopley View Post
    Try

    for each department sheet : assumes Data is organised as per your current DATA sheet)

    in B8

    =IF(ROWS($1:1)<=COUNTIF(Data!$A$1:$A$1000,$B$2),INDEX(Data!B$1:B$1000,MATCH($B$2,Data!$A$1:$A$1000,0)+ROWS($1:1)-1),"")

    Copy down and across to D

    if F8

    =IF(ROWS($1:1)<=COUNTIF(Data!$A$1:$A$1000,$B$2),INDEX(Data!E$1:E$1000,MATCH($B$2,Data!$A$1:$A$1000,0)+ROWS($1:1)-1),"")

    See "Dept_0" / "Dept_1" in attached.
    It appears to be working perfectly! You're a life saver!

  6. #6
    Registered User
    Join Date
    03-15-2018
    Location
    Austin, TX
    MS-Off Ver
    2010
    Posts
    5

    Re: Index array list based on multiple matching Values

    Follow up question: The previous formula worked perfectly for what I needed. Now I am trying to pull in more information in a similar way, but I can't figure out how to modify the formula to get it to work. I had it working for a minute, but then it would stop importing information after the first 4 rows.

    My goal is to have each of the department sheets autofill columns K:AH from "Master" columns H:AE, based off of the equipment# (B), then Model description (G). It may not seem obvious why I need to do this because I have simplified the information in the sheets. Normally there are multiple equipment specs for each equipment number, so I need to filter the results to get the correct specs.

    The Dept_0 and Dept_1 sheets have the formula I tried to use. The Goal sheet has (more or less) what I am trying to achieve. The columns that I need to filter by are in pink and the columns I need to fill are under the blue header.

    Thank you!
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,855

    Re: Index array list based on multiple matching Values

    I put the following in K8 of the 'Goal' sheet, dragged the fill handle over to AH8 then down to AH30. I got the same values as were previously manually placed in that range, so I used the same formula on the 'Dept_0' and 'Dept_1' sheets and got results that seemed reasonable.
    Formula: copy to clipboard
    =IFERROR(INDEX(Master!H$4:H$500,AGGREGATE(15,6,(ROW($4:$500)-3)/((Master!$A$4:$A$500=$B8)*(Master!$D$4:$D$500=$G8)),1)),"")

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  8. #8
    Registered User
    Join Date
    03-15-2018
    Location
    Austin, TX
    MS-Off Ver
    2010
    Posts
    5

    Re: Index array list based on multiple matching Values

    Quote Originally Posted by JeteMc View Post
    I put the following in K8 of the 'Goal' sheet, dragged the fill handle over to AH8 then down to AH30. I got the same values as were previously manually placed in that range, so I used the same formula on the 'Dept_0' and 'Dept_1' sheets and got results that seemed reasonable.
    Formula: copy to clipboard
    =IFERROR(INDEX(Master!H$4:H$500,AGGREGATE(15,6,(ROW($4:$500)-3)/((Master!$A$4:$A$500=$B8)*(Master!$D$4:$D$500=$G8)),1)),"")

    Let us know if you have any questions.
    You're awesome! I plugged it in and it seems to work perfectly!

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,711

    Re: Index array list based on multiple matching Values

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

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,855

    Re: Index array list based on multiple matching Values

    Thank You for the compliment, I hope that you have a blessed day.

+ 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 array to return me a list of values
    By xatomicx in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-04-2017, 05:31 PM
  2. [SOLVED] Lookup or index on multiple parameters and pull table heading for matching values
    By pcrewlok in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-24-2015, 07:07 PM
  3. Find missing values - based on looking up a list, comparing against index values
    By anakaine in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 01-22-2013, 01:31 AM
  4. Replies: 14
    Last Post: 11-30-2012, 02:54 PM
  5. Highlighting cells based on them matching another list of values
    By david1987 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-22-2012, 08:26 AM
  6. Index/Match/Array based on Values - complicated problem =(
    By mattjac1 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-12-2012, 01:37 PM
  7. Replies: 4
    Last Post: 05-24-2012, 06:44 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