DanielManiel
New Member
- Joined
- May 29, 2017
- Messages
- 2
I am doing a regression analysis and have some data from a survey. One column is ethnicity. The way the data is set up is:
<tbody>
</tbody>
But I would like it set up so that each ethnicity is it's own column:
<tbody>
</tbody>
Is there a fast way of doing this in excel?
Thanks!
Yearly Salary | Ethnicity | Age |
100 | Black | 25 |
87 | White | 24 |
57 | Black | 65 |
94 | Hispanic | 45 |
<tbody>
</tbody>
But I would like it set up so that each ethnicity is it's own column:
Yearly Salary | Black | White | Age |
100 | 1 | 0 | 25 |
87 | 0 | 1 | 24 |
57 | 1 | 0 | 65 |
94 | 0 | 0 | 45 |
<tbody>
</tbody>
Is there a fast way of doing this in excel?
Thanks!