+ Reply to Thread
Results 1 to 14 of 14

vlook up not working

  1. #1
    Registered User
    Join Date
    09-18-2016
    Location
    carrickfergus
    MS-Off Ver
    excel 2013
    Posts
    63

    vlook up not working

    Hi

    I have a formula as follows =VLOOKUP(A7,Tables!X3:AB22,3)

    A7 = West ham united

    but the formula is producing the result for Crystal palace !!!!

    ive tried using TRUE & FALSE within the formula and no joy


    I need to either understand why v look up is returning a value associated with a different cell or an alternative way of searching and returning the correct result , please

  2. #2
    Forum Contributor shivya's Avatar
    Join Date
    08-19-2017
    Location
    Delhi, India
    MS-Off Ver
    2013
    Posts
    240

    Re: vlook up not working

    Please attach your excel sheet so that i can check what is the issue with?

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: vlook up not working

    Difficult to impossible to debug with only the information given. The results you are getting are probably dependent on what your lookup table looks like.

    Is your lookup table sorted by the leftmost column in ascending order or not? If not, then VLOOKUP(value,table,column,TRUE) cannot work correctly, as the binary search option only works on sorted lists.

    Is the exact text string "West ham united" present in the leftmost column of the lookup table? The exact match (4th argument=FALSE) looks for exact matches, which means exact character for character match (except not case sensitive). Leading/trailing spaces or other non-printing characters can make something that looks like match not be seen as a match.

    Debugging this requires looking at your lookup table. Since you provided no information about your lookup table, we cannot debug this for you. However, those two items should give you a starting place to debug.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,980

    Re: vlook up not working

    OK - well, there are lots of possibilities! Best thing is to attach a sample file that shows the error, but you could try this:

    =VLOOKUP(A7,Tables!X3:AB22,3,0)

    You need to make sure that A7 really does match the entry for West Ham Utd in column X of the lookup table EXACTLY.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: vlook up not working

    paulr0700282,

    As is, your formula is looking for an approximate match. VLOOKUP has 4 arguments, the 4th being optional. When omitted the default is TRUE or an approximate match. Generally this produces unexpected results when doing a lookup on text. You want to explicitly set this argument to FALSE (or 0, they are the same thing to Excel).

    Having said that, be aware that exact matches leave no margin of error or wiggle room if you will. "Bob" and " Bob " are not the same thing to Excel. 1 as text and 1 as a numeric value are also not the same. Typically you want to do what is often called "normalizing your data" when doing a lookup like this. That means getting your lookup values and the column of values you are looking in within the data array/range to be in like terms. Remove excess spaces, non-print characters, same data types, and sometimes even modifying data to be in a similar syntax (ex: first name last name for both instead of one having a middle initial and the other not).

    Without a sample to inspect its impossible to say exactly why its not working. The above are the most common reasons I see when VLOOKUP returns unexpected results. Also make sure automatic calculation is on if feasible or at least recalculate after modifying the formulas to get accurate results if set to manual calc.

    Hope this helps
    Last edited by jeffreybrown; 10-20-2017 at 09:53 AM. Reason: Please do not quote whole posts! It just causes clutter.

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: vlook up not working

    Without seeing the data that you are using this formula on, all that we can tell you is what the formula is doing.

    Your formula looks in column X (rows 3 through 22) of the 'Tables' worksheet for the value that is in A7 of the worksheet that the formula is in.

    If it finds a match in column X, it then returns the value in the corresponding row of column Z.

    Note that VLOOKUP stops at the first match.

    If you want an exact match, you will want to specify a range lookup of FALSE.

    If you require further assistance, please upload a small sample of your workbook along with the desired result of the formula.

  7. #7
    Registered User
    Join Date
    09-18-2016
    Location
    carrickfergus
    MS-Off Ver
    excel 2013
    Posts
    63

    Re: vlook up not working

    how do I attach?

  8. #8
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: vlook up not working

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    HTH
    Regards, Jeff

  9. #9
    Registered User
    Join Date
    09-18-2016
    Location
    carrickfergus
    MS-Off Ver
    excel 2013
    Posts
    63

    Re: vlook up not working

    hopefully this attachment worked
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    09-18-2016
    Location
    carrickfergus
    MS-Off Ver
    excel 2013
    Posts
    63

    Re: vlook up not working

    my aim here is as follows

    look for the same value in C7 (Predictions) within the range of X3:AB22 (Tables) and return the value 2 to the right (games played)

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,980

    Re: vlook up not working

    Fixtures - L5 - get rid of the trailing space, then amend the formula to this:

    =VLOOKUP(A7,Tables!X$3:AB$22,3,0)

  12. #12
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: vlook up not working

    There are trailing spaces in your Col A
    Try this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  13. #13
    Registered User
    Join Date
    09-18-2016
    Location
    carrickfergus
    MS-Off Ver
    excel 2013
    Posts
    63

    Re: vlook up not working

    Thank you

    as the value in C7 is (='fixtures'C5) The trim option worked a treat

    never ceases to amaze me how knowledgeable people on here are - thanks again

  14. #14
    Registered User
    Join Date
    09-29-2017
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    7

    Re: vlook up not working

    Tab "Tables" has loads of hidden columns. May be your issue. I always insert a COUNTING row as the top row above my VLOOKUP targget, so it tells me the return column count without me having to count. Works even if columns are hidden.
    You should get something like:
    (COLUMN) L M R
    (C. COUNT) 10 11 16

+ 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. VLook up not Working
    By LastJedi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-12-2017, 09:51 AM
  2. [SOLVED] Vlook up with Trim not working either,
    By Bitto in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 06-21-2016, 09:34 AM
  3. HELP working out VLOOK formula i need to use across tabs
    By Tafflisa in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-26-2016, 06:09 PM
  4. VLook up not working
    By LastJedi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-11-2015, 10:26 AM
  5. [SOLVED] Vlook Up function not working Properly, donot know, need help
    By Bitto in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-06-2015, 08:44 AM
  6. Vlook up not working on multiple columns
    By benji8798 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-05-2013, 10:18 PM
  7. Vlook & Macro not working together
    By dstrdOne in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-09-2013, 04:43 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