Hi all,
I have travel household surveys and am sorting it for an assignment. The idea is sort out the data based on how many vehicles households own dependent on their income. An example of the data is shown in the first table:
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]INCOME[/TD]
[TD]NO. OF CARS[/TD]
[TD]NO. OF TRUCKS[/TD]
[/TR]
[TR]
[TD]1000[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]5320[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]100512[/TD]
[TD]3[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]17850[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
keep in mind, this is a made up sample, the actual data goes on forever. The table below is what I want the data to look like, with the values representing the average number of cars per household in that income range.
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]INCOME RANGE[/TD]
[TD]AVG CARS/HH[/TD]
[TD]AVG TRUCKS/HH[/TD]
[/TR]
[TR]
[TD]0 - 1000[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]1001 - 20 000[/TD]
[TD]1[/TD]
[TD]0.5[/TD]
[/TR]
[TR]
[TD]20 001+[/TD]
[TD]3[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
And finally the graph attached HERE is what I would like to end up having. (A graph comparing the average number of different vehicles owned per income group)
I have used pivot tables for a previous assignment questions, but for examples that differed slightly, when I tried using it for this example, I just couldn't make sense of it. I can do them all individually, example, income versus AVG number of cars owned, and then a separate one for income versus AVG number of trucks owned. But grouping the income ranges each time is becoming tedious, especially since I am sure excel can do this and I am just wasting time.
If you could help or link me to any tutorials dealing with similar situations, I would be glad.
If you can think of a better tool to use, I am also happy to try it.
Thank you!
I have travel household surveys and am sorting it for an assignment. The idea is sort out the data based on how many vehicles households own dependent on their income. An example of the data is shown in the first table:
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]INCOME[/TD]
[TD]NO. OF CARS[/TD]
[TD]NO. OF TRUCKS[/TD]
[/TR]
[TR]
[TD]1000[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]5320[/TD]
[TD]1[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]100512[/TD]
[TD]3[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]17850[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
keep in mind, this is a made up sample, the actual data goes on forever. The table below is what I want the data to look like, with the values representing the average number of cars per household in that income range.
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]INCOME RANGE[/TD]
[TD]AVG CARS/HH[/TD]
[TD]AVG TRUCKS/HH[/TD]
[/TR]
[TR]
[TD]0 - 1000[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]1001 - 20 000[/TD]
[TD]1[/TD]
[TD]0.5[/TD]
[/TR]
[TR]
[TD]20 001+[/TD]
[TD]3[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
And finally the graph attached HERE is what I would like to end up having. (A graph comparing the average number of different vehicles owned per income group)
I have used pivot tables for a previous assignment questions, but for examples that differed slightly, when I tried using it for this example, I just couldn't make sense of it. I can do them all individually, example, income versus AVG number of cars owned, and then a separate one for income versus AVG number of trucks owned. But grouping the income ranges each time is becoming tedious, especially since I am sure excel can do this and I am just wasting time.
If you could help or link me to any tutorials dealing with similar situations, I would be glad.
If you can think of a better tool to use, I am also happy to try it.
Thank you!