I have a table as such with lots of different data values for different currency pairs
[TABLE="width: 801"]
<tbody>[TR]
[TD]GBP/USD
[/TD]
[TD][/TD]
[TD][/TD]
[TD]EUR/USD
[/TD]
[TD][/TD]
[TD][/TD]
[TD]USD/JPY
[/TD]
[TD][/TD]
[TD][/TD]
[TD]USD/CAD
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DATE
[/TD]
[TD]RATE
[/TD]
[TD][/TD]
[TD]DATE
[/TD]
[TD]RATE
[/TD]
[TD][/TD]
[TD]DATE
[/TD]
[TD]RATE
[/TD]
[TD][/TD]
[TD]DATE
[/TD]
[TD]RATE
[/TD]
[/TR]
[TR]
[TD]01/07/2014
[/TD]
[TD]1.6475
[/TD]
[TD][/TD]
[TD]01/07/2014
[/TD]
[TD]1.3178
[/TD]
[TD][/TD]
[TD]01/07/2014
[/TD]
[TD]103.67
[/TD]
[TD][/TD]
[TD]01/07/2014
[/TD]
[TD]1.092
[/TD]
[/TR]
[TR]
[TD]02/07/2014
[/TD]
[TD]1.6409
[/TD]
[TD][/TD]
[TD]02/07/2014
[/TD]
[TD]1.346
[/TD]
[TD][/TD]
[TD]02/07/2014
[/TD]
[TD]103.8
[/TD]
[TD][/TD]
[TD]02/07/2014
[/TD]
[TD]1.079
[/TD]
[/TR]
[TR]
[TD]03/07/2014
[/TD]
[TD]1.6578
[/TD]
[TD][/TD]
[TD]03/07/2014
[/TD]
[TD]1.344
[/TD]
[TD][/TD]
[TD]03/07/2014
[/TD]
[TD]103.93
[/TD]
[TD][/TD]
[TD]03/07/2014
[/TD]
[TD]1.0789
[/TD]
[/TR]
[TR]
[TD]04/07/2014
[/TD]
[TD]1.658
[/TD]
[TD][/TD]
[TD]04/07/2014
[/TD]
[TD]1.362133
[/TD]
[TD][/TD]
[TD]04/07/2014
[/TD]
[TD]104.06
[/TD]
[TD][/TD]
[TD]04/07/2014
[/TD]
[TD]1.0702
[/TD]
[/TR]
[TR]
[TD]05/07/2014
[/TD]
[TD]1.309
[/TD]
[TD][/TD]
[TD]05/07/2014
[/TD]
[TD]1.375233
[/TD]
[TD][/TD]
[TD]05/07/2014
[/TD]
[TD]104.19
[/TD]
[TD][/TD]
[TD]05/07/2014
[/TD]
[TD]1.06365
[/TD]
[/TR]
[TR]
[TD]06/07/2014
[/TD]
[TD]1.66
[/TD]
[TD][/TD]
[TD]06/07/2014
[/TD]
[TD]1.388333
[/TD]
[TD][/TD]
[TD]06/07/2014
[/TD]
[TD]104.32
[/TD]
[TD][/TD]
[TD]06/07/2014
[/TD]
[TD]1.0571
[/TD]
[/TR]
[TR]
[TD]07/07/2014
[/TD]
[TD]1.502233
[/TD]
[TD][/TD]
[TD]07/07/2014
[/TD]
[TD]1.401433
[/TD]
[TD][/TD]
[TD]07/07/2014
[/TD]
[TD]104.45
[/TD]
[TD][/TD]
[TD]07/07/2014
[/TD]
[TD]1.05055
[/TD]
[/TR]
[TR]
[TD]08/07/2014
[/TD]
[TD]1.475576
[/TD]
[TD][/TD]
[TD]08/07/2014
[/TD]
[TD]1.414533
[/TD]
[TD][/TD]
[TD]08/07/2014
[/TD]
[TD]104.58
[/TD]
[TD][/TD]
[TD]08/07/2014
[/TD]
[TD]1.044
[/TD]
[/TR]
[TR]
[TD]09/07/2014
[/TD]
[TD]1.448919
[/TD]
[TD][/TD]
[TD]09/07/2014
[/TD]
[TD]1.427633
[/TD]
[TD][/TD]
[TD]09/07/2014
[/TD]
[TD]104.71
[/TD]
[TD][/TD]
[TD]09/07/2014
[/TD]
[TD]1.03745
[/TD]
[/TR]
[TR]
[TD]10/07/2014
[/TD]
[TD]1.422262
[/TD]
[TD][/TD]
[TD]10/07/2014
[/TD]
[TD]1.440733
[/TD]
[TD][/TD]
[TD]10/07/2014
[/TD]
[TD]104.84
[/TD]
[TD][/TD]
[TD]10/07/2014
[/TD]
[TD]1.0309
[/TD]
[/TR]
[TR]
[TD]11/07/2014
[/TD]
[TD]1.395605
[/TD]
[TD][/TD]
[TD]11/07/2014
[/TD]
[TD]1.453833
[/TD]
[TD][/TD]
[TD]11/07/2014
[/TD]
[TD]104.97
[/TD]
[TD][/TD]
[TD]11/07/2014
[/TD]
[TD]1.02435
[/TD]
[/TR]
[TR]
[TD]12/07/2014
[/TD]
[TD]1.368948
[/TD]
[TD][/TD]
[TD]12/07/2014
[/TD]
[TD]1.466933
[/TD]
[TD][/TD]
[TD]12/07/2014
[/TD]
[TD]105.1
[/TD]
[TD][/TD]
[TD]12/07/2014
[/TD]
[TD]1.0178
[/TD]
[/TR]
[TR]
[TD]13/07/2014
[/TD]
[TD]1.34229
[/TD]
[TD][/TD]
[TD]13/07/2014
[/TD]
[TD]1.480033
[/TD]
[TD][/TD]
[TD]13/07/2014
[/TD]
[TD]105.23
[/TD]
[TD][/TD]
[TD]13/07/2014
[/TD]
[TD]1.01125
[/TD]
[/TR]
[TR]
[TD]14/07/2014
[/TD]
[TD]1.315633
[/TD]
[TD][/TD]
[TD]14/07/2014
[/TD]
[TD]1.493133
[/TD]
[TD][/TD]
[TD]14/07/2014
[/TD]
[TD]105.36
[/TD]
[TD][/TD]
[TD]14/07/2014
[/TD]
[TD]1.0047
[/TD]
[/TR]
[TR]
[TD]15/07/2014
[/TD]
[TD]1.288976
[/TD]
[TD][/TD]
[TD]15/07/2014
[/TD]
[TD]1.506233
[/TD]
[TD][/TD]
[TD]15/07/2014
[/TD]
[TD]105.49
[/TD]
[TD][/TD]
[TD]15/07/2014
[/TD]
[TD]0.99815
[/TD]
[/TR]
[TR]
[TD]16/07/2014
[/TD]
[TD]1.262319
[/TD]
[TD][/TD]
[TD]16/07/2014
[/TD]
[TD]1.519333
[/TD]
[TD][/TD]
[TD]16/07/2014
[/TD]
[TD]105.62
[/TD]
[TD][/TD]
[TD]16/07/2014
[/TD]
[TD]0.9916
[/TD]
[/TR]
[TR]
[TD]17/07/2014
[/TD]
[TD]1.235662
[/TD]
[TD][/TD]
[TD]17/07/2014
[/TD]
[TD]1.532433
[/TD]
[TD][/TD]
[TD]17/07/2014
[/TD]
[TD]105.75
[/TD]
[TD][/TD]
[TD]17/07/2014
[/TD]
[TD]0.98505
[/TD]
[/TR]
[TR]
[TD]18/07/2014
[/TD]
[TD]1.209005
[/TD]
[TD][/TD]
[TD]18/07/2014
[/TD]
[TD]1.545533
[/TD]
[TD][/TD]
[TD]18/07/2014
[/TD]
[TD]105.88
[/TD]
[TD][/TD]
[TD]18/07/2014
[/TD]
[TD]0.9785
[/TD]
[/TR]
[TR]
[TD]19/07/2014
[/TD]
[TD]1.182348
[/TD]
[TD][/TD]
[TD]19/07/2014
[/TD]
[TD]1.558633
[/TD]
[TD][/TD]
[TD]19/07/2014
[/TD]
[TD]106.01
[/TD]
[TD][/TD]
[TD]19/07/2014
[/TD]
[TD]0.97195
[/TD]
[/TR]
</tbody>[/TABLE]
I want to run a regression analysis between 2 pairs of currencies, dependent on what I specify, with an outcome using t-test to see whether results are significant or not. I want this to be run via macro, where I type in an input cell the 2 pairs I wish to run the regression analysis on, the macro recognises the pairs I write and runs a regression for this based on those pairs 'rate' data. Then using t statistics produces an output saying whether it is significant or no (correlation).
Finally, whatever I choose to run a regression on, in a third sheet the history of outcomes are listed and accumulates as a database every time I run the macro for a new attempt. Seems like a lot but any help would be appreciated!
Thanks
[TABLE="width: 801"]
<tbody>[TR]
[TD]GBP/USD
[/TD]
[TD][/TD]
[TD][/TD]
[TD]EUR/USD
[/TD]
[TD][/TD]
[TD][/TD]
[TD]USD/JPY
[/TD]
[TD][/TD]
[TD][/TD]
[TD]USD/CAD
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DATE
[/TD]
[TD]RATE
[/TD]
[TD][/TD]
[TD]DATE
[/TD]
[TD]RATE
[/TD]
[TD][/TD]
[TD]DATE
[/TD]
[TD]RATE
[/TD]
[TD][/TD]
[TD]DATE
[/TD]
[TD]RATE
[/TD]
[/TR]
[TR]
[TD]01/07/2014
[/TD]
[TD]1.6475
[/TD]
[TD][/TD]
[TD]01/07/2014
[/TD]
[TD]1.3178
[/TD]
[TD][/TD]
[TD]01/07/2014
[/TD]
[TD]103.67
[/TD]
[TD][/TD]
[TD]01/07/2014
[/TD]
[TD]1.092
[/TD]
[/TR]
[TR]
[TD]02/07/2014
[/TD]
[TD]1.6409
[/TD]
[TD][/TD]
[TD]02/07/2014
[/TD]
[TD]1.346
[/TD]
[TD][/TD]
[TD]02/07/2014
[/TD]
[TD]103.8
[/TD]
[TD][/TD]
[TD]02/07/2014
[/TD]
[TD]1.079
[/TD]
[/TR]
[TR]
[TD]03/07/2014
[/TD]
[TD]1.6578
[/TD]
[TD][/TD]
[TD]03/07/2014
[/TD]
[TD]1.344
[/TD]
[TD][/TD]
[TD]03/07/2014
[/TD]
[TD]103.93
[/TD]
[TD][/TD]
[TD]03/07/2014
[/TD]
[TD]1.0789
[/TD]
[/TR]
[TR]
[TD]04/07/2014
[/TD]
[TD]1.658
[/TD]
[TD][/TD]
[TD]04/07/2014
[/TD]
[TD]1.362133
[/TD]
[TD][/TD]
[TD]04/07/2014
[/TD]
[TD]104.06
[/TD]
[TD][/TD]
[TD]04/07/2014
[/TD]
[TD]1.0702
[/TD]
[/TR]
[TR]
[TD]05/07/2014
[/TD]
[TD]1.309
[/TD]
[TD][/TD]
[TD]05/07/2014
[/TD]
[TD]1.375233
[/TD]
[TD][/TD]
[TD]05/07/2014
[/TD]
[TD]104.19
[/TD]
[TD][/TD]
[TD]05/07/2014
[/TD]
[TD]1.06365
[/TD]
[/TR]
[TR]
[TD]06/07/2014
[/TD]
[TD]1.66
[/TD]
[TD][/TD]
[TD]06/07/2014
[/TD]
[TD]1.388333
[/TD]
[TD][/TD]
[TD]06/07/2014
[/TD]
[TD]104.32
[/TD]
[TD][/TD]
[TD]06/07/2014
[/TD]
[TD]1.0571
[/TD]
[/TR]
[TR]
[TD]07/07/2014
[/TD]
[TD]1.502233
[/TD]
[TD][/TD]
[TD]07/07/2014
[/TD]
[TD]1.401433
[/TD]
[TD][/TD]
[TD]07/07/2014
[/TD]
[TD]104.45
[/TD]
[TD][/TD]
[TD]07/07/2014
[/TD]
[TD]1.05055
[/TD]
[/TR]
[TR]
[TD]08/07/2014
[/TD]
[TD]1.475576
[/TD]
[TD][/TD]
[TD]08/07/2014
[/TD]
[TD]1.414533
[/TD]
[TD][/TD]
[TD]08/07/2014
[/TD]
[TD]104.58
[/TD]
[TD][/TD]
[TD]08/07/2014
[/TD]
[TD]1.044
[/TD]
[/TR]
[TR]
[TD]09/07/2014
[/TD]
[TD]1.448919
[/TD]
[TD][/TD]
[TD]09/07/2014
[/TD]
[TD]1.427633
[/TD]
[TD][/TD]
[TD]09/07/2014
[/TD]
[TD]104.71
[/TD]
[TD][/TD]
[TD]09/07/2014
[/TD]
[TD]1.03745
[/TD]
[/TR]
[TR]
[TD]10/07/2014
[/TD]
[TD]1.422262
[/TD]
[TD][/TD]
[TD]10/07/2014
[/TD]
[TD]1.440733
[/TD]
[TD][/TD]
[TD]10/07/2014
[/TD]
[TD]104.84
[/TD]
[TD][/TD]
[TD]10/07/2014
[/TD]
[TD]1.0309
[/TD]
[/TR]
[TR]
[TD]11/07/2014
[/TD]
[TD]1.395605
[/TD]
[TD][/TD]
[TD]11/07/2014
[/TD]
[TD]1.453833
[/TD]
[TD][/TD]
[TD]11/07/2014
[/TD]
[TD]104.97
[/TD]
[TD][/TD]
[TD]11/07/2014
[/TD]
[TD]1.02435
[/TD]
[/TR]
[TR]
[TD]12/07/2014
[/TD]
[TD]1.368948
[/TD]
[TD][/TD]
[TD]12/07/2014
[/TD]
[TD]1.466933
[/TD]
[TD][/TD]
[TD]12/07/2014
[/TD]
[TD]105.1
[/TD]
[TD][/TD]
[TD]12/07/2014
[/TD]
[TD]1.0178
[/TD]
[/TR]
[TR]
[TD]13/07/2014
[/TD]
[TD]1.34229
[/TD]
[TD][/TD]
[TD]13/07/2014
[/TD]
[TD]1.480033
[/TD]
[TD][/TD]
[TD]13/07/2014
[/TD]
[TD]105.23
[/TD]
[TD][/TD]
[TD]13/07/2014
[/TD]
[TD]1.01125
[/TD]
[/TR]
[TR]
[TD]14/07/2014
[/TD]
[TD]1.315633
[/TD]
[TD][/TD]
[TD]14/07/2014
[/TD]
[TD]1.493133
[/TD]
[TD][/TD]
[TD]14/07/2014
[/TD]
[TD]105.36
[/TD]
[TD][/TD]
[TD]14/07/2014
[/TD]
[TD]1.0047
[/TD]
[/TR]
[TR]
[TD]15/07/2014
[/TD]
[TD]1.288976
[/TD]
[TD][/TD]
[TD]15/07/2014
[/TD]
[TD]1.506233
[/TD]
[TD][/TD]
[TD]15/07/2014
[/TD]
[TD]105.49
[/TD]
[TD][/TD]
[TD]15/07/2014
[/TD]
[TD]0.99815
[/TD]
[/TR]
[TR]
[TD]16/07/2014
[/TD]
[TD]1.262319
[/TD]
[TD][/TD]
[TD]16/07/2014
[/TD]
[TD]1.519333
[/TD]
[TD][/TD]
[TD]16/07/2014
[/TD]
[TD]105.62
[/TD]
[TD][/TD]
[TD]16/07/2014
[/TD]
[TD]0.9916
[/TD]
[/TR]
[TR]
[TD]17/07/2014
[/TD]
[TD]1.235662
[/TD]
[TD][/TD]
[TD]17/07/2014
[/TD]
[TD]1.532433
[/TD]
[TD][/TD]
[TD]17/07/2014
[/TD]
[TD]105.75
[/TD]
[TD][/TD]
[TD]17/07/2014
[/TD]
[TD]0.98505
[/TD]
[/TR]
[TR]
[TD]18/07/2014
[/TD]
[TD]1.209005
[/TD]
[TD][/TD]
[TD]18/07/2014
[/TD]
[TD]1.545533
[/TD]
[TD][/TD]
[TD]18/07/2014
[/TD]
[TD]105.88
[/TD]
[TD][/TD]
[TD]18/07/2014
[/TD]
[TD]0.9785
[/TD]
[/TR]
[TR]
[TD]19/07/2014
[/TD]
[TD]1.182348
[/TD]
[TD][/TD]
[TD]19/07/2014
[/TD]
[TD]1.558633
[/TD]
[TD][/TD]
[TD]19/07/2014
[/TD]
[TD]106.01
[/TD]
[TD][/TD]
[TD]19/07/2014
[/TD]
[TD]0.97195
[/TD]
[/TR]
</tbody>[/TABLE]
I want to run a regression analysis between 2 pairs of currencies, dependent on what I specify, with an outcome using t-test to see whether results are significant or not. I want this to be run via macro, where I type in an input cell the 2 pairs I wish to run the regression analysis on, the macro recognises the pairs I write and runs a regression for this based on those pairs 'rate' data. Then using t statistics produces an output saying whether it is significant or no (correlation).
Finally, whatever I choose to run a regression on, in a third sheet the history of outcomes are listed and accumulates as a database every time I run the macro for a new attempt. Seems like a lot but any help would be appreciated!
Thanks