GusAlmeida
New Member
- Joined
- Apr 23, 2014
- Messages
- 5
I have a list of stocks as shown here:[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A UN Equity[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]AA UN Equity[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]AAPL UN Equity[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]....[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I will create a new column that has the Date (a certain time period). Example:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]18-04-2014[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]19-04-2014[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]20-04-2014[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]21-04-2014[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]22-04-2014[/TD]
[/TR]
</tbody>[/TABLE]
Now, how can I put the name of the stocks on the first column for each date. As shown here:
[TABLE="width: 500"]
<tbody>[TR]
[TD]A UN Equity[/TD]
[TD]18-04-2014[/TD]
[/TR]
[TR]
[TD]A UN Equity[/TD]
[TD]19-04-2014[/TD]
[/TR]
[TR]
[TD]A UN Equity[/TD]
[TD]20-04-2014[/TD]
[/TR]
[TR]
[TD]A UN Equity[/TD]
[TD]21-04-2014[/TD]
[/TR]
[TR]
[TD]A UN Equity[/TD]
[TD]22-04-2014[/TD]
[/TR]
[TR]
[TD]AA UN Equity[/TD]
[TD]18-04-2014[/TD]
[/TR]
[TR]
[TD]AA UN Equity[/TD]
[TD]19-04-2014[/TD]
[/TR]
[TR]
[TD]AA UN Equity[/TD]
[TD]20-04-2014[/TD]
[/TR]
[TR]
[TD]AA UN Equity[/TD]
[TD]21-04-2014[/TD]
[/TR]
[TR]
[TD]AA UN Equity[/TD]
[TD]22-04-2014[/TD]
[/TR]
[TR]
[TD]AAPL UN Equity[/TD]
[TD]18-04-2014[/TD]
[/TR]
[TR]
[TD]AAPL UN Equity[/TD]
[TD]19-04-2014[/TD]
[/TR]
[TR]
[TD]AAPL UN Equity[/TD]
[TD]20-04-2014[/TD]
[/TR]
[TR]
[TD]AAPL UN Equity[/TD]
[TD]21-04-2014[/TD]
[/TR]
[TR]
[TD]AAPL UN Equity[/TD]
[TD]22-04-2014[/TD]
[/TR]
</tbody>[/TABLE]
As you can imagine I don't have 3 stocks only, I have hundreds of them.
<tbody>[TR]
[TD][/TD]
[TD]A UN Equity[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]AA UN Equity[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]AAPL UN Equity[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]....[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I will create a new column that has the Date (a certain time period). Example:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]18-04-2014[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]19-04-2014[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]20-04-2014[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]21-04-2014[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]22-04-2014[/TD]
[/TR]
</tbody>[/TABLE]
Now, how can I put the name of the stocks on the first column for each date. As shown here:
[TABLE="width: 500"]
<tbody>[TR]
[TD]A UN Equity[/TD]
[TD]18-04-2014[/TD]
[/TR]
[TR]
[TD]A UN Equity[/TD]
[TD]19-04-2014[/TD]
[/TR]
[TR]
[TD]A UN Equity[/TD]
[TD]20-04-2014[/TD]
[/TR]
[TR]
[TD]A UN Equity[/TD]
[TD]21-04-2014[/TD]
[/TR]
[TR]
[TD]A UN Equity[/TD]
[TD]22-04-2014[/TD]
[/TR]
[TR]
[TD]AA UN Equity[/TD]
[TD]18-04-2014[/TD]
[/TR]
[TR]
[TD]AA UN Equity[/TD]
[TD]19-04-2014[/TD]
[/TR]
[TR]
[TD]AA UN Equity[/TD]
[TD]20-04-2014[/TD]
[/TR]
[TR]
[TD]AA UN Equity[/TD]
[TD]21-04-2014[/TD]
[/TR]
[TR]
[TD]AA UN Equity[/TD]
[TD]22-04-2014[/TD]
[/TR]
[TR]
[TD]AAPL UN Equity[/TD]
[TD]18-04-2014[/TD]
[/TR]
[TR]
[TD]AAPL UN Equity[/TD]
[TD]19-04-2014[/TD]
[/TR]
[TR]
[TD]AAPL UN Equity[/TD]
[TD]20-04-2014[/TD]
[/TR]
[TR]
[TD]AAPL UN Equity[/TD]
[TD]21-04-2014[/TD]
[/TR]
[TR]
[TD]AAPL UN Equity[/TD]
[TD]22-04-2014[/TD]
[/TR]
</tbody>[/TABLE]
As you can imagine I don't have 3 stocks only, I have hundreds of them.