+ Reply to Thread
Results 1 to 6 of 6

VLOOKUP not working correctly

  1. #1
    Registered User
    Join Date
    11-05-2013
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    33

    VLOOKUP not working correctly

    Hi,

    I am trying to use a VLOOKUP to display the name "VW" which is the keyword it is searching for. Instead of displaying the word VW under U8 row, it is displaying the N/A. What am i doing wrong in my VLOOKUP formula?

    The formula is the following:

    Please Login or Register  to view this content.
    The table will be expanded to 1000 rows.

    Here is a screenshot of my spreadsheet:

    Screen Shot 2013-11-05 at 23.26.00.jpg

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: VLOOKUP not working correctly

    I'm not really clear what you are trying to do, can you explain again - what results do you want to get in U8, U9 etc.?

    You are using =ROWS($U$8:U8) as your "lookup value" and that evaluates to 1 - 1 isn't found in the first column of the "lookup range" (column B) so you get #N/A


    ...if you want to look up the number in column Q and return the value from B then you can't use VLOOKUP for that (it's a so-called "left lookup") but you can use INDEX/MATCH, e.g.

    =INDEX(B$8:B$1000,MATCH(ROWS($U$8:U8),Q$8:Q$1000,0))
    Last edited by daddylonglegs; 11-05-2013 at 07:42 PM.
    Audere est facere

  3. #3
    Registered User
    Join Date
    11-05-2013
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: VLOOKUP not working correctly

    http://www.youtube.com/watch?v=vkPoViUhkxU

    Here is a youtube video I am going through. I am trying to create a searchable drop down menu but at the moment I am just incrementing rows, I am simply trying to get the correct number of the search "VW" to be displayed which should be 6 as there is 6 VWs. Please look at the youtube video starting at 3:20 and go up to 7:00. You will then understand what I am trying to do as the guy on the video explains it
    Last edited by carlbrooks; 11-05-2013 at 07:51 PM.

  4. #4
    Registered User
    Join Date
    11-05-2013
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: VLOOKUP not working correctly

    Actually i think you have solved it, thank you, I did not know VLOOKUP only worked for left columns

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

    Re: VLOOKUP not working correctly

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    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]

  6. #6
    Registered User
    Join Date
    11-05-2013
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: VLOOKUP not working correctly

    Thanks for this information on how to add reputation and mark forums as solved. I know for future now on what to do

+ 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. VLOOKUP not working correctly
    By Nitefox in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 10-26-2013, 03:11 PM
  2. [SOLVED] IF VLOOKUP isn't working correctly
    By kenadams378 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-30-2013, 10:04 AM
  3. Replies: 9
    Last Post: 03-08-2013, 11:50 AM
  4. [SOLVED] Vlookup in a table -not working correctly-HELP!!
    By barbibchn in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 01-14-2013, 07:49 PM
  5. VLookup/IF Statements and Multiple Variable Lookup Not Working Correctly
    By gustafsoni in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-15-2007, 08:50 AM

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