Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-29-2013, 05:18 AM
hanvyj hanvyj is offline MATCH function and time values Windows XP MATCH function and time values Office 2010 32bit
Advanced Beginner
MATCH function and time values
 
Join Date: Feb 2012
Posts: 33
hanvyj is on a distinguished road
Default MATCH function and time values

Hi, I've got a MATCH function and it's being really temperamental with time values.



Its referencing a data with that from a list of times in 5 minute intervals, so for example I have a value:

15/05/2013 09:00:00 (number 41409.375) being looked for in a list of numbers calculated using =IFERROR(MATCH(D157,'Energy Data'!$D:$D,0),"") where D157 is the 09:00, and 'Energy Data', column D is the list of times.

It works fine half the time, for example the above comes with row 12792.

But, and I've had this problem before in excel, if I have the same function on 14/05/2013 08:35:00 (41408.35763888890000), and I've checked the list contains 41408.35763888890000 but the function sill returns a blank (N/A for the match).

The thing is, even if I do a =D156='Energy Data'!C12499, it returns TRUE, so excel recognises they are equal!

If I copy and paste one cell value into the other, it manages to get them with the MATCH, so it thinks they are different. Somehow.

Has anyone come across this before? Any work around?
Reply With Quote
  #2  
Old 05-29-2013, 08:53 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline MATCH function and time values Windows 7 64bit MATCH function and time values Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,919
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Perhaps post a small sample sheet containing the dubious examples?
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 05-29-2013, 12:12 PM
BobBridges's Avatar
BobBridges BobBridges is offline MATCH function and time values Windows 7 64bit MATCH function and time values Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

Hanvyj, my first thought was of times I've had a problem like this, where I'm doing MATCH or VLOOKUP on values that appear numeric, but in either the source or the target worksheet they're actually character strings. But you say you did <source>=<target> and got True back, so that's not the problem here.

It also occurred to me that you're searching for 09:00 (0.375) when the actual value is <date> 09:00 (n.375). Again, that doesn't seem like it can be the problem here.

A rounding error? Nah, shouldn't be that.

I just copied a date value to three other cells and formatted them as General, yyyy-mm-dd and yyyy-mm-dd hh:mm; but both the equality test and the MATCH function agrees that they're all equal.

I dunno, I have to agree with Pecoflyer; I need to see it.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can match or lookup values from two separate tables? klawk26 Excel 1 07-31-2012 09:04 PM
MATCH Function namedujour Excel 1 07-20-2012 12:12 AM
Formatting Merged Time Values Between Excel & Word JennEx Mail Merge 1 07-12-2012 02:54 PM
IE Object: Run-time problem (the link is not clicked in run-time but not in step-in tinfanide Excel Programming 1 03-04-2012 12:05 AM
Moving a Index/Match function FraserKitchell Excel 2 01-19-2010 09:38 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:11 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft