Hello all,
I'm hoping someone can help me out utilizing code to transpose monthly data. I've got five years worth of data sorted by year but the months are spread across columns. I would like to have one column for amount and a new column to distinguish what month that was transposed.
I'm sure I may not be explaining it properly, but hopefully the attached can help out....
Thanks,
Drew
I'm hoping someone can help me out utilizing code to transpose monthly data. I've got five years worth of data sorted by year but the months are spread across columns. I would like to have one column for amount and a new column to distinguish what month that was transposed.
I'm sure I may not be explaining it properly, but hopefully the attached can help out....
Thanks,
Drew
Book1 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | |||
1 | data in the master sheet | |||||||||||
2 | company | acct_no | rollup_cd | rollup_lname | reclass_ind | year | meb_jan | meb_feb | meb_mar | etc.. | ||
3 | 001 | 000999990 | A9%%%0A1 | Drew Acct 0 | YY | 2000 | (2.57) | (1.46) | (149.45) | |||
4 | 001 | 000999991 | A9%%%0A1 | Drew Acct 1 | YY | 2001 | 448.62 | 15,648.49 | 224.04 | |||
5 | 001 | 000999992 | A9%%%0A1 | Drew Acct 2 | YY | 2002 | (102.28) | (766.17) | (8,954.02) | |||
6 | Data goes down approx 3k lines (approx 400 rows per year) sorted by year | |||||||||||
7 | ||||||||||||
8 | ||||||||||||
9 | copy data to another worksheet as follows.. | |||||||||||
10 | company | acct_no | rollup_cd | rollup_lname | reclass_ind | year | meb | mth | ||||
11 | 001 | 000999990 | A9%%%0A1 | Drew Acct 0 | YY | 2000 | (2.57) | meb_jan | ||||
12 | 001 | 000999991 | A9%%%0A1 | Drew Acct 1 | YY | 2001 | 448.62 | meb_jan | ||||
13 | 001 | 000999992 | A9%%%0A1 | Drew Acct 2 | YY | 2002 | (102.28) | meb_jan | ||||
14 | 001 | 000999990 | A9%%%0A1 | Drew Acct 0 | YY | 2000 | (1.46) | meb_feb | ||||
15 | 001 | 000999991 | A9%%%0A1 | Drew Acct 1 | YY | 2001 | 15,648.49 | meb_feb | ||||
16 | 001 | 000999992 | A9%%%0A1 | Drew Acct 2 | YY | 2002 | (766.17) | meb_feb | ||||
17 | 001 | 000999990 | A9%%%0A1 | Drew Acct 0 | YY | 2000 | (149.45) | meb_mar | ||||
18 | 001 | 000999991 | A9%%%0A1 | Drew Acct 1 | YY | 2001 | 224.04 | meb_mar | ||||
19 | 001 | 000999992 | A9%%%0A1 | Drew Acct 2 | YY | 2002 | (8,954.02) | meb_mar | ||||
Sheet2 |