Need help with excel

nnos

Board Regular
Joined
Feb 7, 2012
Messages
73
I have a problem arranging my data in excel. I want to figure out to do it quickly. Currently I have a data that look like this: See Figure 1
Figure 1
Date/Hour012345678
1212080.1070.1080.1170.1190.1270.1100.1050.1050.103
1212090.1020.1010.1010.1000.1010.1010.1020.1020.106
1212100.1160.1160.1120.1070.1070.1050.1040.1040.105
1212110.1020.1030.1020.1030.1020.1020.1020.1030.111
1212120.1190.1190.1200.1220.1950.2400.1700.1430.140
1212130.1320.1210.1020.1030.1000.1000.1010.1050.109
1212140.1140.1160.1160.1170.1170.1160.1200.1240.124
1212150.1320.1190.1200.1210.1190.1190.1220.1240.124
1212160.1420.1280.1320.1260.1240.1240.1260.1250.129
1212170.1140.1140.1160.1160.1170.1160.1130.1140.114
1212180.1200.1450.1560.1640.1430.1390.1260.1130.138

<colgroup><col><col span="9"></colgroup><tbody>
</tbody>

I want to some how transpose it to look like this:
Figure 2:
datehourMean
12120800.107
12112810.108
12112820.117
12112830.119
12112840.127
12112850.110
12112860.105
12112870.105
12120900.102
12120910.101
12120920.101
12120930.100
12120940.101
12120950.101
12120960.102
12120970.102
12121000.116
12121010.116
12121020.112
12121030.107
12121040.107
12121050.105
12121060.104
12121070.104
12121100.102
12121110.103
12121120.102
12121130.103
12121140.102
12121150.102
12121160.102
12121170.103
12121200.119
12121210.119
12121220.120
12121230.122
12121240.195
12121250.240
12121260.170
12121270.143

<colgroup><col style="width:48pt" span="3" width="64"> </colgroup><tbody>
</tbody>

I did Figure 2 manually by transposing Figure 1 and rearranging them to look like that. I was wondering if there is a way i can do that more quickly. any thing would help. thank you.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
A​
B​
C​
D​
E​
F​
G​
H​
I​
J​
K​
L​
1​
Date/Hour​
0​
1​
2​
3​
4​
5​
6​
7​
8​
2​
121208​
0.107​
0.108​
0.117​
0.119​
0.127​
0.110​
0.105​
0.105​
0.103​
3​
121209​
0.102​
0.101​
0.101​
0.100​
0.101​
0.101​
0.102​
0.102​
0.106​
4​
121210​
0.116​
0.116​
0.112​
0.107​
0.107​
0.105​
0.104​
0.104​
0.105​
5​
121211​
0.102​
0.103​
0.102​
0.103​
0.102​
0.102​
0.102​
0.103​
0.111​
6​
121212​
0.119​
0.119​
0.120​
0.122​
0.195​
0.240​
0.170​
0.143​
0.140​
7​
121213​
0.132​
0.121​
0.102​
0.103​
0.100​
0.100​
0.101​
0.105​
0.109​
8​
121214​
0.114​
0.116​
0.116​
0.117​
0.117​
0.116​
0.120​
0.124​
0.124​
9​
121215​
0.132​
0.119​
0.120​
0.121​
0.119​
0.119​
0.122​
0.124​
0.124​
10​
121216​
0.142​
0.128​
0.132​
0.126​
0.124​
0.124​
0.126​
0.125​
0.129​
11​
121217​
0.114​
0.114​
0.116​
0.116​
0.117​
0.116​
0.113​
0.114​
0.114​
12​
121218​
0.120​
0.145​
0.156​
0.164​
0.143​
0.139​
0.126​
0.113​
0.138​
13​
14​
121208​
0​
0.107​
A14: =INDEX(A$2:A$12, INT((ROWS(C$14:Me)-1) / COLUMNS($B$1:$J$1) + 1))
15​
121208​
1​
0.108​
B14: =INDEX($B$1:$J$1, MOD(ROWS(A$14:B14)-1, COLUMNS($B$1:$J$1)) + 1)
16​
121208​
2​
0.117​
C14: =INDEX($B$2:$J$12, INT((ROWS(C$14:Me)-1) / COLUMNS($B$1:$J$1) + 1), MOD(ROWS(A$14:B14)-1, COLUMNS($B$1:$J$1)) + 1)
17​
121208​
3​
0.119​
18​
121208​
4​
0.127​
19​
121208​
5​
0.110​
20​
121208​
6​
0.105​
21​
121208​
7​
0.105​
22​
121208​
8​
0.103​
23​
121209​
0​
0.102​
24​
121209​
1​
0.101​
 
Upvote 0
Thank you for the respond. I was wondering whats the =INDEX(A$2:A$12, INT((ROWS(C$14:Me)-1) / COLUMNS($B$1:$J$1) + 1)) , "Me" stand for? i tried putting your functions in excel and it game me a "#name" error.
 
Upvote 0
Ah, sorry -- it's just habit:

K​
14​
A14: =INDEX(A$2:A$12, INT((ROWS(A$14:A14)-1) / COLUMNS($B$1:$J$1) + 1))
15​
B14: =INDEX($B$1:$J$1, MOD(ROWS(B$14:B14)-1, COLUMNS($B$1:$J$1)) + 1)
16​
C14: =INDEX($B$2:$J$12, INT((ROWS(C$14:C14)-1) / COLUMNS($B$1:$J$1) + 1), MOD(ROWS(A$14:B14)-1, COLUMNS($B$1:$J$1)) + 1)
 
Upvote 0
Ah, sorry -- it's just habit:

K​
14​
A14: =INDEX(A$2:A$12, INT((ROWS(A$14:A14)-1) / COLUMNS($B$1:$J$1) + 1))
15​
B14: =INDEX($B$1:$J$1, MOD(ROWS(B$14:B14)-1, COLUMNS($B$1:$J$1)) + 1)
16​
C14: =INDEX($B$2:$J$12, INT((ROWS(C$14:C14)-1) / COLUMNS($B$1:$J$1) + 1), MOD(ROWS(A$14:B14)-1, COLUMNS($B$1:$J$1)) + 1)

<tbody>
</tbody>

Thank you for you help!

How long have you been working with excel? This is amazing. I was wondering if you know any classes that are offered online for things like this?
 
Upvote 0
You're welcome.

A long time, starting with VisiCalc in the early 80's.
 
Upvote 0

Forum statistics

Threads
1,215,425
Messages
6,124,826
Members
449,190
Latest member
rscraig11

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
Back
Top