Forum Discussion

Shah1827's avatar
Shah1827
Copper Contributor
Jul 03, 2020

Sharepoint formula problem

Hello Everyone,

 

As I am trying to add calculated column it is showing error.

 

For going in details please find attachments.

 

Regards,

Sagar Shah

6 Replies

  • racrig's avatar
    racrig
    Brass Contributor

    Shah1827 Not sure what you are trying to calculate, but here are some references for sharepoint calculated columns:

    https://support.microsoft.com/en-us/office/examples-of-common-formulas-in-sharepoint-lists-d81f5f21-2b4e-45ce-b170-bf7ebf6988b3 

     

    https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/bb862071(v=office.14) 

     

    https://natechamberlain.com/2018/08/27/extract-date-components-using-the-text-function-in-sharepoint-calculated-columns/ 

     

    But yes, your column must be of type "Calculated" if you want a value derived from a formula. It can't be Single Line of Text.

  • Shah1827 the error indicates that you can't see the default value based on another column. That's because your column type is single line of text. You need to use a Calculated Column instead.

     

     

    • Shah1827's avatar
      Shah1827
      Copper Contributor
      But for date column how can we use calculated column.
      • Shah1827's avatar
        Shah1827
        Copper Contributor

        Hello  ,

         

        Thanks for your reply as I am trying to generate report of daily task , so I am trying to calculate how many hours Employee has done work. like start date and timing to end date and timing. 

Resources