Excel Export Showing Duration Field in Seconds

mhafizam
Kilo Guru

Hi,

 

When exporting the data to Excel, the duration field is currently displaying in seconds. However, I would like it to show in hours and minutes only.

 

mhafizam_8-1749537813395.png

 

 

mhafizam_6-1749537697549.png

 

mhafizam_7-1749537751814.png

 

Could you please advise how to achieve this?

Thank you in advance for your support.

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@mhafizam 

that's the out of the box behavior

the field is duration type so they will always give value in milliseconds

Couple of ways

1) Workaround is to use PDF rather than Excel or CSV

AnkurBawiskar_0-1749542183994.png

 

 

OR

2) create a custom field which holds string value of that duration and use that in reporting

After export as Excel time fields are showing seconds but i want to see it in only Hours and Minutes 

OR

3) try to see if you can use function field in report and convert the milliseconds to hours

OR

4) inform user to apply Formula in Excel and convert that, response from Jeff

How to display duration field value in a proper format in an excel report 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

8 REPLIES 8

Mark Manders
Mega Patron

You either create a custom field in ServiceNow to have the duration calculated to show just that (not recommended) or you update it in Excel. This is simply how ServiceNow stores duration fields.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

can you guide me in how to have the duration calculated.

Deepak Shaerma
Kilo Sage

Hi @mhafizam 

In ServiceNow, the Duration field on the Incident table (or any other time duration field) is stored as a number in seconds (or sometimes in other units depending on configuration), but in the list view, it's often shown in a more human-readable format like "1 hour" or "25 minutes".

Please Mark this Helpful and Accepted Solution. If this Helps you to understand. This will help both the community and me..
- Keep Learning ‌‌
Thanks & Regards 
Deepak Sharma 


Thanks for the explanation!

So just to check — is there a way to change the exported value to show in hours and minutes instead of seconds? Appreciate your help on this.