+ Reply to Thread
Results 1 to 12 of 12

VLOOKUP not working correctly

  1. #1
    Registered User
    Join Date
    05-20-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    7

    VLOOKUP not working correctly

    I am using VLOOKUP to compare two cells and if the cells are equal then it places the information in the table. If it doesn't match it should display 'N/A' but instead it just continues to list the incorrect information. It starts off right and then gets off track.![enter image description here][1]

    excel.PNG


    If you see here column n starts with the correct match and then gets off track. The function I have for column N is **=VLOOKUP(R1,Accounts,1,FALSE)**

    What /Is there a fix for this issue?

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: VLOOKUP not working correctly

    Can you post a sample workbook instead of a photo?
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: VLOOKUP not working correctly

    It looks like this may be what you want.

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    05-20-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    7

    Re: VLOOKUP not working correctly

    That worked! Can you explain what my problem was?

  5. #5
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: VLOOKUP not working correctly

    What you wanted was to see if the value in column A matched anything in column R. Your formula looked in column R to see if there was a match in column A (Which there always was because R had the red items from column A). You just had it backwards.

  6. #6
    Registered User
    Join Date
    05-20-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    7

    Re: VLOOKUP not working correctly

    Thanks so much! So if I wanted to compare R to A again but move the S column to the note column how could I do that?

  7. #7
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: VLOOKUP not working correctly

    Please Login or Register  to view this content.
    That will give you the note from column S which is probably more useful. You can even enclose it with an IFERROR formula so it doesn't give you the ugly #N/A errors.

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    05-20-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    7

    Re: VLOOKUP not working correctly

    Wow, great. Last question, how would I compare what is in column O with what is in column W and if the same move what is in Column X into column P

    Capture.PNG

  9. #9
    Registered User
    Join Date
    05-20-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    7

    Re: VLOOKUP not working correctly

    Also is there a way to hide and lock columns so if I send this file they cant see columns R thru W?

  10. #10
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: VLOOKUP not working correctly

    It looks like you already have column N matched with column R and column O matched with column S. So in P2 you could put

    Please Login or Register  to view this content.
    This will lokup the short note in column O and give you the long description for it from column X.

    You can hide column R through X by selecting them, right click, hide.

  11. #11
    Registered User
    Join Date
    05-20-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    7

    Re: VLOOKUP not working correctly

    Sheet 1snap1.PNG Sheet3 snap2.PNG
    I need to compare Pat num in column C with account Number on C in sheet 3 and if they are a match I need to take the corresponding DBNUM from B on Sheet3 and place all of this info in cell AM. How would I do that?

  12. #12
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: VLOOKUP not working correctly

    Because Vlookup can only look to the right (it's not an ambi-turner) and on sheet 3 your DBNUM is on the left of the account number, you can use INDEX MATCH instead. If you put this in AM2, it should look at the value in C2, the pat num, and search for it on sheet 3 in column C, account number. If it finds it it will tell index what row to look at in column B and give you that DBNUM. If it doesn't find anything it will just give you a blank.

    Please Login or Register  to view this content.
    Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.

    <---Click * Add Reputation for all helpful comments. It's like giving a smile.
    Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.

+ 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 mrichard in forum Excel General
    Replies: 1
    Last Post: 03-03-2015, 03:32 PM
  2. [SOLVED] VLOOKUP not working correctly
    By carlbrooks in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-06-2013, 08:47 AM
  3. 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
  4. [SOLVED] IF VLOOKUP isn't working correctly
    By kenadams378 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-30-2013, 10:04 AM
  5. [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

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