Restructuring data into a table format

Patrick020

New Member
Joined
Mar 20, 2018
Messages
15
Hi everyone <o:p></o:p>
<o:p></o:p>
I have a large spreadsheet containing data around different schemes. Each scheme has a number of phases up to phase 7 and text is added around the status of each phase. <o:p></o:p>
<o:p></o:p>
I would like to change the structure of this data so that it is in the table format seen below in A1:H5. <o:p></o:p>
<o:p></o:p>
The data is currently structured as below in A8:C20. <o:p></o:p>
<o:p></o:p>
Just to make the request clear I have put the correct output in A23:H27 below. As you can see all we are doing is moving the data into a table format where the text updates are aligned to the correct phase of each scheme. <o:p></o:p>
<o:p></o:p>
If there is a formula that I can drag from B2:H5 which pulls this data that would be brilliant (the spreadsheet has over 1,000 rows so ideally not a manual job!). <o:p></o:p>
<o:p></o:p>
A<o:p></o:p>
B<o:p></o:p>
C<o:p></o:p>
D<o:p></o:p>
E<o:p></o:p>
F<o:p></o:p>
G<o:p></o:p>
H<o:p></o:p>
1<o:p></o:p>
1<o:p></o:p>
2<o:p></o:p>
3<o:p></o:p>
4<o:p></o:p>
5<o:p></o:p>
6<o:p></o:p>
7<o:p></o:p>
2<o:p></o:p>
Scheme A <o:p></o:p>
3<o:p></o:p>
Scheme B<o:p></o:p>
4<o:p></o:p>
Scheme C<o:p></o:p>
5<o:p></o:p>
Scheme D<o:p></o:p>
6<o:p></o:p>
7<o:p></o:p>
Input data <o:p></o:p>
8<o:p></o:p>
Scheme A<o:p></o:p>
3<o:p></o:p>
Text 1<o:p></o:p>
9<o:p></o:p>
Scheme A<o:p></o:p>
4<o:p></o:p>
Text 2<o:p></o:p>
10<o:p></o:p>
Scheme A<o:p></o:p>
5<o:p></o:p>
Text 3<o:p></o:p>
11<o:p></o:p>
Scheme B<o:p></o:p>
2<o:p></o:p>
Text 4<o:p></o:p>
12<o:p></o:p>
Scheme B<o:p></o:p>
3<o:p></o:p>
Text 5<o:p></o:p>
13<o:p></o:p>
Scheme B<o:p></o:p>
4<o:p></o:p>
Text 6<o:p></o:p>
14<o:p></o:p>
Scheme B<o:p></o:p>
5<o:p></o:p>
Text 7<o:p></o:p>
15<o:p></o:p>
Scheme C<o:p></o:p>
6<o:p></o:p>
Text 8<o:p></o:p>
16<o:p></o:p>
Scheme C<o:p></o:p>
7<o:p></o:p>
Text 9<o:p></o:p>
17<o:p></o:p>
Scheme D <o:p></o:p>
1<o:p></o:p>
Text 10<o:p></o:p>
18<o:p></o:p>
Scheme D <o:p></o:p>
2<o:p></o:p>
Text 11<o:p></o:p>
19<o:p></o:p>
Scheme D <o:p></o:p>
3<o:p></o:p>
Text 12<o:p></o:p>
20<o:p></o:p>
Scheme D <o:p></o:p>
4<o:p></o:p>
Text 13<o:p></o:p>
21<o:p></o:p>
22<o:p></o:p>
23<o:p></o:p>
Correct Output<o:p></o:p>
1<o:p></o:p>
2<o:p></o:p>
3<o:p></o:p>
4<o:p></o:p>
5<o:p></o:p>
6<o:p></o:p>
7<o:p></o:p>
24<o:p></o:p>
Scheme A <o:p></o:p>
Text 1<o:p></o:p>
Text 2<o:p></o:p>
Text 3<o:p></o:p>
25<o:p></o:p>
Scheme B<o:p></o:p>
Text 4<o:p></o:p>
Text 5<o:p></o:p>
Text 6<o:p></o:p>
Text 7<o:p></o:p>
26<o:p></o:p>
Scheme C<o:p></o:p>
Text 8<o:p></o:p>
Text 9<o:p></o:p>
27<o:p></o:p>
Scheme D<o:p></o:p>
Text 10<o:p></o:p>
Text 11<o:p></o:p>
Text 12<o:p></o:p>
Text 13<o:p></o:p>

<tbody>
</tbody>
<o:p></o:p>
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
I think this ought to do it.

Copy B2 across and down. Note that your Correct Output table is incorrect for Scheme B.


Book1
ABCDEFGH
1Correct Output1234567
2Scheme A Text 1Text 2Text 3
3Scheme BText 4Text 5Text 6Text 7
4Scheme CText 8Text 9
5Scheme DText 10Text 11Text 12Text 13
Sheet64
Cell Formulas
RangeFormula
B2{=IFNA(INDEX($C$8:$C$20,MATCH($A2&B$1,$A$8:$A$20&$B$8:$B$20,0)),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,974
Messages
6,122,536
Members
449,088
Latest member
RandomExceller01

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