Sorting data into ranges and comparing it to different options

AATOlive

New Member
Joined
May 25, 2017
Messages
1
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:


INCOMENO. OF CARSNO. OF TRUCKS
100000
532010
10051230
1785011

<tbody>
</tbody>

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.

INCOME RANGEAVG CARS/HHAVG TRUCKS/HH
0 - 100000
1001 - 20 00010.5
20 001+30

<tbody>
</tbody>




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!
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
This doesn't quite give you what you want, but it may be a start...
A​
B​
C​
D​
E​
1​
INCOMENO. OF CARSNO. OF TRUCKS
2​
1000​
0​
0​
3​
5320​
1​
0​
4​
100512​
3​
0​
5​
17850​
1​
1​
6​
7​
8​
9​
INCOME RANGEAVG CARS/HHAVG TRUCKS/HH
10​
0 - 1000
0​
0​
1000 - 1000
11​
1001 - 20 000
1​
0.5​
5320 - 17850
12​
20 001+
3​
0​
100512 - 100512
E10 (which would actually go in A1)=MIN(IF($B$2:$B$5=$B10,$A$2:$A$5))&" - "&MAX(IF($B$2:$B$5=$B10,$A$2:$A$5))
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try to enter the {} manually yourself.
Then copy down
 
Upvote 0

Forum statistics

Threads
1,215,473
Messages
6,125,018
Members
449,203
Latest member
tungnmqn90

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