+ Reply to Thread
Results 1 to 12 of 12

Index, Match - HELP!

  1. #1
    Registered User
    Join Date
    07-07-2016
    Location
    St. Louis MO
    MS-Off Ver
    10
    Posts
    6

    Index, Match - HELP!

    Hello, world! (ORIGINAL POST HERE)

    I am trying to generate a formula, could be VBA or not, that would return multiple values. Basically, there are 4 tabs in the entire "tool" but the user only sees the first tab.

    Tool (tab 1)

    Zip (user entered data)
    This row is merged, and has a purpose
    KMA Populated via Vlookup
    GLID Populated via Vlookup
    Entity Populated via Vlookup

    The problem is, sometimes there are multiple zip codes present - in this case the last 4 of the zip code is not always known so it is not used in this tool. I need a formula or VBA code that will return the values of A,B, C, D onto the tool tab, just below the actual tool itself, see below.

    Data Sheet (tab 2)

    * A B C D E
    1 ZIP CODE KMA GLID Entity Count of Times ZIP appears
    2 1515 * * * 1
    3 1516 * * * 1
    4 1517 * * * 3
    5 1517 * * * 3
    6 1517 * * * 3
    7 1518 * * * 1
    8 1519 * * * 1
    9 1520 * * * 2
    10 1520 * * * 2


    Tool (tab 1)

    Zip (user entered data)
    *see below*
    KMA Populated via Vlookup
    GLID Populated via Vlookup
    Entity Populated via Vlookup

    *If the "count of zip" column (column E on data tab) returns a value of ">= 2", this row turns red with a simple text warning.

    There is also a hidden table below this main tool that can be used to display the results of the 'values of A,B, C, D' on the data sheet, tab 2.


    Here is my progress on this issue. I have this code on the tab 1 (tool), which is only pulling the first row, where I need it to pull from the same column, just the next one below. Any ideas?

    {=INDEX(FINAL!$D$2:$D$3256, SMALL(IF($C$2=FINAL!$A$2:$A$3256, ROW(FINAL!$A$2:$A$3256)-MIN(ROW(FINAL!$A$2:$A$3256))+1, ""), COLUMN(FINAL!$A$2:$A$3256)))}

    Let me be more specific. In this case, there are 9 instances of the zip code, '20153'. The only difference is they each have a different 'GLID'. I need to see each GLID this specific zip code references. See below, this should help.

    GLID KMA ENTITY
    GLID 1 * *
    GLID 2 * *
    GLID 3 * *
    GLID 4 * *
    GLID 5 * *
    GLID 6 * *
    GLID 7 * *
    GLID 8 * *
    GLID 9 * *

    The * 's represent other data, that in this case did not change, but i need the same code for the GLID column to work on the other two columns too.
    Last edited by passedpawns; 10-13-2016 at 12:18 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,809

    Re: Index, Match - HELP!

    Welcome to the forums! Unfortunately, your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    07-07-2016
    Location
    St. Louis MO
    MS-Off Ver
    10
    Posts
    6

    Re: Index, Match - HELP!

    Quote Originally Posted by AliGW View Post
    Welcome to the forums! Unfortunately, your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    I did not know this was an issue, but I have updated my original post to include the link. Thanks for the info!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,809

    Re: Index, Match - HELP!

    Thank you for complying with the rules. You should do the same on the other forum in question.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,809

    Re: Index, Match - HELP!

    Having read your query on both forums, I feel it would be useful to see your workbook.

    Attach the workbook here. 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.

  6. #6
    Registered User
    Join Date
    07-07-2016
    Location
    St. Louis MO
    MS-Off Ver
    10
    Posts
    6

    Re: Index, Match - HELP!

    Desensitized file attached! Let me know if you have any questions.
    Attached Files Attached Files

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,809

    Re: Index, Match - HELP!

    Thanks. Could you explain where you have mocked up the desired results? I'm not quite clear about what you are asking/trying to do.

  8. #8
    Registered User
    Join Date
    07-07-2016
    Location
    St. Louis MO
    MS-Off Ver
    10
    Posts
    6

    Re: Index, Match - HELP!

    The goal of the tool is to have the user input a zip code on the first tab, labeled --search--, and if there are any duplicate instances of the zip code, the red error bar will appear. (for example, type in '63074' into C2 and youll see what it should look like if there are no duplicates found; then type '20153' and youll see the desired result.) In the case of 20153, there are different GLID's (found in the second tab) associated with that zip code, so i want the user to see the different options of GLID's available for that zip code.

    I hope this makes sense! Its so much easier to explain over the phone/sharing screens but that is probably in the no-no list of the rule book!

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,809

    Re: Index, Match - HELP!

    Ah, I see - so what you are looking for really is a dependent drop-down list appear in C6 - is that it?

  10. #10
    Registered User
    Join Date
    07-07-2016
    Location
    St. Louis MO
    MS-Off Ver
    10
    Posts
    6

    Re: Index, Match - HELP!

    Similar, but instead of the drop down list in C6, all the results would display below the tool, from B10:F21

  11. #11
    Registered User
    Join Date
    07-07-2016
    Location
    St. Louis MO
    MS-Off Ver
    10
    Posts
    6

    Re: Index, Match - HELP!

    Quote Originally Posted by passedpawns View Post
    Similar, but instead of the drop down list in C6, all the results would display below the tool, from B10:F21
    SOLVED!

    If you are interested in how I did this, here is the code below. Basically, I created three new tabs, with only the information I was searching for and used index for the rest. Of course, these are array functions so I had to use the 'CTRL+SHIFT+ENTER' to make it all work, then dragged it down on the main tool page.

    =IF(ISERROR(INDEX(GLID!$A$2:$B$3256,SMALL(IF(GLID!$A$2:$B$3256=$C$2,ROW($A$2:$A$3256)),ROW(1:1)),2)),"",INDEX(GLID!$A$2:$B$3256,SMALL(IF(GLID!$A$2:$B$3256=$C$2,ROW($A$2:$A$3256)),ROW(1:1)),2))

    =IF(ISERROR(INDEX(KMA!$A$2:$B$3256,SMALL(IF(KMA!$A$2:$B$3256=$C$2,ROW($A$2:$A$3256)),ROW(1:1)),2)),"",INDEX(KMA!$A$2:$B$3256,SMALL(IF(KMA!$A$2:$B$3256=$C$2,ROW($A$2:$A$3256)),ROW(1:1)),2))

    =IF(ISERROR(INDEX('LEGAL ENTITY'!$A$2:$B$3256,SMALL(IF('LEGAL ENTITY'!$A$2:$B$3256=$C$2,ROW($A$2:$A$3256)),ROW(1:1)),2)),"",INDEX('LEGAL ENTITY'!$A$2:$B$3256,SMALL(IF('LEGAL ENTITY'!$A$2:$B$3256=$C$2,ROW($A$2:$A$3256)),ROW(1:1)),2))

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,809

    Re: Index, Match - HELP!

    Glad you found your solution.

+ 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] Match-Index in stead of Index-Match lookup Array among Arrays
    By Numnum in forum Excel General
    Replies: 2
    Last Post: 10-15-2015, 02:08 PM
  2. INDEX MATCH MATCH/OFFSET MATCH MATCH with named ranges
    By Andrew-Mark in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 10:56 PM
  3. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  4. [SOLVED] Index Match from a cell populated from index match
    By MarcLewis in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-15-2013, 05:30 AM
  5. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  6. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  7. Replies: 5
    Last Post: 02-29-2012, 08:51 PM

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