+ Reply to Thread
Results 1 to 5 of 5

VLOOKUP Issue - Not resolving data

  1. #1
    Registered User
    Join Date
    04-12-2011
    Location
    London UK
    MS-Off Ver
    2007
    Posts
    12

    VLOOKUP Issue - Not resolving data

    Hi guys,

    This has been driving me crazy and I am currently working on a censored version I can post here but let me explain the issue.

    I have 3 worksheets

    - Timesheets
    - Temps
    - Data

    All the cells in the timesheets worksheet with user inputted data in have formulas pointing to the data spreadsheet. So basically I import my data from my database into the data worksheet and timesheet worksheet picks it all up from there. Simple.

    The temps timesheet is a huge list of worker details, these worker details match the details in the data sheet; so what happens is:

    - Input data in data sheet
    - Timesheets worksheet picks up the reference number from the data sheet
    - Does a vlookup on the temp sheet to match the right record

    Ok so it was all working 100% fine until I started using my real data. The ref number in the data sheet appears in the box on the timesheets sheet but the vlookup doesn't work!

    The weirdest thing about it is that if I go to the temps sheet, copy a list of reference numbers and paste them in on the data sheet it works!!! although the numbers are exactly the same!!!!!!!

    This have probably confused you but has anybody experienced the same problem? At least until I upload a sample workbook.

    Thanks in advance.

    Dan
    Last edited by dsniff; 04-14-2011 at 04:41 AM. Reason: solved

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: VLOOKUP Issue - Not resolving data

    It sounds to me as though one set of numbers are stored as text and the other as numbers. If you remove any manual alignment, does one set of numbers appear left aligned in the column and the other right-aligned?
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    04-12-2011
    Location
    London UK
    MS-Off Ver
    2007
    Posts
    12

    Re: VLOOKUP Issue - Not resolving data

    Ah yes, I couldn't tell because the temp sheet is locked but if I copy the numbers over to the data sheet, the numbers that work right align and my imported data left aligns. I think it must be the data type in my access database!

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: VLOOKUP Issue - Not resolving data

    If you are looking up the real numbers against the text, then use:
    =VLOOKUP(Text(number_cell, "0"),....)
    or if vice versa:
    =VLOOKUP(--number_cell,....)

  5. #5
    Registered User
    Join Date
    04-12-2011
    Location
    London UK
    MS-Off Ver
    2007
    Posts
    12

    Re: VLOOKUP Issue - Not resolving data

    Great! that was the problem, how I feel silly now. Glad it's sorted now cheers mate!

+ 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