Aligning Cells with the same time

seelmand

New Member
Joined
Jul 22, 2011
Messages
1
Hello All,
I have a somewhat unique problem that as a non VBA programmer I have been unable to solve thus far. Here is the skinny of the issue. I have trading tick data that is from two different sources. I've sorted the columns as such: column A time source 1, column B Ask Source 1, column C Time Source 2, column D Bid Source 2. The issue is one source has much more liquidity than the other (ie more tick data for the same amount of time). For the purposes of my research I need to align and compare the tick data from each source from the same time. The source with less liquidity has much less data and much fewer updates than the source with the greater liquidity.

So here is my question, is there a way to compare the time of the value of columns A and C? Once compared I need them to align the rows with the same time. Essentially scan the xls file for matching values in column a and c. When a matching value is found move the entire row of matching times to align together (move the bid and ask values associated with the equal time as well). The final piece of the puzzle is that I also need blank rows inserted in between rows that the times do not match.

I attached the spreadsheet. I hope my description was clear. If not I can provide more examples. Thanks for the help guys!
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hi, for comparing the time of the value of columns A and C.
You could just graph those two as different series in a line graph setting x-axis as your more liquidty time.

This may allow you to see the difference between the two data and allow you to process the data more clearly.

Lastly, there can be a macro that can be devised for this type of problem but I will have to see it tomorrow or like 4 hours later.
 
Upvote 0

Forum statistics

Threads
1,224,534
Messages
6,179,390
Members
452,909
Latest member
VickiS

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