SchneeBaer
New Member
- Joined
- Mar 17, 2018
- Messages
- 4
I am trying to create a pivot table that pulls number of hours and hourly rate from two different data sources, and then calculates an extended amount.
To illustrate, below is a sample data source:
<tbody>
</tbody>
<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Collapsing the rows shows the following:
<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
I've tried switching the summary function on the rate to average, but that only averaged the two rates in the Grand Total line.
<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Is there a way to accomplish an accurate total column?
To illustrate, below is a sample data source:
A | B | C | D | |
---|---|---|---|---|
1 | Name | Type | Hrs | Rate. |
2 | Jane | A | 10 | 25 |
3 | Jane | B | 20 | 25 |
4 | Jane | C | 30 | 25 |
5 | Jane | D | 40 | 25 |
6 | Jane | E | 50 | 25 |
7 | John | A | 5 | 10 |
8 | John | B | 15 | 10 |
9 | John | C | 25 | 10 |
10 | John | D | 35 | 10 |
11 | John | E | 45 | 10 |
<tbody>
</tbody>
Sheet1
Putting this data into a Pivot Table and adding a calculated field for Hours * Rate, the following displays. The sum for Jane is 3750, and the sum for John is 1250. Note that the Grand Total is not the sum of the rows.A | B | C | D | E | |
---|---|---|---|---|---|
3 | Name | Type | Hours | Rate | Total |
4 | Jane | A | 10 | 25 | 250 |
5 | B | 20 | 25 | 500 | |
6 | C | 30 | 25 | 750 | |
7 | D | 40 | 25 | 1000 | |
8 | E | 50 | 25 | 1250 | |
9 | John | A | 5 | 10 | 50 |
10 | B | 15 | 10 | 150 | |
11 | C | 25 | 10 | 250 | |
12 | D | 35 | 10 | 350 | |
13 | E | 45 | 10 | 450 | |
14 | Grand Total | 275 | 175 | 48125 |
<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet3
Collapsing the rows shows the following:
A | B | C | D | E | |
---|---|---|---|---|---|
3 | Name | Type | Hours | Rate | Total |
4 | Jane | 150 | 125 | 18750 | |
5 | John | 125 | 50 | 6250 | |
6 | Grand Total | 275 | 175 | 48125 |
<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet3
I've tried switching the summary function on the rate to average, but that only averaged the two rates in the Grand Total line.
A | B | C | D | E | |
---|---|---|---|---|---|
3 | Name | Type | Hours | Rate | Total |
4 | Jane | 150 | 25 | 18750 | |
5 | John | 125 | 10 | 6250 | |
6 | Grand Total | 275 | 17.5 | 48125 |
<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet3
Is there a way to accomplish an accurate total column?