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?

[TABLE="width: 316"]
[TR]
[TD]Time[/TD]
[TD] [/TD]
[TD]Action[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD="align: right"]00:00:01.00[/TD]
[TD] [/TD]
[TD]Buy[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD="align: right"]00:00:01.65[/TD]
[TD] [/TD]
[TD]Buy[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD="align: right"]00:03:08.00[/TD]
[TD] [/TD]
[TD]Buy[/TD]
[TD] [/TD]
[/TR]
[/TABLE]

[TABLE="width: 230"]
[/TABLE]
[TABLE="width: 230"]
[TR]
[TD="align: right"][/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[/TABLE]
[TABLE="width: 241"]
[TR]
[TD]Date[/TD]
[TD]Time[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD="align: right"]19/12/2018[/TD]
[TD="align: right"]00:00:00.37[/TD]
[TD="align: right"]1.13519[/TD]
[/TR]
[TR]
[TD="align: right"]19/12/2018[/TD]
[TD="align: right"]00:00:00.95[/TD]
[TD="align: right"]1.13484[/TD]
[/TR]
[TR]
[TD="align: right"]19/12/2018[/TD]
[TD="align: right"]00:00:02.89[/TD]
[TD="align: right"]1.13484[/TD]
[/TR]
[TR]
[TD="align: right"]19/12/2018[/TD]
[TD="align: right"]00:00:08.14[/TD]
[TD="align: right"]1.13484[/TD]
[/TR]
[TR]
[TD="align: right"]19/12/2018[/TD]
[TD="align: right"]00:00:14.78[/TD]
[TD="align: right"]1.13484[/TD]
[/TR]
[TR]
[TD="align: right"]19/12/2018[/TD]
[TD="align: right"]00:00:41.66[/TD]
[TD="align: right"]1.13485[/TD]
[/TR]
[TR]
[TD="align: right"]19/12/2018[/TD]
[TD="align: right"]00:00:58.03[/TD]
[TD="align: right"]1.13486[/TD]
[/TR]
[TR]
[TD="align: right"]19/12/2018[/TD]
[TD="align: right"]00:00:58.72[/TD]
[TD="align: right"]1.13485[/TD]
[/TR]
[TR]
[TD="align: right"]19/12/2018[/TD]
[TD="align: right"]00:01:00.14[/TD]
[TD="align: right"]1.13484[/TD]
[/TR]
[TR]
[TD="align: right"]19/12/2018[/TD]
[TD="align: right"]00:01:01.79[/TD]
[TD="align: right"]1.13487[/TD]
[/TR]
[TR]
[TD="align: right"]19/12/2018[/TD]
[TD="align: right"]00:01:04.05[/TD]
[TD="align: right"]1.13486[/TD]
[/TR]
[TR]
[TD="align: right"]19/12/2018[/TD]
[TD="align: right"]00:01:04.66[/TD]
[TD="align: right"]1.13485[/TD]
[/TR]
[TR]
[TD="align: right"]19/12/2018[/TD]
[TD="align: right"]00:01:18.21[/TD]
[TD="align: right"]1.13484[/TD]
[/TR]
[TR]
[TD="align: right"]19/12/2018[/TD]
[TD="align: right"]00:01:21.27[/TD]
[TD="align: right"]1.13485[/TD]
[/TR]
[TR]
[TD="align: right"]19/12/2018[/TD]
[TD="align: right"]00:01:37.06[/TD]
[TD="align: right"]1.13485[/TD]
[/TR]
[TR]
[TD="align: right"]19/12/2018[/TD]
[TD="align: right"]00:02:37.24[/TD]
[TD="align: right"]1.13485[/TD]
[/TR]
[TR]
[TD="align: right"]19/12/2018[/TD]
[TD="align: right"]00:02:37.90[/TD]
[TD="align: right"]1.13484[/TD]
[/TR]
[TR]
[TD="align: right"]19/12/2018[/TD]
[TD="align: right"]00:02:40.99[/TD]
[TD="align: right"]1.13485[/TD]
[/TR]
[TR]
[TD="align: right"]19/12/2018[/TD]
[TD="align: right"]00:03:07.69[/TD]
[TD="align: right"]1.13485[/TD]
[/TR]
[TR]
[TD="align: right"]19/12/2018[/TD]
[TD="align: right"]00:03:08.01[/TD]
[TD="align: right"]1.13485[/TD]
[/TR]
[TR]
[TD="align: right"]19/12/2018[/TD]
[TD="align: right"]00:03:28.09[/TD]
[TD="align: right"]1.13485[/TD]
[/TR]
[/TABLE]


Many Thanks
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
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,223,886
Messages
6,175,191
Members
452,616
Latest member
intern444

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