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>
<tbody>
</tbody>
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>
<tbody>
</tbody>
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>
YEAR | RACE | 0years | 1years | 2years |
2016 | White | c2 | d2 | e2 |
2016 | Black | c3 | d3 | e3 |
2016 | Native | c4 | d4 | e4 |
2017 | White | c5 | d5 | e5 |
2017 | Black | c6 | d6 | e6 |
2017 | Native | c7 | d7 | e7 |
2018 | White | c8 | d8 | e8 |
2018 | Black | c9 | d9 | e9 |
2018 | Native | c10 | d10 | e10 |
2019 | White | c11 | d11 | e11 |
2019 | Black | c12 | d12 | e12 |
2019 | Native | c13 | d13 | e13 |
2020 | White | c14 | d14 | e14 |
2020 | Black | c15 | d15 | e15 |
2020 | Native | c16 | d16 | e16 |
<tbody>
</tbody>
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>
0years | 1years | 2years | |||||||
White | Black | Native | White | Black | Native | White | Black | Native | |
2016 | c2 | c3 | c4 | d2 | d3 | d4 | e2 | e3 | e4 |
2017 | c5 | c6 | c7 | d5 | d6 | d7 | e5 | e6 | e7 |
2018 | c8 | c9 | c10 | d8 | d9 | d10 | e8 | e9 | e10 |
2019 | c11 | c12 | c13 | d11 | d12 | d13 | e11 | e12 | e13 |
2020 | c14 | c15 | c16 | d14 | d15 | d16 | e14 | e15 | e16 |
<tbody>
</tbody>