IF formula on SharePoint Server - Syntax Error

C Li 1 Reputation point
2020-08-20T20:42:48.843+00:00

Here's what I entered but it still came up with the same error message. Just FYI - It is not the 365 version yet, we are still using the older version.

19110-ms-sp.jpg19220-ms-sp-err-msg.jpg

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,365 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,955 questions
{count} votes

2 answers

Sort by: Most helpful
  1. ChelseaWu-MSFT 6,326 Reputation points
    2020-08-21T02:02:53.647+00:00

    I have tested with the exact same formula and it works as expected. Here is the formula I test with and the outcome:

    =IF(TODAY()-[Initial Conversation Date]>365,"NA",TODAY()-[Initial Conversation Date])  
    

    19331-annotation-2020-08-21-093929.png

    Please check as following to narrow down this issue:

    1. If you have set Initial Conversation Date column to format as Date & Time, switch to Date Only.
    2. Create another calculated column in list/library and insert the formula I provide above.
    3. Switch to Single line of text for the data type and see the result.
    4. Do you have any setting in this list/library that worth attention? You can test in another list/library and see if you can reproduce this issue.

    If the response is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

  2. Zoran Štucin 1 Reputation point
    2020-08-31T08:54:16.277+00:00

    Try it without equal (=) sign in front of the formula. I had this issue a few times.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.