+ Reply to Thread
Results 1 to 4 of 4

Vlookup and If help needed

  1. #1
    Registered User
    Join Date
    11-29-2011
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    4

    Vlookup and If help needed

    I am having difficulty identifying a formula that will lookup a number in a worksheet and then if the number is present I want it to see if that number has a corresponding "Yes" or "No" in a different column. If it has a "Yes" I want it to retun the word "Online Test" and if it is "No" I want it to return "Failed at initial sift". Can anyone help please? I have attached an example.

    Test.xlsx

    Thank you in advance!

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Vlookup and If help needed

    Enter this formula in C3 of sheet1:

    =IF(B3="Yes",IF(VLOOKUP(A3,Sheet2!A:B,2,0)="Yes","Online Tests","Failed at initial shifts"),"NA")

    It will display NA for those entries which show a "No" in column B of sheet1.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    03-13-2012
    Location
    Stafford, England
    MS-Off Ver
    Excel 2007
    Posts
    87

    Re: Vlookup and If help needed

    Hi Nicola,

    You can do this all in one column with the formula below.
    =IF(IFERROR(VLOOKUP(A3,Sheet2!A3:B6,2,FALSE),"No")="YES","Online Test","Failed at initial sift")

  4. #4
    Registered User
    Join Date
    11-29-2011
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Vlookup and If help needed

    Thank you, problem solved!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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