+ Reply to Thread
Results 1 to 5 of 5

Vlookup to pull values from 3 worksheets.

Hybrid View

  1. #1
    Registered User
    Join Date
    02-05-2019
    Location
    St. Louis, MO
    MS-Off Ver
    365
    Posts
    13

    Vlookup to pull values from 3 worksheets.

    I am working on building a template to create the same type of email list and having difficult with pulling certain values to the Import Page.

    I have macros bringing over all the emails and now I need to match the email with the other information on the page: name, client name, client id. The trouble is these emails could be in 1 of three sheets, or multiple sheets.

    The formula I am trying to use is:
    =IF(ISNA(VLOOKUP(E2,'Client Contacts'!A:I,1,0)),IF(ISNA(VLOOKUP(E2,'Client Users'!A:I,2,0)),VLOOKUP(E2,'Partner Users'!A:I,2,0),VLOOKUP(E2,'Client Users'!A:I,2,0)),VLOOKUP(E2,'Client Contacts'!A:I,1,0))

    This is my first time asking for help with something like this, I can typically research and discover my errors, but I am needing some outside help!
    Last edited by Paul; 09-26-2019 at 01:16 PM. Reason: Removed attached file due to contents (sensitive/private information).

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,541

    Re: Vlookup to pull values from 3 worksheets.

    Try it like this in B2 of the Import sheet:

    =IFERROR(INDEX('Client Contacts'!A:A,MATCH(E2,'Client Contacts'!H:H,0)),IFERROR(INDEX('Client Users'!B:B,MATCH(E2,'Client Users'!D:D,0)),IFERROR(INDEX('Partner Users'!B:B,MATCH(E2,'Partner Users'!D:D,0)),"")))

    Then copy down.

    Hope this helps.

    Pete

  3. #3
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Vlookup to pull values from 3 worksheets.

    When you use vlookup, the email (or whatever you're searching for) must be in the leftmost column of the lookup range, with the expected result to the right. For the reverse, which you have, INDEX and MATCH combinations are required.

    Try

    =IFERROR(INDEX('Client Contacts'!$A$2:$A$3622,MATCH(E2,'Client Contacts'!$H$2:$H$3622,0)),IFERROR(INDEX('Client Users'!$B$2:$B$1395,MATCH(E2,'Client Users'!$D$2:$D$1395,0)),IFERROR(INDEX('Partner Users'!$B$2:$B$230,MATCH(E2,'Partner Users'!$D$2:$D$230,0)),"")))

  4. #4
    Registered User
    Join Date
    02-05-2019
    Location
    St. Louis, MO
    MS-Off Ver
    365
    Posts
    13

    Re: Vlookup to pull values from 3 worksheets.

    Thank you! Yes this did it!

    =IFERROR(INDEX('Client Contacts'!A:A,MATCH(E2,'Client Contacts'!H:H,0)),IFERROR(INDEX('Client Users'!B:B,MATCH(E2,'Client Users'!D:D,0)),IFERROR(INDEX('Partner Users'!B:B,MATCH(E2,'Partner Users'!D:D,0)),"")))

    I've used index and match before, but not to this level. You both are life savers!

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,541

    Re: Vlookup to pull values from 3 worksheets.

    Glad to help.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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] Macro to pull columns of data from multiple worksheets into summary worksheets
    By crandell84 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-07-2018, 05:44 PM
  2. Replies: 1
    Last Post: 04-20-2015, 03:18 PM
  3. Replies: 3
    Last Post: 01-23-2014, 01:30 PM
  4. Replies: 3
    Last Post: 11-26-2013, 02:34 PM
  5. [SOLVED] Need Vlookup to pull multiple values (preferabbly in a single Cell)
    By megx27 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-18-2013, 01:02 AM
  6. Use vlookup or formula to pull multiple values
    By jcavigli in forum Excel General
    Replies: 3
    Last Post: 02-06-2013, 03:18 PM
  7. Need to pull multiple values from 1 workbook to another using vlookup?
    By jenmarie in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-30-2010, 02:38 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