+ Reply to Thread
Results 1 to 7 of 7

Vlookup formula not working

  1. #1
    Registered User
    Join Date
    07-05-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    10

    Vlookup formula not working

    I came to this board a while back and someone gave me a neat vlookup formula which worked a treat, so I'm hoping someone will be as generous a second time round

    I have the following formula in a different excel file this time, with the following syntax

    =IF(ISNUMBER(MATCH(B2,'Suppliers'!A:A,0)),"Yes","No")

    Given that:

    In the workbook ('Matches') where I enter the formula, column B has a list of names. Workbook 'Suppliers', in column A, also has a list of names. I want Excel to tell me which of the names in column B 'Matches' it finds in column A 'Suppliers'.

    It has found some, but for others it returns a 'No' even though the name IS there in both workbooks, and is an exact match. As it should be a 'Yes' I'm thinking something's wrong. I have enabled automatic calculation. Can anyone think of a reason?

    Thanks in advance...

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Vlookup formula not working

    The usual problem is trailing spaces but it would help to see an example of where some names aren't matching. Can you load a sample workbook?

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    07-05-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Vlookup formula not working

    I like to upload a sample workbook but as this is for work, all the information in the file is confidential to my employer so I cannot share it.

    What I can tell you is that one supplier in particular is a single name without spaces and no special characters. I retyped the name in both workbooks and it changed to a 'Yes'. Could that be trailing spaces or formatting problems?

    Also, do you know how to include partial matches in the search? Your help is appreciated.

  4. #4
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Vlookup formula not working

    Could be. Try using the CLEAN and TRIM functions on your lists. It should probably sort out the problem.

    Depends what you mean by partial matches. Can you provide an example?

    Dom

  5. #5
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Vlookup formula not working

    Please post in the right forum next time, this is an Outlook forum.
    I will move this thread for you. Expect it to be closed the next time.

    PS : indicating " somewhere" as location will not help once you have problems with regional settings

  6. #6
    Registered User
    Join Date
    07-05-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Vlookup formula not working

    Apologies, it was an accidental posting in the wrong section
    I've updated my location.

    This is an example of a partial match I would like the formula to find:

    Accenture / Accenture (UK) Limited

    At the moment it returns a 'No' but I would like it to be a 'Yes'.

  7. #7
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Vlookup formula not working

    You might want to have a look at this:

    http://www.microsoft.com/bi/en-us/Co...nforExcel.aspx

    Dom

+ 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