+ Reply to Thread
Results 1 to 4 of 4

Vlookup on 2 different sheets

  1. #1
    Forum Contributor
    Join Date
    03-09-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    235

    Vlookup on 2 different sheets

    Hi

    i have a code below to fill out my lookups but there is something wrong on it. please help me to correct this code. I need to lookup P2 to 2 different sheets. P2 needs to find on Master sheet and Support sheet.

    Please Login or Register  to view this content.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Vlookup on 2 different sheets

    This line of code is wrong but I don't know what you want to do so I can't tell you how to fix it.

    Please Login or Register  to view this content.
    A formula returns a single value. You have two values separated by a comma. For example, it wouldn't make sense to type this into a cell:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    but that's basically what you have here.

    What do you want in cell Q2?
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    03-09-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    235

    Re: Vlookup on 2 different sheets

    Hi 6StringJazzer


    cell Q2 is where i put the values where the lookups done.

    .Formula = "=VLookup(P2,'Master'!$E:$J,5,False),VLookup(P2,'Support'!$E:$J,5,False)" is to find column P "Agent Name" to find their TL on Master Sheet and if not found on Master Sheet they can look it up to Support Sheet (tab).

    If you have any codes that can help me to lookup Agent Name to find their TL on 2 different Sheets. is highly appreciated.
    thanks

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Vlookup on 2 different sheets

    I have not tested this but here is the idea. If the first VLOOKUP returns an error then the second one will be used.

    Please Login or Register  to view this content.

+ 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. Replies: 8
    Last Post: 03-30-2011, 11:09 AM
  2. VLOOKUP Across Several Sheets
    By kayard in forum Excel General
    Replies: 3
    Last Post: 03-16-2010, 07:59 AM
  3. Vlookup across sheets, nested Vlookup possibly?
    By paid2mkgrlspanic in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 06-09-2009, 05:10 PM
  4. vlookup function-Can vlookup command find the data from the 5 sheets.
    By Rishab shah in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  5. [SOLVED] Vlookup with 8 sheets-please help!
    By Marie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-31-2005, 02:06 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