+ Reply to Thread
Results 1 to 4 of 4

vlookup returning the wrong data

  1. #1
    Registered User
    Join Date
    06-07-2013
    Location
    Irving, TX
    MS-Off Ver
    Excel 2003
    Posts
    18

    vlookup returning the wrong data

    Hi

    I am working on a form to pull employee identifiers such as employee ID, store number as well as sales performance. I am using the below formula but the data that is being returned is not the correct data for the specific employee. C5 is the employee name (last name, first name) in a single cell. A sample of the spreadsheet I am trying to pull data from is attached. Some employees the formula pulls the right data and some it does not... any ideas??

    =IF(C5="","",VLOOKUP(C5,'Raw Data'!A3:N15,2))
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: vlookup returning the wrong data

    Are you sure you uploaded the correct file? There is no data at all in row 5, and column C is Store number? Also, there is only 1 sheet?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: vlookup returning the wrong data

    ...The sample has barely anything to do with the described problem?

    Anyway my first-pass guess is that you're running into problems because it's finding an approximate match instead of an exact match.

    Try this:
    Please Login or Register  to view this content.
    IF that doesn't work, then... I dunno, I'd need more information? Like a better example.

  4. #4
    Registered User
    Join Date
    06-07-2013
    Location
    Irving, TX
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: vlookup returning the wrong data

    I didn't realize but I left off "0" on my formula... it's always the little things that trip you up

    Thanks for the response....

+ 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 returning wrong data
    By voklarl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-28-2013, 02:03 PM
  2. vlookup returning wrong data
    By xcelwannabee in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-20-2009, 03:49 PM
  3. VLOOKUP returning wrong row
    By jthomas in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  4. VLOOKUP returning wrong row
    By Adrian M in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 06:05 AM
  5. VLOOKUP returning wrong row
    By jthomas in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM

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