Excel Time and Date issues

Jack3010

New Member
Joined
Jan 26, 2017
Messages
3
Hi,

So im trying to do a LOOKUP or INDEX/MATCH against date and time values, ive combined them to produce the number that excel works in but it doesnt recognise them as the same number even though the lists are produced exactly the same way? I dont know what to do.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Have you tried changing the number format of the values to see if they match up precisely?


For example, I have the date/time value 31/01/2017 18:21:30 in two separate cells. When I switch both cells to "General" number format and increase the decimal places, one cell shows 42766.7649266204 whereas the other cells shows 42766.7649277778.


As they're not an exact match, a lookup won't work as desired.
 
Upvote 0
I believe this to be the issue and to resolve this i use
ROUND("cell",2)*100 to give each value an exact integer. This worked for the majority of the times but a couple of times a day did not work.
 
Upvote 0
If the lookup is on date/time combinations, it would be better to use the floor function on both values to round down to the nearest second:


Code:
= FLOOR(A1, TIME(0, 0, 1))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,235
Messages
6,123,786
Members
449,125
Latest member
shreyash11

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top