I have 2000 rows of data, arranged by date and time. The first column contains the 'buy' or 'sell' price, the second column contains the date and the third contains the time. A fourth column contains an indentifier to link the 'buy/sell' pairs (just a number so that both rows of the same buy/sell pair have the same number).
I need to write a formula that will match the column pairs and subtract the 'sell' price from the 'buy' price. I'm not sure if 'SUMIF' is the correct base - if it is I haven't been able to sort it.
Sample of data:
1.0477 01/01/2003 19:27 442
1.0477 01/02/2003 1:37 622
1.0370 01/03/2003 2:10 814
1.0387 01/03/2003 6:09 814
1.0395 01/03/2003 9:02 815
1.0413 01/03/2003 10:40 815
1.0424 01/03/2003 12:17 816
1.0423 01/05/2003 18:19 1
1.0442 01/05/2003 23:58 816
1.0442 01/05/2003 23:58 1
1.0437 01/06/2003 2:40 104
1.0453 01/06/2003 3:14 104
1.0472 01/06/2003 4:28 105
1.0444 01/07/2003 1:13 271
1.0472 01/08/2003 12:09 271
1.0509 01/08/2003 13:01 442
Bookmarks