+ Reply to Thread
Results 1 to 9 of 9

vlookup error

Hybrid View

  1. #1
    Registered User
    Join Date
    05-11-2016
    Location
    Nottingham
    MS-Off Ver
    2007
    Posts
    3

    vlookup error

    Hi Everyone
    I realise this is a pretty easy post, but there is something I am not doing correctly and its driving me mad!

    I have on sheet 2 column A is a list of 31 product codes column B is the description of product
    On sheet 1 I have a list of the same data however only have 14 of the product codes (Same A and B Column)

    I wanted to do a lookup on sheet 2 in column C to show the product code is it is on sheet 1 or a "no" if it is not there. Everytime I do it, I get the values in sheet two returned?

    excel.JPG=VLOOKUP(A2,'Sheet 2'!A2:B20,1,FALSE)

    excel.JPG

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: vlookup error

    Hi
    =VLOOKUP(A2,'Sheet 2'!A2:B20,1,FALSE)
    Yes. You get the value of column 1 (A) in range A2:B20
    If you use =VLOOKUP(A2,'Sheet 2'!A2:B20,2,FALSE) you get the value of column 2 (B) in range A2:B20

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: vlookup error

    Why not just Countif() instead of Vlookup() if your intention is to check the availability of the text.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    05-11-2016
    Location
    Nottingham
    MS-Off Ver
    2007
    Posts
    3

    Re: vlookup error

    Hi everyone, i'm still struggling to get it right, either function

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: vlookup error

    Quote Originally Posted by dawsonr View Post
    Hi everyone, i'm still struggling to get it right, either function
    =IF(COUNTIF('Sheet 2'!$A$2:$B$20,A2),"Yes","No")

  6. #6
    Registered User
    Join Date
    05-11-2016
    Location
    Nottingham
    MS-Off Ver
    2007
    Posts
    3

    Re: vlookup error

    Hi everyone, i'm still struggling to get it right, either function

  7. #7
    Registered User
    Join Date
    04-25-2016
    Location
    India
    MS-Off Ver
    2010
    Posts
    34

    Re: vlookup error

    Quote Originally Posted by dawsonr View Post
    Hi everyone, i'm still struggling to get it right, either function
    If you can share the file (may be with dummy data), something can be done to sort it out!
    As I learn more,I learn there's even more to learn

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: vlookup error

    Seems like an automated message

  9. #9
    Forum Contributor
    Join Date
    07-17-2013
    Location
    Birmingham, England
    MS-Off Ver
    Excel for O365
    Posts
    197

    Re: vlookup error

    In Sheet 2, Cell C2

    =IF(COUNTIF('Sheet 1'!$A$2:$A$15,'Sheet 2'!$A2)<=0,"No",VLOOKUP('Sheet 2'!$A2,'Sheet 1'!$A$2:$B$15,1,false))

+ 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] Error in Vlookup
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-02-2016, 12:47 AM
  2. Concatenate error across 2 worksheets with vlookup error
    By COGICPENNY in forum Excel General
    Replies: 2
    Last Post: 11-30-2015, 07:56 PM
  3. Iferror vlookup if error vlookup if x=Y,
    By rwmeis in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-21-2013, 08:24 PM
  4. [SOLVED] Vlookup Error
    By vajeednawab in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-04-2013, 07:02 AM
  5. How to error trap a vlookup that returns an error or #N/A
    By kjy1989 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-06-2013, 12:01 PM
  6. [SOLVED] lookup - if(is error(vlookup and error messages meanings
    By grphillips in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-18-2013, 07:03 PM
  7. Replies: 0
    Last Post: 05-14-2012, 11:59 PM

Tags for this Thread

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