+ Reply to Thread
Results 1 to 5 of 5

Vlookup/If Formula Question

  1. #1
    Registered User
    Join Date
    01-22-2008
    Posts
    50

    Vlookup/If Formula Question

    what formula do I use if I want to check if A given value on worksheet A, exists on worksheet B?

    I *thought* something like this would work, but I can't figure out what I'm doing wrong-

    =IF((S2=Vlookup(S2,'MC'!$A$2:$B$200,2),"Yes"," ")

    thanks in advance!

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    You mean?

    =IF(Isnumber(match(S2,'MC'!$A$2:$A$200,0)),"Yes","")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717
    Hi,

    If you just want to check whether a value in sheet A is present i B or not..
    U can use only VLOOKUP. No need to use IF.


    [code]
    =vlookup( S2, 'MC'!$A$2:$B$200,2, false)

    All the rows which containe #N/A is not present in SHEET B.

  4. #4
    Forum Contributor ptm0412's Avatar
    Join Date
    04-16-2008
    Location
    Vietnam
    MS-Off Ver
    Office 2003 and 2007
    Posts
    129
    If you don't want to see #N/A, use:
    Please Login or Register  to view this content.
    Oldman Chatting: [email protected] Mailing: [email protected]

  5. #5
    Registered User
    Join Date
    01-22-2008
    Posts
    50
    thanks- all versions worked!

+ 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