data rearrangement

obermannj

New Member
Joined
Sep 14, 2023
Messages
2
Office Version
  1. 365
Platform
  1. MacOS
My dataset has 3 replicates for each of 8 variables arranged one after the other across a row. I need to rearrange them into 3 columns for each row. I have 714 rows to be rearranged, but this number can vary.
There are extra columns at the beginning and end so I will have to exclude those. I can handle transforming the name separately but I don't know how to rearrange the data efficiently. Here is a sample of the starting sheet:

LP MDA Cells_corrected modified.xlsm
CDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAM
1NameLP_MB_Cells_01_062LP_MB_Cells_02_090LP_MB_Cells_03_064LP_MB_Cells_04_087LP_MB_Cells_05_072LP_MB_Cells_06_058LP_MB_Cells_07_086LP_MB_Cells_08_077LP_MB_Cells_09_078LP_MB_Cells_10_081LP_MB_Cells_11_092LP_MB_Cells_12_091LP_MB_Cells_13_075LP_MB_Cells_14_079LP_MB_Cells_15_069LP_MB_Cells_16_059LP_MB_Cells_17_089LP_MB_Cells_18_084LP_MB_Cells_19_070LP_MB_Cells_20_082LP_MB_Cells_21_083LP_MB_Cells_22_057LP_MB_Cells_23_066LP_MB_Cells_24_088LP_MB_Cells_25_071LP_MB_Cells_26_063LP_MB_Cells_27_056LP_MB_Cells_28_068LP_MB_Cells_29_073LP_MB_Cells_30_055LP_MB_Cells_31_065LP_MB_Cells_32_060LP_MB_Cells_33_074LP_MB_Cells_34_061LP_MB_Cells_35_085LP_MB_Cells_36_076
2Glucose_00.832220.900130.845730.897250.890130.858730.905640.882740.923970.82260.903220.892290.860660.903980.86580.789920.830710.81630.862360.860150.874630.65040.865210.881330.843020.72770.671840.613070.839160.894830.863300.929210.719450.880920.8235
3Glucose_10000000000000000000.00087000000000.0037800000000
4Glucose_20.084760.033510.033450.000240.017070.031330.040420.040780.008840.025480.011660.055780.031640.031910.030670.008150.040590.0099800.023270.058520.0994700.052170.053610.033250.008640.046530.0574200.06026000.058550.037650
5Glucose_30000.0136500000000000.008570000000000000000.0071100000
6Glucose_40.000500000.00739000000000000000000.00870000.00247000000.0031200
7Glucose_50.007200.004530.0455300.00768000.015040.0045500.005680.008640.04426000.018680.0461300.0334900.011390.011690.02090.00515000.002150.0195200000.0361400
8Glucose_60.075320.066360.116280.043330.092790.094880.053940.076480.052150.147370.085120.046250.099060.019840.094950.201930.110010.127590.136770.083090.066860.238740.123110.03690.098210.239040.319520.331990.08390.105170.0693310.070790.182740.081440.1765
9Glucose-6-phosphate_00.24650.285510.270890.205240.248220.327960.178880.196940.236210.163310.225960.230810.227940.246810.281930.190220.233540.256960.405860.498310.457050.312740.394230.514730.583880.565010.606530.426830.562180.516630.527860.525890.568960.402730.438340.53503
10Glucose-6-phosphate_1000000000000000000000000000000000000
11Glucose-6-phosphate_2000000000000000000000000000000000000
12Glucose-6-phosphate_30.005620.003960.005850.002250.002030.001790.003990.003940.00370.0025300.002590.003020.002520.003460.001930.002940.000650.002950.002210.002430.00070.000490.000680.000560.000380.000420.000620.0002900.000310.0005800.000920.000460
13Glucose-6-phosphate_40.0008200.0008900.000630.000330.001550.000680.000680.000540.00040.000847.9E-053E-050.001670.000770.0014500.000990.000970.0007200.000314.6E-056.7E-0500000.000110005.4E-0500
14Glucose-6-phosphate_5000000000000000000000000000000000000
15Glucose-6-phosphate_60.747050.710530.722380.792520.749120.669920.815580.798430.759410.833620.773640.765770.768950.750650.712940.807080.762070.74240.59020.498510.53980.686560.604980.484550.415490.434610.393050.572550.437530.483260.471830.473530.431040.59630.56120.46497
16Fructose-bisphosphate_00.023080.02420.024640.018310.01880.019910.019210.02220.0220.016480.016560.015610.018920.017160.019530.01430.019950.012830.01980.023740.021370.014460.019450.018950.020440.024490.019110.01560.017650.015870.019410.018770.021030.01340.013710.0148
17Fructose-bisphosphate_1000000000000000000000000000000000000
18Fructose-bisphosphate_2000000000000000000000000000000000000
19Fructose-bisphosphate_30.017580.018990.017450.012550.01470.014490.015680.014490.01740.012280.01130.011770.014510.016380.017750.012140.014940.009660.017870.023540.020990.012510.014810.014580.01670.018530.017660.01180.01430.013310.014380.013310.01480.009570.010070.01068
20Fructose-bisphosphate_400000000000000000000.0002700000.0002400000004.8E-05000
21Fructose-bisphosphate_5000000000000000000000000000000000000
22Fructose-bisphosphate_60.959340.956810.95790.969140.96650.965610.965110.963310.960590.971240.972140.972620.966570.966460.962720.973560.965110.977510.962330.952450.957640.973030.965740.966470.962630.956980.963220.972610.968040.970820.966210.967920.964120.977030.976220.97452
23DHAP_00.005230.000890.005550.007760.004410.009420.007560.005560.007660.0056900.005650.009960.003850.013660.002621.1E-050.003060.009440.009750.011650.004070.0080.007810.008490.008970.00740.005170.005730.002780.0065900.006440.00250.009470.00543
24DHAP_100000000000000000000007.7E-050000000000000
25DHAP_200.0131300.047160000000.027540.04717000000000.0009200000000000000.002560
26DHAP_30.994770.985970.994450.945080.995590.990580.992440.994440.992340.994310.972460.947180.990040.996150.986340.997380.999990.996940.990560.990250.987430.995930.991930.992190.991510.991030.99260.994830.994270.997220.9934110.993560.99750.987970.99457
272-PG_00.018350.020810.019430.016510.014290.019530.01280.011480.019590.012610.021470.015050.014370.016560.018460.011740.013450.008780.016510.022890.016430.007670.014740.019310.020340.023310.024840.022360.022310.015710.022210.017060.021930.014140.011050.01147
282-PG_1000000000000000000000000000000000007.2E-05
Input Data
Cell Formulas
RangeFormula
C2:C28C2=CONCAT(A2,"_",B2)


