+ Reply to Thread
Results 1 to 4 of 4

MATCH or VLOOKUP can not find matching cells

  1. #1
    Registered User
    Join Date
    07-03-2013
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    19

    MATCH or VLOOKUP can not find matching cells

    I've got a worksheet ('1') that has a column of dates ("dd/mm/yyyy hh:mm") which is not linked from anything (it's just a list) and another column with 'values' corresponding to those date/time stamps.
    A second worksheet ('2') has date/time and 'values' pulled in from an outside source (OSISOFT PI). I want a third worksheet to match the date time 'values' for the first worksheet
    In this third worksheet ('3') I have the date/time range in column A taken from the second worksheet because it is a dynamic date/time range. the 'values' are for argument sake in column 'B'.
    The problem is that it matches (or finds) some of the values but not all. For example:

    .
    .
    01/01/2015 00:10 313.7
    01/02/2015 00:20 315.7
    01/02/2015 00:30 #N/A
    01/02/2015 00:40 314.9
    01/02/2015 00:50 313.7
    01/02/2015 01:00 #N/A
    .
    .
    I've gone through and tried to find "phantom characters", but can't see anything . What confuses me is that it seems to work for some values and not others.

    Can anyone help with this?

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: MATCH or VLOOKUP can not find matching cells

    The quick answer is no.

    Times and dates are very complicated to work with.

    The time and or date may be a number formatted to look like a time or date.

    It may also be a string.

    There are several options, to many for us to program for.

    So the long answer is post samples.

    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 use the paperclip icon to open the upload window.

    View Pic
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: MATCH or VLOOKUP can not find matching cells

    If you only display hours and minutes, there might also be seconds in there which you are not away of, and if you are trying to do an exact match then you won't find one. How are you bringing the data from sheet2 to sheet3 (i.e. what formula are you using)? You might be able to include a CEILING function or TRUNC function in there to ensure that you do not have any seconds - hard to say exactly, without seeing your workbook.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    07-03-2013
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: MATCH or VLOOKUP can not find matching cells

    Right, I've changed the workbook around a bit so it's manageable but still contains the same problem.

    When I change the date/time format to number format, they are the same even to 15 decimal places. Still confused.

    Book2.xlsx

    Any help would be huge!

    Thanks!

+ 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. VBA code to find a match after Vlookup and to fill matched cells accordingly
    By Air^Canada in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-14-2015, 03:28 PM
  2. Replies: 5
    Last Post: 02-21-2013, 07:17 PM
  3. Replies: 13
    Last Post: 12-13-2012, 11:44 AM
  4. Replies: 4
    Last Post: 05-24-2012, 06:44 AM
  5. VBA - how to get ALL matching results using MATCH() or VLOOKUP()
    By kala1928 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-08-2010, 04:39 AM
  6. Using INDEX and MATCH to find the 2nd matching value?
    By mysterydave in forum Excel General
    Replies: 4
    Last Post: 01-22-2009, 10:23 AM
  7. find all cells that match and use in an index/vlookup
    By Adam Bell in forum Excel General
    Replies: 1
    Last Post: 10-21-2005, 02:05 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