Match closest time

ai225

New Member
Joined
Dec 19, 2018
Messages
1
Hello,

I have a list of stocks that were bought at a specific time but i don't know the price. I have a list of prices by time but it may differs from the time of action (differ in ms). Hoe can i match it to the closest time please in order to find the price?

Time ActionPrice
00:00:01.00 Buy
00:00:01.65 Buy
00:03:08.00 Buy

DateTimePrice
19/12/201800:00:00.371.13519
19/12/201800:00:00.951.13484
19/12/201800:00:02.891.13484
19/12/201800:00:08.141.13484
19/12/201800:00:14.781.13484
19/12/201800:00:41.661.13485
19/12/201800:00:58.031.13486
19/12/201800:00:58.721.13485
19/12/201800:01:00.141.13484
19/12/201800:01:01.791.13487
19/12/201800:01:04.051.13486
19/12/201800:01:04.661.13485
19/12/201800:01:18.211.13484
19/12/201800:01:21.271.13485
19/12/201800:01:37.061.13485
19/12/201800:02:37.241.13485
19/12/201800:02:37.901.13484
19/12/201800:02:40.991.13485
19/12/201800:03:07.691.13485
19/12/201800:03:08.011.13485
19/12/201800:03:28.091.13485


Many Thanks
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
If you want to group them into Minutes, use formula "=minute" to group them from milliseconds to minutes. same can be done with =hour as well if grouping needs to be done on hours basis.
 
Upvote 0

Forum statistics

Threads
1,214,625
Messages
6,120,598
Members
448,973
Latest member
ksonnia

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