3

I'm trying to get a SharePoint formula to show a percentage of time remaining on a contract. I'm nearly there but it's showing a lot of numbers to the right of the decimal point. I've tried a few things, rounding up, min, max but nothing seems to get rid of those pesky numbers. Any ideas? I'm using SP Online and this is my formula:

 =MAX(0,TodayDate-[Contract Commencement Date])/([Contract End Date]-[Contract Commencement Date])

enter image description here

6

Try to use Round function to rounds a number to a specified number of digits.

Round Syntax = ROUND(number,num_digits)

Where the num_digits the number of digits to which you want to round the number.

In your case, try the following:

=ROUND(MAX(0,TodayDate-[Contract Commencement Date])/([Contract End Date]-[Contract Commencement Date]), 1)

Read details at ROUND function

1
  • Boom! Thanks that worked like a dream – Dazza Mar 17 '20 at 13:40
3

You could set the calculated column as below:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.