1

enter image description hereHow to calculate number of outstanding days in SharePoint? I've been using the formula below but it is not stable

=IF([Document Status]="",TODAY()-[Initiated On]+1,[Date Reviewed]-[Initiated On])
  • what is the output you are receiving? Information you have provided is not sufficient to resolve the issue. What is it not stable, if block or else block – Gaurravs Jan 17 '16 at 07:35
  • Sometimes calculated output display incorrect. – Jong Mendoza Jan 18 '16 at 04:21
  • When a Document Status is empty you want to display the number of days it is outstanding As explained in an answer below, you can not use the TODAY() function like this, because it is only evaluated when the Item is updated (thusacts the same as using [Modified] – Danny '365CSI' Engelman Jan 18 '16 at 09:27
  • I need a column that will start counting the number of day base on "Initiated On" value and the counting should stop once column "Date Reviewed" is provided. I've tried the formula provided earlier and it work but somehow other values are incorrect. – Jong Mendoza Jan 18 '16 at 16:23

2 Answers2

0

Formulas will only update when the List Item is modified/updated.

That means Today() is the same as [Modified] (last date the item was modified)

For long explanation and possible workarounds read:

How to use Today and Me in Calculated column

Danny '365CSI' Engelman
  • 21,176
  • 7
  • 35
  • 79
0

You can display outstanding days using CSR (Client Side Rendering).

The conventional way is to write JS code and inject it in the library view. More details here: https://code.msdn.microsoft.com/office/Client-side-rendering-JS-2ed3538a

A quicker way to customize a specific library view is Cisar: https://chrome.google.com/webstore/detail/cisar/nifbdojdggkboiifaklkamfpjcmgafpo?hl=en

malexandrum
  • 145
  • 6