Forum Discussion
Ganesh2195
Jul 05, 2023Copper Contributor
HI experts, please help to calculate difference between the time columns in share point list
i have 2 sharepoint list columns "Time of breakdown" = "5/7/2023 10:00:00 PM" and "Rectification work time" = "6/7/2023 09:00:00 AM" , i want to calculate difference between those two and want a resu...
LeonPavesic
Jul 05, 2023Silver Contributor
Hi Ganesh2195,
you can try to use the following formula:
=INT([Rectification work completed Time] - [Time of breakdown]) & " days " & HOUR([Rectification work completed Time] - [Time of breakdown]) & " hours " & MINUTE([Rectification work completed Time] - [Time of breakdown]) & " minutes"
Make sure you apply this formula in a calculated column in your SharePoint list:
- INT([Rectification work completed Time] - [Time of breakdown]) calculates the difference in days.
- HOUR([Rectification work completed Time] - [Time of breakdown]) calculates the difference in hours.
- MINUTE([Rectification work completed Time] - [Time of breakdown]) calculates the difference in minutes.
SharePoint calculated columns do not support seconds, so the seconds part is excluded from the formula.
Ensure that both "Rectification work completed Time" and "Time of breakdown" columns are set as Date/Time type columns in your SharePoint list.
If my anwer helped you thow resolve your issue, you can click on Mark as best response.
Kindest regards,
Leon