Pivot Table Query

uk

Board Regular
Joined
Nov 4, 2003
Messages
101
I need to use a pivot table to group the result.

I have a raw data Table which has Employee ID, CITY, Salary, Age

Raw Data

ID City Salary Age
1 LONDON 17500 23
2 BHAM 16000 20
3 MANCH 14000 19
4 LONDON 25000 60
5 LONDON 13000 17
6 BHAM 11000 18
7 MANCH 13500 28
8 LEEDS 18200 25
9 GLASGOW 19000 21
10 LONDON 20000 24

From this I want to create a pivot table,,,,

I want to be able to group by a salary range I specify in 3 different cells
>20000
>15000
>10000

The pivot tables should count the number of people in each salary range.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
uk said:
I need to use a pivot table to group the result.

I have a raw data Table which has Employee ID, CITY, Salary, Age

Raw Data

ID City Salary Age
1 LONDON 17500 23
2 BHAM 16000 20
3 MANCH 14000 19
4 LONDON 25000 60
5 LONDON 13000 17
6 BHAM 11000 18
7 MANCH 13500 28
8 LEEDS 18200 25
9 GLASGOW 19000 21
10 LONDON 20000 24

From this I want to create a pivot table,,,,

I want to be able to group by a salary range I specify in 3 different cells
>20000
>15000
>10000

The pivot tables should count the number of people in each salary range.
Hi uk:

Please look at the following illustration ...
Book1
ABCDEFGH
1IDCitySalaryAge
21LONDON1750023
32BHAM1600020CountofSalary
43MANCH1400019SalaryTotal
54LONDON2500060>100004
65LONDON1300017>150004
76BHAM1100018>200002
87MANCH1350028GrandTotal10
98LEEDS1820025
109GLASGOW1900021
1110LONDON2000024
Sheet4


I first created a Pivot Table with Salary as the row field and Count Of Salary as Data.

Then I Grouped the salaries, between 0 and 25000 with a step of 5000

Then I custom formated the labels for the Salary groups to be shown as ...
>10000
>15000
>20000

I hope this helps. If I have misunderstood your question -- my apologies!
 
Upvote 0
Yogi

The results table you made is kinda what I am after but I am not to keen on manualy grouping a table with 1000's of rows unless there is a quick wasy to do it.

Plus I have to apply the same results table to a number of spreadhseets in which the salary is not always in the same column!
 
Upvote 0
Hi uk:

In the Pivot Table example I posted, I only used three numbers to create three groups even though there may be a large number of salary entries in the table. Any way, Good Luck to you on your project!
 
Upvote 0

Forum statistics

Threads
1,221,586
Messages
6,160,645
Members
451,661
Latest member
hamdan17

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