Forum Discussion
Jbrines1969
Dec 18, 2020Brass Contributor
Trying to calculate hours between two dates on a SharePoint List
Hi Guys,
I am trying to calculate hours between created and modified date, I have tried
=TEXT(Modified-Created,"h")
but it doesn't work. I have read that it only really works if it is within 24 hours.
J
- Matti PaukkonenIron Contributor
Hi Jbrines1969,
Here is a formula, which will calculate hour difference between two dates.
=INT(Modified-Created)*24+HOUR(Modified-Created)
- Jbrines1969Brass Contributor
- Matti PaukkonenIron Contributor
That is not going to work, because calculated field values are only updated when list items is modified.