Hi everyone. I am trying to make a chart with demographic data, and I need to rearrange the data. I've been searching for a thread about this query, but all I found refer to Multiple Rows to Single Columns, and resulting columns on top of each other. My dataset is a table of 103x496 and I cannot do it with pivot tables.
I need help transposing Several Rows into Multiple Columns Adjacent to each other and I would prefer a formula, over VBA but all help is appreciated. Here is a small example of what I have.
<style><!--table {mso-displayed-decimal-separator:"\."; mso-displayed-thousand-separator:"\,";}@page {margin:.75in .7in .75in .7in; mso-header-margin:.3in; mso-footer-margin:.3in;}tr {mso-height-source:auto;}col {mso-width-source:auto;}br {mso-data-placement:same-cell;}td {padding-top:1px; padding-right:1px; padding-left:1px; mso-ignoreadding; color:black; font-size:12.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:Calibri, sans-serif; mso-font-charset:0; mso-number-format:General; text-align:general; vertical-align:bottom; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;}--></style>[TABLE="width: 435"]
<tbody>[TR]
[TD="width: 87"]YEAR[/TD]
[TD="width: 87"]RACE[/TD]
[TD="width: 87"]0years[/TD]
[TD="width: 87"]1years[/TD]
[TD="width: 87"]2years[/TD]
[/TR]
[TR]
[TD="align: right"]2016[/TD]
[TD]White[/TD]
[TD]c2[/TD]
[TD]d2[/TD]
[TD]e2[/TD]
[/TR]
[TR]
[TD="align: right"]2016[/TD]
[TD]Black[/TD]
[TD]c3[/TD]
[TD]d3[/TD]
[TD]e3[/TD]
[/TR]
[TR]
[TD="align: right"]2016[/TD]
[TD]Native[/TD]
[TD]c4[/TD]
[TD]d4[/TD]
[TD]e4[/TD]
[/TR]
[TR]
[TD="align: right"]2017[/TD]
[TD]White[/TD]
[TD]c5[/TD]
[TD]d5[/TD]
[TD]e5[/TD]
[/TR]
[TR]
[TD="align: right"]2017[/TD]
[TD]Black[/TD]
[TD]c6[/TD]
[TD]d6[/TD]
[TD]e6[/TD]
[/TR]
[TR]
[TD="align: right"]2017[/TD]
[TD]Native[/TD]
[TD]c7[/TD]
[TD]d7[/TD]
[TD]e7[/TD]
[/TR]
[TR]
[TD="align: right"]2018[/TD]
[TD]White[/TD]
[TD]c8[/TD]
[TD]d8[/TD]
[TD]e8[/TD]
[/TR]
[TR]
[TD="align: right"]2018[/TD]
[TD]Black[/TD]
[TD]c9[/TD]
[TD]d9[/TD]
[TD]e9[/TD]
[/TR]
[TR]
[TD="align: right"]2018[/TD]
[TD]Native[/TD]
[TD]c10[/TD]
[TD]d10[/TD]
[TD]e10[/TD]
[/TR]
[TR]
[TD="align: right"]2019[/TD]
[TD]White[/TD]
[TD]c11[/TD]
[TD]d11[/TD]
[TD]e11[/TD]
[/TR]
[TR]
[TD="align: right"]2019[/TD]
[TD]Black[/TD]
[TD]c12[/TD]
[TD]d12[/TD]
[TD]e12[/TD]
[/TR]
[TR]
[TD="align: right"]2019[/TD]
[TD]Native[/TD]
[TD]c13[/TD]
[TD]d13[/TD]
[TD]e13[/TD]
[/TR]
[TR]
[TD="align: right"]2020[/TD]
[TD]White[/TD]
[TD]c14[/TD]
[TD]d14[/TD]
[TD]e14[/TD]
[/TR]
[TR]
[TD="align: right"]2020[/TD]
[TD]Black[/TD]
[TD]c15[/TD]
[TD]d15[/TD]
[TD]e15[/TD]
[/TR]
[TR]
[TD="align: right"]2020[/TD]
[TD]Native[/TD]
[TD]c16[/TD]
[TD]d16[/TD]
[TD]e16[/TD]
[/TR]
</tbody>[/TABLE]
This is what I need
<style><!--table {mso-displayed-decimal-separator:"\."; mso-displayed-thousand-separator:"\,";}@page {margin:.75in .7in .75in .7in; mso-header-margin:.3in; mso-footer-margin:.3in;}tr {mso-height-source:auto;}col {mso-width-source:auto;}br {mso-data-placement:same-cell;}td {padding-top:1px; padding-right:1px; padding-left:1px; mso-ignoreadding; color:black; font-size:12.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:Calibri, sans-serif; mso-font-charset:0; mso-number-format:General; text-align:general; vertical-align:bottom; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;}.xl65 {text-align:center;}--></style>[TABLE="width: 870"]
<tbody>[TR]
[TD="width: 87"][/TD]
[TD="class: xl65, width: 261, colspan: 3"]0years[/TD]
[TD="class: xl65, width: 261, colspan: 3"]1years[/TD]
[TD="class: xl65, width: 261, colspan: 3"]2years[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="class: xl65"]White[/TD]
[TD="class: xl65"]Black[/TD]
[TD="class: xl65"]Native[/TD]
[TD="class: xl65"]White[/TD]
[TD="class: xl65"]Black[/TD]
[TD="class: xl65"]Native[/TD]
[TD="class: xl65"]White[/TD]
[TD="class: xl65"]Black[/TD]
[TD="class: xl65"]Native[/TD]
[/TR]
[TR]
[TD="align: right"]2016[/TD]
[TD]c2[/TD]
[TD]c3[/TD]
[TD]c4[/TD]
[TD]d2[/TD]
[TD]d3[/TD]
[TD]d4[/TD]
[TD]e2[/TD]
[TD]e3[/TD]
[TD]e4[/TD]
[/TR]
[TR]
[TD="align: right"]2017[/TD]
[TD]c5[/TD]
[TD]c6[/TD]
[TD]c7[/TD]
[TD]d5[/TD]
[TD]d6[/TD]
[TD]d7[/TD]
[TD]e5[/TD]
[TD]e6[/TD]
[TD]e7[/TD]
[/TR]
[TR]
[TD="align: right"]2018[/TD]
[TD]c8[/TD]
[TD]c9[/TD]
[TD]c10[/TD]
[TD]d8[/TD]
[TD]d9[/TD]
[TD]d10[/TD]
[TD]e8[/TD]
[TD]e9[/TD]
[TD]e10[/TD]
[/TR]
[TR]
[TD="align: right"]2019[/TD]
[TD]c11[/TD]
[TD]c12[/TD]
[TD]c13[/TD]
[TD]d11[/TD]
[TD]d12[/TD]
[TD]d13[/TD]
[TD]e11[/TD]
[TD]e12[/TD]
[TD]e13[/TD]
[/TR]
[TR]
[TD="align: right"]2020[/TD]
[TD]c14[/TD]
[TD]c15[/TD]
[TD]c16[/TD]
[TD]d14[/TD]
[TD]d15[/TD]
[TD]d16[/TD]
[TD]e14[/TD]
[TD]e15[/TD]
[TD]e16[/TD]
[/TR]
</tbody>[/TABLE]
I need help transposing Several Rows into Multiple Columns Adjacent to each other and I would prefer a formula, over VBA but all help is appreciated. Here is a small example of what I have.
<style><!--table {mso-displayed-decimal-separator:"\."; mso-displayed-thousand-separator:"\,";}@page {margin:.75in .7in .75in .7in; mso-header-margin:.3in; mso-footer-margin:.3in;}tr {mso-height-source:auto;}col {mso-width-source:auto;}br {mso-data-placement:same-cell;}td {padding-top:1px; padding-right:1px; padding-left:1px; mso-ignoreadding; color:black; font-size:12.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:Calibri, sans-serif; mso-font-charset:0; mso-number-format:General; text-align:general; vertical-align:bottom; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;}--></style>[TABLE="width: 435"]
<tbody>[TR]
[TD="width: 87"]YEAR[/TD]
[TD="width: 87"]RACE[/TD]
[TD="width: 87"]0years[/TD]
[TD="width: 87"]1years[/TD]
[TD="width: 87"]2years[/TD]
[/TR]
[TR]
[TD="align: right"]2016[/TD]
[TD]White[/TD]
[TD]c2[/TD]
[TD]d2[/TD]
[TD]e2[/TD]
[/TR]
[TR]
[TD="align: right"]2016[/TD]
[TD]Black[/TD]
[TD]c3[/TD]
[TD]d3[/TD]
[TD]e3[/TD]
[/TR]
[TR]
[TD="align: right"]2016[/TD]
[TD]Native[/TD]
[TD]c4[/TD]
[TD]d4[/TD]
[TD]e4[/TD]
[/TR]
[TR]
[TD="align: right"]2017[/TD]
[TD]White[/TD]
[TD]c5[/TD]
[TD]d5[/TD]
[TD]e5[/TD]
[/TR]
[TR]
[TD="align: right"]2017[/TD]
[TD]Black[/TD]
[TD]c6[/TD]
[TD]d6[/TD]
[TD]e6[/TD]
[/TR]
[TR]
[TD="align: right"]2017[/TD]
[TD]Native[/TD]
[TD]c7[/TD]
[TD]d7[/TD]
[TD]e7[/TD]
[/TR]
[TR]
[TD="align: right"]2018[/TD]
[TD]White[/TD]
[TD]c8[/TD]
[TD]d8[/TD]
[TD]e8[/TD]
[/TR]
[TR]
[TD="align: right"]2018[/TD]
[TD]Black[/TD]
[TD]c9[/TD]
[TD]d9[/TD]
[TD]e9[/TD]
[/TR]
[TR]
[TD="align: right"]2018[/TD]
[TD]Native[/TD]
[TD]c10[/TD]
[TD]d10[/TD]
[TD]e10[/TD]
[/TR]
[TR]
[TD="align: right"]2019[/TD]
[TD]White[/TD]
[TD]c11[/TD]
[TD]d11[/TD]
[TD]e11[/TD]
[/TR]
[TR]
[TD="align: right"]2019[/TD]
[TD]Black[/TD]
[TD]c12[/TD]
[TD]d12[/TD]
[TD]e12[/TD]
[/TR]
[TR]
[TD="align: right"]2019[/TD]
[TD]Native[/TD]
[TD]c13[/TD]
[TD]d13[/TD]
[TD]e13[/TD]
[/TR]
[TR]
[TD="align: right"]2020[/TD]
[TD]White[/TD]
[TD]c14[/TD]
[TD]d14[/TD]
[TD]e14[/TD]
[/TR]
[TR]
[TD="align: right"]2020[/TD]
[TD]Black[/TD]
[TD]c15[/TD]
[TD]d15[/TD]
[TD]e15[/TD]
[/TR]
[TR]
[TD="align: right"]2020[/TD]
[TD]Native[/TD]
[TD]c16[/TD]
[TD]d16[/TD]
[TD]e16[/TD]
[/TR]
</tbody>[/TABLE]
This is what I need
<style><!--table {mso-displayed-decimal-separator:"\."; mso-displayed-thousand-separator:"\,";}@page {margin:.75in .7in .75in .7in; mso-header-margin:.3in; mso-footer-margin:.3in;}tr {mso-height-source:auto;}col {mso-width-source:auto;}br {mso-data-placement:same-cell;}td {padding-top:1px; padding-right:1px; padding-left:1px; mso-ignoreadding; color:black; font-size:12.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:Calibri, sans-serif; mso-font-charset:0; mso-number-format:General; text-align:general; vertical-align:bottom; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;}.xl65 {text-align:center;}--></style>[TABLE="width: 870"]
<tbody>[TR]
[TD="width: 87"][/TD]
[TD="class: xl65, width: 261, colspan: 3"]0years[/TD]
[TD="class: xl65, width: 261, colspan: 3"]1years[/TD]
[TD="class: xl65, width: 261, colspan: 3"]2years[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="class: xl65"]White[/TD]
[TD="class: xl65"]Black[/TD]
[TD="class: xl65"]Native[/TD]
[TD="class: xl65"]White[/TD]
[TD="class: xl65"]Black[/TD]
[TD="class: xl65"]Native[/TD]
[TD="class: xl65"]White[/TD]
[TD="class: xl65"]Black[/TD]
[TD="class: xl65"]Native[/TD]
[/TR]
[TR]
[TD="align: right"]2016[/TD]
[TD]c2[/TD]
[TD]c3[/TD]
[TD]c4[/TD]
[TD]d2[/TD]
[TD]d3[/TD]
[TD]d4[/TD]
[TD]e2[/TD]
[TD]e3[/TD]
[TD]e4[/TD]
[/TR]
[TR]
[TD="align: right"]2017[/TD]
[TD]c5[/TD]
[TD]c6[/TD]
[TD]c7[/TD]
[TD]d5[/TD]
[TD]d6[/TD]
[TD]d7[/TD]
[TD]e5[/TD]
[TD]e6[/TD]
[TD]e7[/TD]
[/TR]
[TR]
[TD="align: right"]2018[/TD]
[TD]c8[/TD]
[TD]c9[/TD]
[TD]c10[/TD]
[TD]d8[/TD]
[TD]d9[/TD]
[TD]d10[/TD]
[TD]e8[/TD]
[TD]e9[/TD]
[TD]e10[/TD]
[/TR]
[TR]
[TD="align: right"]2019[/TD]
[TD]c11[/TD]
[TD]c12[/TD]
[TD]c13[/TD]
[TD]d11[/TD]
[TD]d12[/TD]
[TD]d13[/TD]
[TD]e11[/TD]
[TD]e12[/TD]
[TD]e13[/TD]
[/TR]
[TR]
[TD="align: right"]2020[/TD]
[TD]c14[/TD]
[TD]c15[/TD]
[TD]c16[/TD]
[TD]d14[/TD]
[TD]d15[/TD]
[TD]d16[/TD]
[TD]e14[/TD]
[TD]e15[/TD]
[TD]e16[/TD]
[/TR]
</tbody>[/TABLE]