dynamic table

Hlatigo

Well-known Member
Joined
Jun 3, 2002
Messages
677
I have two tables one is vertical and the other is horizontal. the vertical has a monthly bucket column and a daily date column. because there are multiple business days in a month the montlhy bucket will be repeated numerous times.

the horizontal table will have the monthly bucket only once and all dates underneath...this will make data more workable. So my problem is how do i transfer data from verticial to horizontal.

I copied unique months column so I only get one monthly period in the header and from there i want one coloumn of all the dates and so horizontal wud look like
Dates, Mrkt Name, 200801, 200802, 200803
01/01/08, WTI, 120.03,122.90,130.34


Hope this make sense. I was thinking of a For each cell and use a vlookup on the old table.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

eblake

Active Member
Joined
Aug 18, 2004
Messages
258
If your just going to copy/paste the data you could use Paste Special > Transpose to change the direction to column vs row. If your looking to do something different maybe you can post a sample sheet?
 
Upvote 0

Hlatigo

Well-known Member
Joined
Jun 3, 2002
Messages
677
this is how the data comes in. I was thinking for each cell and then use the month bucket as the lookup value to fill in everything else...hope someone can come uip with an idea
Correl_Temp.xls
ABCDEF
5cmdty_codemkt_codeprice_source_codetrading_prdprice_quote_dateavg_closed_price
6WTINYMEXINTERNAL2008043/27/2008104.48
7WTINYMEXINTERNAL2008043/28/2008104.48
8WTINYMEXINTERNAL2008043/31/2008104.48
9WTINYMEXINTERNAL2008053/27/2008107.58
10WTINYMEXINTERNAL2008053/28/2008105.62
11WTINYMEXINTERNAL2008053/31/2008101.58
12WTINYMEXINTERNAL2008054/1/2008100.98
13WTINYMEXINTERNAL2008054/2/2008104.83
14WTINYMEXINTERNAL2008054/3/2008103.83
15WTINYMEXINTERNAL2008054/4/2008106.23
Prices




Here is the end table of what i would like to see
CorrelationTable.xls
ABCDEFG
4cmdty_codemkt_codeprice_source_codeprice_quote_date200705200706200707
5KEROCFOBAGLDINTERNAL29-May-0776.457277.059377.8553
6KEROCFOBAGLDINTERNAL30-May-0777.190777.726278.4993
7KEROCFOBAGLDINTERNAL31-May-0777.56278.052778.6317
8KEROCFOBAGLDINTERNAL01-Jun-0778.838478.838479.4143
9KEROCFOBAGLDINTERNAL04-Jun-0780.611480.611481.2853
10KEROCFOBAGLDINTERNAL05-Jun-0780.006880.006880.5936
11KEROCFOBAGLDINTERNAL06-Jun-0779.923679.923680.5042
12KEROCFOBAGLDINTERNAL07-Jun-0780.142980.142980.7388
13KEROCFOBAGLDINTERNAL08-Jun-0777.181677.181677.7253
14KEROCFOBAGLDINTERNAL11-Jun-0779.293879.293879.3712
15KEROCFOBAGLDINTERNAL12-Jun-0778.303478.303478.4877
16KEROCFOBAGLDINTERNAL13-Jun-0779.916479.916480.0579
17KEROCFOBAGLDINTERNAL14-Jun-0781.011681.011681.2764
18KEROCFOBAGLDINTERNAL15-Jun-0781.224581.224581.468
19KEROCFOBAGLDINTERNAL18-Jun-0781.995681.995682.2391
20KEROCFOBAGLDINTERNAL19-Jun-0781.627881.627881.8927
21KEROCFOBAGLDINTERNAL20-Jun-0780.473580.473580.7384
22KEROCFOBAGLDINTERNAL21-Jun-0781.623681.623681.8671
23KEROCFOBAGLDINTERNAL22-Jun-0782.770682.770682.9584
24KEROCFOBAGLDINTERNAL25-Jun-0782.763982.763982.973
25KEROCFOBAGLDINTERNAL26-Jun-0780.936180.936181.1239
26KEROCFOBAGLDINTERNAL27-Jun-0781.873181.873181.8172
27KEROCFOBAGLDINTERNAL28-Jun-0781.673981.673981.4608
28KEROCFOBAGLDINTERNAL29-Jun-0782.205482.205481.9922
Financial Leg
 
Upvote 0

Forum statistics

Threads
1,191,204
Messages
5,985,265
Members
439,953
Latest member
suchitha

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
Top