pivot table formatting error

jjayden

New Member
Joined
May 2, 2008
Messages
41
I have a pivot table that pulls detection and respond times. the issue is i am trying to put it in a chart but the average times seem to be displaying wrong. the cell format is set to custom and is using dd:hh:mm but when the average is displayed in the chart the dd:hh:mm shows a 30 for the day instead of 00. how can i resolve this

1714770039335.png
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Custom formats playing a trick here. And it seems to be a pivot chart thing only.
In my sample tests 0 turned into 30 or 31, which seems to suggest it sees a date, and can't display "00", as that is the previous day of previous month. Hence it throws 30 or 31 at you.

Notice also the labels are off. In the pivot the format works, on the chart labels it does not (a day short?). I tried to display with 1904 date system, but then it turned totally weird.
A normal chart works however.

The solution would be to create a dynamic range on the pivot, so you can still create the chart, while using your correct format.

1714817341430.png
 
Upvote 0

Forum statistics

Threads
1,216,074
Messages
6,128,653
Members
449,462
Latest member
Chislobog

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