I want to have this:
Cell Formulas
RangeFormula
A1A1='Input Data'!$C$2
D1D1='Input Data'!$C$3
G1G1='Input Data'!$C$4
J1J1='Input Data'!$C$5
M1M1='Input Data'!$C$6
P1P1='Input Data'!$C$7
S1S1='Input Data'!$C$8
V1V1='Input Data'!$C$9
Y1Y1='Input Data'!$C$10
AB1AB1='Input Data'!$C$11
A2A2='Input Data'!$D$2
B2B2='Input Data'!$E$2
C2C2='Input Data'!$F$2
D2D2='Input Data'!$D$3
E2E2='Input Data'!$E$3
F2F2='Input Data'!$F$3
G2G2='Input Data'!$D$4
H2H2='Input Data'!$E$4
I2I2='Input Data'!$F$4
J2J2='Input Data'!$D$5
K2K2='Input Data'!$E$5
L2L2='Input Data'!$F$5
M2M2='Input Data'!$D$6
N2N2='Input Data'!$E$6
O2O2='Input Data'!$F$6
P2P2='Input Data'!$D$7
Q2Q2='Input Data'!$E$7
R2R2='Input Data'!$F$7
S2S2='Input Data'!$D$8
T2T2='Input Data'!$E$8
U2U2='Input Data'!$F$8
V2V2='Input Data'!$D$9
W2W2='Input Data'!$E$9
X2X2='Input Data'!$F$9
Y2Y2='Input Data'!$D$10
Z2Z2='Input Data'!$E$10
AA2AA2='Input Data'!$F$10
AB2AB2='Input Data'!$D$11
AC2AC2='Input Data'!$E$11
A3A3='Input Data'!$G$2
B3B3='Input Data'!$H$2
C3C3='Input Data'!$I$2
D3D3='Input Data'!$G$3
E3E3='Input Data'!$H$3
F3F3='Input Data'!$I$3
G3G3='Input Data'!$G$4
H3H3='Input Data'!$H$4
I3I3='Input Data'!$I$4
J3J3='Input Data'!$G$5
K3K3='Input Data'!$H$5
L3L3='Input Data'!$I$5
M3M3='Input Data'!$G$6
N3N3='Input Data'!$H$6
O3O3='Input Data'!$I$6
P3P3='Input Data'!$G$7
Q3Q3='Input Data'!$H$7
R3R3='Input Data'!$I$7
S3S3='Input Data'!$G$8
T3T3='Input Data'!$H$8
U3U3='Input Data'!$I$8
V3V3='Input Data'!$G$9
W3W3='Input Data'!$H$9
X3X3='Input Data'!$I$9
Y3Y3='Input Data'!$G$10
Z3Z3='Input Data'!$H$10
AA3AA3='Input Data'!$I$10
AB3AB3='Input Data'!$G$11
AC3AC3='Input Data'!$H$11
A4A4='Input Data'!$J$2
B4B4='Input Data'!$K$2
C4C4='Input Data'!$L$2
D4D4='Input Data'!$J$3
E4E4='Input Data'!$K$3
F4F4='Input Data'!$L$3
G4G4='Input Data'!$J$4
H4H4='Input Data'!$K$4
I4I4='Input Data'!$L$4
J4J4='Input Data'!$J$5
K4K4='Input Data'!$K$5
L4L4='Input Data'!$L$5
M4M4='Input Data'!$J$6
N4N4='Input Data'!$K$6
O4O4='Input Data'!$L$6
P4P4='Input Data'!$J$7
Q4Q4='Input Data'!$K$7
R4R4='Input Data'!$L$7
S4S4='Input Data'!$J$8
T4T4='Input Data'!$K$8
U4U4='Input Data'!$L$8
V4V4='Input Data'!$J$9
W4W4='Input Data'!$K$9
X4X4='Input Data'!$L$9
Y4Y4='Input Data'!$J$10
Z4Z4='Input Data'!$K$10
AA4AA4='Input Data'!$L$10
AB4AB4='Input Data'!$J$11
AC4AC4='Input Data'!$K$11
A5A5='Input Data'!$M$2
B5B5='Input Data'!$N$2
C5C5='Input Data'!$O$2
D5D5='Input Data'!$M$3
E5E5='Input Data'!$N$3
F5F5='Input Data'!$O$3
G5G5='Input Data'!$M$4
H5H5='Input Data'!$N$4
I5I5='Input Data'!$O$4
J5J5='Input Data'!$M$5
K5K5='Input Data'!$N$5
L5L5='Input Data'!$O$5
M5M5='Input Data'!$M$6
N5N5='Input Data'!$N$6
O5O5='Input Data'!$O$6
P5P5='Input Data'!$M$7
Q5Q5='Input Data'!$N$7
R5R5='Input Data'!$O$7
S5S5='Input Data'!$M$8
T5T5='Input Data'!$N$8
U5U5='Input Data'!$O$8
V5V5='Input Data'!$M$9
W5W5='Input Data'!$N$9
X5X5='Input Data'!$O$9
Y5Y5='Input Data'!$M$10
Z5Z5='Input Data'!$N$10
AA5AA5='Input Data'!$O$10
AB5AB5='Input Data'!$M$11
AC5AC5='Input Data'!$N$11
A6A6='Input Data'!$P$2
B6B6='Input Data'!$Q$2
C6C6='Input Data'!$R$2
D6D6='Input Data'!$P$3
E6E6='Input Data'!$Q$3
F6F6='Input Data'!$R$3
G6G6='Input Data'!$P$4
H6H6='Input Data'!$Q$4
I6I6='Input Data'!$R$4
J6J6='Input Data'!$P$5
K6K6='Input Data'!$Q$5
L6L6='Input Data'!$R$5
M6M6='Input Data'!$P$6
N6N6='Input Data'!$Q$6
O6O6='Input Data'!$R$6
P6P6='Input Data'!$P$7
Q6Q6='Input Data'!$Q$7
R6R6='Input Data'!$R$7
S6S6='Input Data'!$P$8
T6T6='Input Data'!$Q$8
U6U6='Input Data'!$R$8
V6V6='Input Data'!$P$9
W6W6='Input Data'!$Q$9
X6X6='Input Data'!$R$9
Y6Y6='Input Data'!$P$10
Z6Z6='Input Data'!$Q$10
AA6AA6='Input Data'!$R$10
AB6AB6='Input Data'!$P$11
AC6AC6='Input Data'!$Q$11
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
How about
Excel Formula:
=VSTACK(TOROW(EXPAND('Input Data'!C2:C28,,3,"")),DROP(REDUCE("",SEQUENCE(ROWS('Input Data'!D2:AM28)),LAMBDA(x,y,HSTACK(x,WRAPROWS(TOCOL(CHOOSEROWS('Input Data'!D2:AM28,y)),3)))),,1))
 
Upvote 1
Solution
How about
Excel Formula:
=VSTACK(TOROW(EXPAND('Input Data'!C2:C28,,3,"")),DROP(REDUCE("",SEQUENCE(ROWS('Input Data'!D2:AM28)),LAMBDA(x,y,HSTACK(x,WRAPROWS(TOCOL(CHOOSEROWS('Input Data'!D2:AM28,y)),3)))),,1))
Works great. Beautiful solution.
Thanks!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,076
Messages
6,122,988
Members
449,093
Latest member
Mr Hughes

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