+ Reply to Thread
Results 1 to 14 of 14

Vlookup does not work

  1. #1
    Registered User
    Join Date
    01-29-2015
    Location
    South Africa
    MS-Off Ver
    MS OFFICE 2010
    Posts
    39

    Vlookup does not work

    Hi

    In my file attached I want column L = column K from column M but bring up the value in column N , so basically it should look up the value in column M and bring the SPNAT code up from column N. Hopefully I made sense in what Im saying . Im not good at excel. Im obviously using the vlookup incorrectly.
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,118

    Re: Vlookup does not work

    you are using TRUE - which is nearest value rather than FALSE , exact value
    =VLOOKUP(K2,$M$2:$N$140,2,FALSE)

    It will return some #N/A when it cannot match
    you can use IFERROR to change that result to say a blank
    =IFERROR(VLOOKUP(K2,$M$2:$N$140,2,FALSE),"")
    Attached Files Attached Files
    Last edited by etaf; 02-23-2021 at 04:55 AM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,997

    Re: Vlookup does not work

    First you need to change the cell format to General from Text so that the formula will actually execute. Then you actually want an exact match, so the last argument should be FALSE not TRUE. You also need to make the lookup table range absolute so that it doesn't adjust as you fill down:

    =VLOOKUP(K2,$M$2:$N$140,2,FALSE)
    Everyone who confuses correlation and causation ends up dead.

  4. #4
    Registered User
    Join Date
    01-29-2015
    Location
    South Africa
    MS-Off Ver
    MS OFFICE 2010
    Posts
    39

    Re: Vlookup does not work

    Thank you ETAF

  5. #5
    Registered User
    Join Date
    01-29-2015
    Location
    South Africa
    MS-Off Ver
    MS OFFICE 2010
    Posts
    39

    Re: Vlookup does not work

    Thank you Rory

  6. #6
    Registered User
    Join Date
    01-29-2015
    Location
    South Africa
    MS-Off Ver
    MS OFFICE 2010
    Posts
    39

    Re: Vlookup does not work

    Guys thanks for helping me and making sense of this formula

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,118

    Re: Vlookup does not work

    you are welcome

  8. #8
    Registered User
    Join Date
    01-29-2015
    Location
    South Africa
    MS-Off Ver
    MS OFFICE 2010
    Posts
    39

    Re: Vlookup does not work

    Hi Etaf

    Can you tell me If I apply this formula in this same spreadsheet if it will work . Please see Q2
    Attached Files Attached Files

  9. #9
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,118

    Re: Vlookup does not work

    Please see Q2
    ???? sorry dont understand the question

  10. #10
    Registered User
    Join Date
    01-29-2015
    Location
    South Africa
    MS-Off Ver
    MS OFFICE 2010
    Posts
    39

    Re: Vlookup does not work

    Please see the file that I have attached will the formula that you showed me also work here . SEE Q2 WITH FORMULA on the attached spreadsheet.

  11. #11
    Registered User
    Join Date
    01-29-2015
    Location
    South Africa
    MS-Off Ver
    MS OFFICE 2010
    Posts
    39

    Re: Vlookup does not work

    Do you want me to open up a new thread ?

  12. #12
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,118

    Re: Vlookup does not work

    no will not work as setup
    Vlookup - uses the range to left to lookup a value
    so
    =VLOOKUP(P2,R2:T344,3,FALSE)
    as the range starts R - then that is the column you want to look for a match , and then the number is how many rows to the right to go from that R range - Providing the columns are included in the range
    so
    R2:T344
    Looks up in column R and then 1 will return matches in R , 2 will return S and 3 Will return T , but 4 would not work - without changing the range to include that column - so R2:U344

    But you seem to be looking in column S
    so that needs to be the range and you want the result from column T
    so
    S2:T344

    now as you copy that down, it will change to
    S3:T345 etc
    to stop that so as you copy down you are still looking in the full range you put a $

    so you want
    =VLOOKUP(P2,$S$2:$T$344,2,FALSE)

  13. #13
    Registered User
    Join Date
    01-29-2015
    Location
    South Africa
    MS-Off Ver
    MS OFFICE 2010
    Posts
    39

    Re: Vlookup does not work

    Thank you ETAF , yes I see what you mean about the range that I use.

    Thanks once again it has worked.

  14. #14
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,118

    Re: Vlookup does not work

    you are welcome

+ 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] Why does vlookup work on one row, but not the next?
    By Wiigit in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-13-2019, 07:52 PM
  2. Vlookup - keeping the leading zeros in a cell to allow the vlookup to work
    By UFBEE1970 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-02-2019, 04:41 PM
  3. [SOLVED] Why my vlookup does not work
    By alljewel in forum Excel General
    Replies: 1
    Last Post: 06-13-2017, 05:47 PM
  4. [SOLVED] I can't get my VLOOKUP to work?
    By kellyfirth in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-16-2015, 11:17 AM
  5. Cannot get VLOOKUP to work
    By lilbird1981 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-29-2015, 01:14 PM
  6. Vlookup does not work
    By excel_newbie123 in forum Excel - New Users/Basics
    Replies: 9
    Last Post: 08-14-2009, 01:25 PM
  7. vlookup will not work...
    By mbroger in forum Excel General
    Replies: 2
    Last Post: 11-21-2007, 02:53 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