Average of Times - Divided by Zero Error

Jim LeMond Jr

New Member
Joined
Dec 9, 2021
Messages
2
Office Version
  1. 2021
Platform
  1. Windows
Can anyone help me format my times so that they average in a Pivot Table?

I receive a report of login/logout times in a weird Unix blend format. I have to convert it to xx:xx AM/PM.

When I put together a Pivot Table, the average of the times produces a "Divided by Zero" error.

Thank you!!

Jim
 

Attachments

  • Screenshot 2022-10-04 124338.png
    Screenshot 2022-10-04 124338.png
    137.4 KB · Views: 23

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hi Jim,

Perhaps something with your formats...
I'm not able to re-create your problem, see below...

1664965514491.png


/Skovgaard
 
Upvote 0
The left alignment of your times is a strong indicator that your times are actually text values.
Having the format set to Time as in your image will only affect the format of anything being stored as numbers. It does not change the data type if Excel is recognising it as Text.
How have you "converted it to xx:xx AM/PM ? Have you by any change used the string functions to do that or the formatting function "=Text(cell,format)"

To prove it is Text simply format it to a different format then the one you are using and if doesn't change it is text.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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