ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Pivot table Average with [h]:mm format (https://www.excelbanter.com/excel-discussion-misc-queries/251033-pivot-table-average-%5Bh%5D-mm-format.html)

Opa Horst

Pivot table Average with [h]:mm format
 
Is there a way to get the correct average in the Total Row or Column in a
Pivot table when the value field is formatted with [h]:mm?
The average works find in normal number format, but gives the Total rather
then the average when formatted with [h]:mm.
Using Excel 2007.
Thanks


Opa Horst

Pivot table Average with [h]:mm format
 
Found the issue :)
I am using a calculated field for the values, when I change this to the
actual values, the average is calculated correctly. Still weird..

"Opa Horst" wrote:

Is there a way to get the correct average in the Total Row or Column in a
Pivot table when the value field is formatted with [h]:mm?
The average works find in normal number format, but gives the Total rather
then the average when formatted with [h]:mm.
Using Excel 2007.
Thanks


Fred Smith[_4_]

Pivot table Average with [h]:mm format
 
Then your calculation must be the problem. How are you calculating the
field?

Regards,
Fred

"Opa Horst" wrote in message
...
Found the issue :)
I am using a calculated field for the values, when I change this to the
actual values, the average is calculated correctly. Still weird..

"Opa Horst" wrote:

Is there a way to get the correct average in the Total Row or Column in a
Pivot table when the value field is formatted with [h]:mm?
The average works find in normal number format, but gives the Total
rather
then the average when formatted with [h]:mm.
Using Excel 2007.
Thanks



Opa Horst

Pivot table Average with [h]:mm format
 
Thanks for your reply.
The data field is Usage (in seconds), the calculated field is
(Usage+30)/(24*3600), to get the usage data in [h]:mm format.


"Fred Smith" wrote:

Then your calculation must be the problem. How are you calculating the
field?

Regards,
Fred

"Opa Horst" wrote in message
...
Found the issue :)
I am using a calculated field for the values, when I change this to the
actual values, the average is calculated correctly. Still weird..

"Opa Horst" wrote:

Is there a way to get the correct average in the Total Row or Column in a
Pivot table when the value field is formatted with [h]:mm?
The average works find in normal number format, but gives the Total
rather
then the average when formatted with [h]:mm.
Using Excel 2007.
Thanks


.


Fred Smith[_4_]

Pivot table Average with [h]:mm format
 
That's the correct way of converting seconds to Excel times, so you'll need
to elaborate on your process.

You said "when I change this to actual values, the average is calculated
correctly". What do you mean by "actual values"? Are you totalling the Usage
field?

Also, how do you know it's giving you a total, rather than an average, when
you use [h]:mm format?

Regards
Fred

"Opa Horst" wrote in message
...
Thanks for your reply.
The data field is Usage (in seconds), the calculated field is
(Usage+30)/(24*3600), to get the usage data in [h]:mm format.


"Fred Smith" wrote:

Then your calculation must be the problem. How are you calculating the
field?

Regards,
Fred

"Opa Horst" wrote in message
...
Found the issue :)
I am using a calculated field for the values, when I change this to the
actual values, the average is calculated correctly. Still weird..

"Opa Horst" wrote:

Is there a way to get the correct average in the Total Row or Column
in a
Pivot table when the value field is formatted with [h]:mm?
The average works find in normal number format, but gives the Total
rather
then the average when formatted with [h]:mm.
Using Excel 2007.
Thanks


.



Opa Horst

Pivot table Average with [h]:mm format
 
Firstly, when I do the calculation on the data, so outside the Pivot Table,
and then use this data (which has now the correct values for the [h]:mm
format) as the data source for the Pivot Table the Average calculation is
correct. This is what I mend with using the €˜actual values
Secondly, I checked the Average/Total value manually with the Average/Sum
formula. With the above method the two average values are the same, with a
calculated field in [h]:mm format in the Pivot table they are not.
This all feels like a bug with custom format in Excel!
The reason why I think that this is a bug with the custom [h]:mm format is
that the average values are being calculated correctly with the calculated
field with a standard numeric format. As soon as you change to the custom
format the system defaults to the Total values.


"Fred Smith" wrote:

That's the correct way of converting seconds to Excel times, so you'll need
to elaborate on your process.

You said "when I change this to actual values, the average is calculated
correctly". What do you mean by "actual values"? Are you totalling the Usage
field?

Also, how do you know it's giving you a total, rather than an average, when
you use [h]:mm format?

Regards
Fred

"Opa Horst" wrote in message
...
Thanks for your reply.
The data field is Usage (in seconds), the calculated field is
(Usage+30)/(24*3600), to get the usage data in [h]:mm format.


"Fred Smith" wrote:

Then your calculation must be the problem. How are you calculating the
field?

Regards,
Fred

"Opa Horst" wrote in message
...
Found the issue :)
I am using a calculated field for the values, when I change this to the
actual values, the average is calculated correctly. Still weird..

"Opa Horst" wrote:

Is there a way to get the correct average in the Total Row or Column
in a
Pivot table when the value field is formatted with [h]:mm?
The average works find in normal number format, but gives the Total
rather
then the average when formatted with [h]:mm.
Using Excel 2007.
Thanks


.


.



All times are GMT +1. The time now is 05:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com