+ Reply to Thread
Results 1 to 9 of 9

Index/Match with multiple sheets

  1. #1
    Registered User
    Join Date
    02-28-2018
    Location
    Livingston, MT
    MS-Off Ver
    365
    Posts
    10

    Index/Match with multiple sheets

    I have a working version of this problem that has everything on one sheet, but it is getting to cumbersome and difficult to track specific items that I need. So, I've split up my lines of business between different tabs, but I still need to be able to lookup specific data when I type in a Unique ID. In the attached example, when I type in the Unique ID on the COMM tab, I need it to look for that Unique ID on the GRP tab and populate the Insured Name. If it doesn't find the Unique ID on the GRP tab, it needs to then look at the O65 tab, etc etc.

    My first attempt at the logic of it, trying to use an IF(AND... formula does not work. I'm not sure what I am doing wrong. Any help with this one? Is this even possible?
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Index/Match with multiple sheets

    Not really sure why you have used AND there? You normally only use AND (and OR) if you are testing more than 1 thing.

    Why do you think having it all on 1 sheet is cumbersome? That is the generally accepted way of data storage/entry/capture in excel. You then have other sheets that would do any extracting, analysis, summaries etc.

    In your case, as long as you have a unique ID, finding what you want should not be a problem. even in a long list - there are a multitude of tools available to help with this.

    As far as your formula is concerned...
    =IFERROR(INDEX(GRP!B:B,MATCH(Comm!A2,GRP!A:A,0)),IFERROR(INDEX('O65'!B:B,MATCH(Comm!A2,'O65'!A:A,0)),IFERROR(INDEX('U65'!B:B,MATCH(Comm!A2,'U65'!A:A,0)),"Not Found")))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  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: Index/Match with multiple sheets

    Use PowerQuery aka Get&Transform (you've 365 so this feature is built-in)

    steps:

    append all source tables
    merge with "search" table
    set value in A2
    use Ctrl+Alt+F5 to refresh query table
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-28-2018
    Location
    Livingston, MT
    MS-Off Ver
    365
    Posts
    10

    Re: Index/Match with multiple sheets

    Thanks, FDibbins. Keeping everything on one sheet does work better for what I'm trying to do on the COMM tab, but when I have to manipulate the data on the main sheet, the formulas tend to get wonky when I have to resort. Not sure why the formulas don't stay with the row I'm resorting. Plus, having multiple tabs allows me to look at just the data I want without having to filter.

    Thanks for the solution. It works great! Since I'm using this to build a report for our accountant to pay commissions on, I need to be able to copy the formula down and this does exactly what I need it to.

  5. #5
    Registered User
    Join Date
    02-28-2018
    Location
    Livingston, MT
    MS-Off Ver
    365
    Posts
    10

    Re: Index/Match with multiple sheets

    sandy666, is that something that will work across multiple columns and multiple rows? What I'm ultimately trying to do is create a report for our account so she can pay our commissions out to our agents. On the example, I only included one match column (insured name) but I have about 6 that I need to "auto fill". And each row is another account to pay commission on.

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

    Re: Index/Match with multiple sheets

    so attach representative example excel file

  7. #7
    Registered User
    Join Date
    11-22-2018
    Location
    hyderabad
    MS-Off Ver
    2010
    Posts
    57
    Quote Originally Posted by Tripacerchick View Post
    I have a working version of this problem that has everything on one sheet, but it is getting to cumbersome and difficult to track specific items that I need. So, I've split up my lines of business between different tabs, but I still need to be able to lookup specific data when I type in a Unique ID. In the attached example, when I type in the Unique ID on the COMM tab, I need it to look for that Unique ID on the GRP tab and populate the Insured Name. If it doesn't find the Unique ID on the GRP tab, it needs to then look at the O65 tab, etc etc.

    My first attempt at the logic of it, trying to use an IF(AND... formula does not work. I'm not sure what I am doing wrong. Any help with this one? Is this even possible?
    Keep one cell for (definevalue) i.e., at A1
    1st define name for corresponding tables, and
    =Vlookup(lookup value, indirect(definename),2,0)
    Give ur mail id

  8. #8
    Registered User
    Join Date
    11-22-2018
    Location
    hyderabad
    MS-Off Ver
    2010
    Posts
    57

    Re: Index/Match with multiple sheets

    Mail me sir, beepetark At gmail dot com

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

    Re: Index/Match with multiple sheets

    Put this on B2 on sheet "Comm"
    =IFERROR(VLOOKUP(A2,INDIRECT("'"&LOOKUP(9,99999999999999E+307,1/COUNTIF(INDIRECT("'"&{"GRP","O65","U65"}&"'!A2:A1000"),A2),
    {"GRP","O65","U65"})&"'!A2:B1000"),2,0),"")
    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. Need help index and match over multiple sheets
    By mnsportsfan in forum Excel General
    Replies: 4
    Last Post: 02-19-2018, 11:21 PM
  2. Need help index and match over multiple sheets
    By mnsportsfan in forum Excel General
    Replies: 1
    Last Post: 02-19-2018, 10:28 PM
  3. [SOLVED] Multiple Index Match on different sheets How?
    By thorrrr in forum Excel General
    Replies: 13
    Last Post: 02-01-2017, 09:55 AM
  4. Replies: 1
    Last Post: 06-18-2015, 08:45 AM
  5. index match across multiple sheets
    By Khaos1208 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-23-2014, 06:48 AM
  6. Multiple Sheets Match & Index filtering by sheets
    By ijulian in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-24-2012, 01:49 PM
  7. index match from multiple sheets
    By avk in forum Excel General
    Replies: 4
    Last Post: 10-13-2011, 04:30 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