+ Reply to Thread
Results 1 to 5 of 5

VLookup AND Problem

Hybrid View

ScabbyDog VLookup AND Problem 03-28-2018, 09:23 AM
AliGW Re: VLookup AND Problem 03-28-2018, 09:25 AM
ScabbyDog Re: VLookup AND Problem 03-28-2018, 09:40 AM
JeteMc Re: VLookup AND Problem 04-02-2018, 07:14 PM
AliGW Re: VLookup AND Problem 04-03-2018, 02:30 AM
  1. #1
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    VLookup AND Problem

    I want to vlookup B2 on Sheet2 A:Z and return column 2 (false). So obviously that's just =vlookup(B2,Sheet2!A:Z,2,falase)
    However I only want to return the answer IF C2 =Sheet2!F2 on the row where the vlookup is found.

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

    Re: VLookup AND Problem

    Try this:

    =IF(VLOOKUP(B2,Sheet2!A:Z,2,FALSE)=Sheet2!F2,VLOOKUP(B2,Sheet2!A:Z,2,FALSE),"")
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: VLookup AND Problem

    That doesn't quite do what I want because C2 and F2 will generally be the same so in your formula it sees that indeed C2 = F2 on Sheet2 and therefore it does the second vlookup which obviously returns an answer albeit the wrong one.

    It needs to do the last bit first and then only return something if Cx = Fx Sheet 2. Where x is the row where the vlookup is done.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,980

    Re: VLookup AND Problem

    It would help us to help you if you could show us a sample of your set up and manually include the expected results where applicable.
    To upload a sample workbook click on the GO ADVANCED button below the Quick Reply window and then scroll down to Manage Attachments to open the upload window.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

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

    Re: VLookup AND Problem

    You keep using the word 'obviously'. What is obvious to you may well not be so to others. Attach a sample workbook so that we don't have to play guessing games, please.

+ 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. having problem to use vlookup
    By Ladyeve1023 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-30-2017, 02:32 AM
  2. [SOLVED] VLOOKUP problem
    By djh30 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-17-2013, 02:24 PM
  3. Vlookup problem in a loop with cell property and variable cell problem (long title sry)
    By ExcelsiorLux in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-13-2013, 10:38 AM
  4. Replies: 6
    Last Post: 05-28-2013, 05:08 PM
  5. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  6. vlookup problem and count problem
    By thy00123 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-05-2009, 04:31 AM
  7. [SOLVED] Vlookup problem
    By Big Jones in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 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