+ Reply to Thread
Results 1 to 4 of 4

Lookup across multiple sheets with 2 criteria

  1. #1
    Registered User
    Join Date
    02-29-2012
    Location
    Linthicum, MD
    MS-Off Ver
    Excel 2013
    Posts
    52

    Lookup across multiple sheets with 2 criteria

    Good afternoon.

    I'm guessing this might be an indirect formula which I'm not sure how to do. I need to match two columns and if both columns match, return the value in the visits column. Please see the attached worksheet. I put in a tab called formula which shows what I need.

    I would appreciate any help I can get. Thank you so much.
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,000

    Re: Lookup across multiple sheets with 2 criteria

    One way, with this array formula. if it does what you want, I'll happily explain it for you...

    Array Formulae are a little different from ordinary formulas in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly braces { } appear around the outside of your formula. If you do not CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly braces yourself - it won't work...

    In C4, copied down:
    =IFERROR(INDEX(INDIRECT("'"&INDEX($H$1:$H$3,MATCH(TRUE,COUNTIF(INDIRECT("'"&$H$1:$H$3&"'!a3:a10"),A4)>0,0))&"'!c3:c10"),MATCH(A4,INDIRECT("'"&INDEX($H$1:$H$3,MATCH(TRUE,COUNTIF(INDIRECT("'"&$H$1:$H$3&"'!A3:A10"),A4)>0,0))&"'!A3:A10"),0)),"")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    02-29-2012
    Location
    Linthicum, MD
    MS-Off Ver
    Excel 2013
    Posts
    52

    Re: Lookup across multiple sheets with 2 criteria

    Hi Glenn and thank you for answering my query.

    I think I understand most of the formula, but it appears that it is only looking at the "customer" column for the match. I sometimes have repeating customer names but what is in the "Name" column is different. Is this formula matching both columns?

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,000

    Re: Lookup across multiple sheets with 2 criteria

    this will match on Name. it is (of course) possible to match on both, but the formula will be really horrible.

    Does this meet your needs:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Glenn Kennedy; 10-05-2016 at 03:00 PM.

+ 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. Lookup across Multiple Sheets using Multiple Criteria
    By kevphanv in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-22-2015, 12:51 PM
  2. [SOLVED] Lookup Values based on criteria from two sheets
    By mlbdc2012 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-12-2015, 07:56 PM
  3. Replies: 9
    Last Post: 08-20-2014, 04:43 PM
  4. [SOLVED] Lookup and sum multiple values based on a single criteria in multiple sheets.
    By paulsanett in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-17-2014, 12:18 PM
  5. Replies: 2
    Last Post: 09-19-2013, 04:22 AM
  6. Replies: 1
    Last Post: 05-16-2011, 05:00 PM
  7. Lookup sheets & sumifs criteria
    By tek9step in forum Excel General
    Replies: 2
    Last Post: 05-28-2009, 04:32 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