57

Update 6/2017: Do read: June 13th 2017 Microsoft blocked handling HTML markup in SharePoint calculated fields - how to get the same functionality back Calculated Column documentation: http://viewmaster365.com/365coach/#/Calculated_Column_Functions_List Me in a Calculated Column You can not use [Me] in a Calculated Column Formula. You can use [Me] in de ...


17

You cannot directly specify today and me in calculated column to set the values. You will have to create columns named Today and Me and then use it in your calculated column. Once you are done with the formula for the calculated column, you need to delete the 2 columns created for this. I think this will make your things work.


15

The built in [Today] and [Me] values have never worked in calculated columns, all references to this in previous versions were "hacks" as Sane mentions. The best ways to do this would be either via workflow on item creation/edit you update a fields based on the formula you desire or you could try a remote event receiver to handle it.


13

Try to use this formula to get Year without fractions =TEXT([Created],"yyyy") Output


11

It sounds like you're looking for: =IF(ISBLANK([Action Closed]), "", <<Your current calculated column formula>>) Note that IF takes 3 parameters: an expression that evaluates to true or false, what to display if the evaluation is true, and what to display if the evaluation is false. You should supply your entire current calculated formula for ...


10

Date columns are essentially numbers starting at 30/12/1899 So besides adding one day, you have to display it as a date again (when using it in a Calculated Column datatype=Text) =TEXT( [Due Date]+1 , "dd/mm/yyyy" ) Or set the datatype of the Calculated Column to Date =[Due Date]+1 Adding one day correctly counts the new date =TEXT(DATE(2015,12,31+1),"...


10

Note: in June 2017, Microsoft disabled the use of JavaScript in a Calculated Column That means given answers may not apply for newer SharePoint versions For long explanation and work arounds see: June 13th 2017 Microsoft blocked handling HTML markup in SharePoint calculated fields - how to get the same functionality back Original answer: If you want ...


8

You can create a Calculated Column on the list, with formula (something like): =([TODAY]-[Created]) OR =DATEDIF([TODAY], [Created],"d") Calculated columns use Excel Formulas to calculate the result of the formula (few of the functions are available) You can read about calculated columns here: Calculated Field Formulas Examples of common formulas UPDATE ...


8

I think, =ROUNDDOWN([Column1],0) should work nicely. See - https://msdn.microsoft.com/en-us/library/office/bb862071(v=office.14).aspx


7

Check if one of the value is empty, if it is, return blank, else calculate the difference. =IF(OR(ISBLANK([Date 1]),ISBLANK([Date 2])),"",DATEDIF([Date 1],[Date 2],"D"))


7

Your formula is perfectly valid code Language settings? Most non-english environments require a ; instead of , On English environments you can install a Bookmarklet to enhance the Calc editor This blog might be of help too


6

You can make use of JS link for the displaying the "days open" value in the column. To do that, create a column "Days Open" in the list. Using JSLink to calculate the value using the desired formula. Refer link here to understand the basic of JSLink. You have to replace the required logic of calculating the value before displaying on list view. This way ...


6

If you only use this for display purposes, why not use a different approach which does not require you to do updates on the list item at all.... Create the site column in a sandboxed solution. Your column stores the Due date. Create a javascript file to deploy somewhere to your site, e.g. /Documents/duedate.js Configure the JSLink property in the site ...


6

ISERROR() takes only one parameter and returns TRUE or FALSE. It is typically used inside an IF() statement to evaluate a formula. What you probably want is something like =if(ISERROR(DATEDIF([DATE1] , [DATE2] ,"d")),"0", DATEDIF([DATE1] , [DATE2] ,"d")) In words: If the DATEDIF function returns an error, use "0", else use the result of the DATEDIF ...


6

There are two issues. 1. Calculated columns are not synchronized with other columns' data, so when the version-column's value changes, the calculated field doesn't understand to re-calculate its status until there's a save-action either for the calculated field or for the document itself. With lists the same could be "handled" by opening the list item into ...


5

You can use count related lookup column. Below is the link for reference: How to create count related lookup column


5

Calculated Formulas are only modified/updated when an Item Changes Read that one more time: Calculated Formulas are only modified/updated when an Item Changes Got it? That means the Today/Now function will get you the result from: the LAST item update. SharePoints Today/Now functions do not behave the same as in Excel. You can force such an update with:...


5

You may use a calculate column field for Z, with return type Number where you may add a formula (You may use IF conditions too in the formula) to set value for Z field. Apply below formula: =IF(AND([X]="Quarter 1",[Y]),"1","-") To know more about calculated column refer https://msdn.microsoft.com/en-us/library/office/bb862071(v=office.14).aspx https://...


5

Try this condition IF([Enter Time]="1",[Today Date]+365,IF([Enter Time]="2",[Today Date]+730,IF([Enter Time]="3",[Today Date]+1095,IF([Enter Time]="4",[Today Date]+1460))))


5

Try this: =IF(ISBLANK([Review Days]),Modified+1825,Modified+[Review Days]) Ensure that the calculated column is of Date type. More information on ISBLANK:


5

It's not the correct image URL, try to Get the image URL as shown below And the relative path should look like ~sitecollection/SiteAssets/Qassas.png The image tag should look like (based on the Site Asset location) <img src='../../SiteAssets/Qassas.png'/> Or <img src="/SiteAssets/Qassas.png"> [Update] Based on my conversation with OP in ...


4

I just tried to use [Today] in calculated formula in SharePoint 2013 but got the below error. calculated columns cannot contain volatile functions like today and me. I tried the below formula and it worked perfectly fine to calculate the days difference between created date and today. =[Created]-TEXT(NOW(),"mm/dd/yyyy") The NOW() provides the same ...


4

You can try If statement in calculated column like IF([Status]="On Track","1",IF([Status]="Concern but Plan in place", "2", IF([Status]="Open need Plan", "3", "0"))) Column blank check you can perform as: =IF(ISBLANK([My Column]),"EMPTY",[My Column]) For multiple checks: Calculated column- evaluating multiple conditions In this way you can build your ...


4

Regardless of which character is used when the field is created, the formula works on lists in SharePoint websites anywhere in the world. SharePoint automatically changes the delimiter character to the one that is appropriate for the language/culture of the current page. In some countries, the comma is reserved for use as the decimal mark. In such countries,...


4

I reformatted the Formula in your original post, you can copy/paste multilines and SharePoint will ignore them. The = was allready spotted; You are also missing a False in your second IF =IF([Course #]="AWR135" ,"Promoting Community Cybersecurity Planning" ,IF([Course #]="AWR136" ,"Essentials of Community Cybersecurity" ,"" )...


4

The formula will be something like this. I have not tested it, but it should work: =IF( AND([Column A]="High",[Column b]="High") ,"Red" ,IF( AND([Column A]="High",[Column b]="Low") ,"Gold" ,IF( AND([Column A]="Low",[Column b]="High") ,"Green" ,IF( AND([Column A]="Low",[...


4

Note: in June 2017, Microsoft disabled the use of JavaScript in a Calculated Column That means given answers may not apply for newer SharePoint versions For long explanation and work arounds see: June 13th 2017 Microsoft blocked handling HTML markup in SharePoint calculated fields - how to get the same functionality back Original answer: This type of ...


4

I think you need, =mod([FieldName];0,5)=0


4

When you subtract a date field from another date field in a calculated column, the result is given in days. You can therefore multiply the difference by 24 to get the result in hours, so your formula would likely look like this: =24*(End-Start) Make sure to set your calculated column to return a number instead of text.


4

You have missing parentheses, extra parenthesis, and +1s that don't make any sense. =IF([Week Number]>=4,DATE(YEAR([Class End Date]),MONTH([Class End Date])+2,1),DATE(YEAR([Class End Date]),MONTH([Class End Date])+1,1))


Only top voted, non community-wiki answers of a minimum length are eligible