How to Fix SharePoint List Formula for Calculating Elapsed Hours
Question details
The user needs to fix a SharePoint calculated column formula that is intended to calculate elapsed hours using the NOW() function and the Created field, but is failing for newly added list items.

- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- Calculating the elapsed time in hours since a list item was generated using a calculated column.
- Observed behavior
- The formula fails to calculate the elapsed hours correctly for the newest list item when relying on the Created field.
Verify that your SharePoint site time zone settings match your local computer time zone settings exactly, as time discrepancies will cause calculation errors when using the NOW() function.
Replace the 'Created' Field with 'Modified' in Your Formula
Update the calculated column to use the Modified field instead of the Created field to ensure the elapsed time calculation runs successfully for new items.
Calculated columns in SharePoint can sometimes struggle to process the 'Created' field immediately after a new item is added. By switching the reference to 'Modified', the formula resolves more reliably for new entries.
Keep in mind that because the 'Modified' timestamp changes every time a user edits the list item, this solution will reset the elapsed time upon any item update.
Navigate to your SharePoint list, click the gear icon for Settings, and select 'List settings'.
Scroll down to the Columns section and click on the calculated column that is failing to compute the elapsed hours.
In the formula box, replace all instances of 'Created' with 'Modified'. Enter the following formula: =IF(INT(NOW()-Modified)<1,0,INT(NOW()-Modified)*24)+IF(HOUR(NOW()-Modified)<1,0,HOUR(NOW()-Modified))+MINUTE(NOW()-Modified)/60
Click 'OK' at the bottom of the page to save your updated column settings. Create a new test item to verify the calculation is working.

Use Power Automate for Persistent Elapsed Time Calculations
If you require the calculation to always use the original creation time without resetting when users edit the item, use a Power Automate flow instead of a calculated column.
Enhance Your Document Productivity with WPS Office
While resolving complex SharePoint formula issues, simplify your offline spreadsheet and data calculation tasks with WPS Office. It provides a lightweight, highly compatible alternative to Microsoft Office, ensuring your data analysis is smooth and efficient.
- 1. Download WPS Office: Visit the official WPS website to download and install the free WPS Office suite.
- 2. Export SharePoint Data: Export your SharePoint list data to an Excel (.xlsx) file and open it locally in WPS Spreadsheet.
- 3. Apply Formulas Offline: Use standard Spreadsheet functions to calculate time differences reliably without server-side syncing limitations.

Frequently Asked Questions
Why doesn't the NOW() function work accurately with the Created field in SharePoint calculated columns?
SharePoint calculated columns are processed immediately upon item creation. Sometimes, the server's commit timing causes the NOW() function and the Created timestamp to mismatch slightly on a brand new item, causing the formula to fail or return unpredictable results until the item is modified.
Do SharePoint calculated columns update automatically in real-time as hours pass?
No. SharePoint calculated columns do not continuously update in the background. The NOW() function only recalculates when the list item is explicitly created or edited by a user.
How do I prevent the elapsed time from resetting when a user edits the list item?
If you use the 'Modified' field in your formula, any edits will naturally reset the timer. To prevent this while tracking elapsed time from creation, avoid using calculated columns and instead use a Power Automate flow to calculate and push the elapsed time into a standard number column.




