How to Create a Calculated Column in SharePoint?

Calculated columns in SharePoint allow you to generate values automatically based on other columns in your list. As a SharePoint developer, I have created calculated columns in SharePoint lists and libraries many times when we want to display column values based on formulas.

The formulas for SharePoint calculated columns are based on Microsoft Excel functions and their syntax.

In this tutorial, I’ll show you how to create a calculated column in a SharePoint list with different types of examples.

What is a Calculated Column in SharePoint?

A calculated column performs operations on other columns in your SharePoint list using formulas and functions, similar to Excel. These calculations update automatically whenever the source data changes.

We can create a calculated column in either a SharePoint list or library, allowing you to display calculated values automatically based on the formulas.

You can implement the following types of formulas in a SharePoint calculated column.

  • Conditional formulas
  • Date & time formulas
  • Mathematical formulas
  • Text formulas

You can reference columns with the following data types in your formulas:

  • Single line of text
  • Number
  • Currency
  • Date and time
  • Choice
  • Yes/No
  • Other calculated columns

Here are also some limitations you should be aware of regarding the calculated columns in SharePoint.

  • Calculated columns only update when items are saved or modified
  • They cannot reference data from other lists directly
  • Some complex formulas may have character limitations
  • Person fields cannot be directly referenced in certain contexts

To show an example, I will take a SharePoint list named “Task Tracker” which has the following fields:

  • Task Name – Single line of text
  • Task Status – Choice
  • Start Date – Date & time

Now, we can create a calculated column, i.e., Due Date, based on Start Date. Ex: Start Date + 7 days = Due Date. When a new item is created with a start date, the due date will be auto-populated, and its value will be the addition of 7 days to that item’s start date.

Ex: Start Date + 7 days = Due Date

sharepoint calculated column

Check out Add Leading Zeros to SharePoint List Column using Calculated Column

Create a Calculated Column in SharePoint List

Let’s start with a basic example of a calculated column in a SharePoint list.

Suppose you have a SharePoint list with a couple of columns like Employee Name, Designation & Joining Date as shown below:

SharePoint list Calculated column

Now, if you want to show the Probation period valid date for each employee (Where the probation period will be for 90 days from the joining date).

This is where the calculated column comes into play!

Let me show you how to add a calculated column to a SharePoint list:

  1. Open your SharePoint list or library, where you want to add a calculated column. Click on + Add column -> Scroll down to select See all column types & click on Next button.
Create A Calculated Column In SharePoint List
  1. It will navigate to the Create Column page. Provide a column name, select the data type as Calculated (calculation based on other columns).
How to create a calculated column in SharePoint list
  1. Next, scroll down to the Formula box. Here, I want to calculate the probation period’s valid date based on the Joining date [Joining date +90 days].
=[Joining Date]+90

You can select the column from the Insert column box and click on Add to formula. Then, click the OK button. Specify the formula and choose the data type returned from this formula: Date and Time.

SharePoint calculated column formulas
  1. Then, the calculated column is created by displaying values automatically. You can have a reference at the screenshot below:
SharePoint list calculated value based on another column

Check out SharePoint Calculated Column Date Examples

SharePoint Calculated Column Examples

I always prefer to understand concepts using real-world examples. Now, let me show you some real-world examples of how you can use a SharePoint calculated column.

Example 1: SharePoint Calculated Column If Condition [Conditional Formula]

Suppose, let’s take a SharePoint list named ‘Budget List‘ with a few columns.

Column NameData Type
Budget Allocated ToTitle – Renamed [Budget Allocated To]
CategoryChoice
Allocated AmountCurrency
Actual AmountCurrency
SharePoint Online calculated column formulas

I wanted to create a calculated column where, if Actual Amount >Allocated Amount, display the budget review as “Not sufficient“.

By this time, you already know how to create a calculated column in a SharePoint list/library. Follow the steps mentioned above.

  1. On the Create column window, enter the column name, select the type of column as
    Calculated (calculation based on other columns).
SharePoint Online calculated column examples
  1. Next, scroll down the page to the Additional Column Settings section, and provide the formula in the Formula box. Select the data type returned from this formula is: Single line of text.
Formula: =IF([Actual Amount]>[Allocated Amount],"Not Sufficient","Sufficient")
SharePoint calculated column If condition
  1. Now, click the OK button at the bottom of the page.
  2. That’s it, the calculated column has been created in the SharePoint list. Have a look at the reference image:
Modern SharePoint list calculated value based on another column

Example 2: SharePoint Calculated Column: Add Months to Date [Date and time formulas]

Let’s take the same SharePoint list used in the above example, but with different columns and data types as shown in the table below:

Column NameData Type
Budget Allocated ToTitle – Renamed [Budget Allocated To]
Allocated AmountCurrency
Allocated DateDate & time
Duration in MonthsNumber
SharePoint calculated column add months to date

Let me create a calculated column that adds months to the date column. For example, Allocated Date + Duration in Months = Budget Expiration Date [calculated column].

  1. To create a calculated column, enter the column name and select the type of information in this column: Calculated (calculation based on other columns).
How to add months to date in SharePoint calculated column
  1. Provide the below formula in the Formula dialogue box. Replace your SharePoint column names. Choose the return data type as Date and Time.
=(DATE(YEAR([Allocated Date]),MONTH([Allocated Date])+[Duration in Months],DAY([Allocated Date])))
Add Months to date in SharePoint calculated column
  1. Once you click the Ok button, the calculated column will be created. Refer to the image below:
SharePoint list add calculated column

Example 3: Calculate the Profit% of Two Numbers in SharePoint using Calculate Column [Mathematical formulas]

Below, I have taken a table that shows column names and data types for an Event Budget list.

Column NameData Type
Event NameTitle – Renamed to Event Name
Total RevenueCurrency
Total ExpensesCurrency
Percentage difference between two numbers SharePoint calculated column

I want to calculate the net profit percentage between [Total Revenue & Total Expenses].

  1. In the SharePoint Create column page, enter a column name and select the data type as Calculated(calculation based on other columns).
Calculate percentage in SharePoint List
  1. In the Formula box, paste the formula given in the code below.
=([Total Revenue]-[Total Expenses])/ABS([Total Expenses])

Replace the SharePoint list columns with yours.

SharePoint calculated column percentage formulas
  1. Now, you can see the SharePoint calculated column has been created.
Calculated column in SharePoint

Example 4: Combine Two Columns by SharePoint Calculated Column [Text formulas]

In the last example, I will show how to combine two SharePoint columns using a calculated column in SharePoint.

For this, I will take a SharePoint list of [Employee Details] with columns like Employee First Name and Employee Last Name.

SharePoint calculated column combine text

I want to combine the employee’s first name and last name to give the employee a full name.

Example: Employee First Name + Employee Last Name => Employee Full Name.

  1. While creating a column, provide a name for the column and select the type as Calculated(calculation based on other columns).
How to combine two text in SharePoint calculated column
  1. Insert the formula provided in the code below into the Formula box and choose the data type returned from this formula as: Single line of text.
SharePoint calculated column formulas combine text
  1. Once you click on OK, the calculated column will be created.

Output:

SharePoint Combine first and last name with a calculated column

Example 5: Multiply Two Fields using a SharePoint Calculated Column

Suppose you have a SharePoint list with the following columns as shown below. Here, I wanted to multiply the two columns (Quantity, Unit Price) to calculate the Total Amount (Calculated column).

Column NameColumn Type
ItemTitle – Renamed to Item
QuantityNumber
Unit PriceCurrency
SharePoint calculated column multiplication

Here are the steps to multiply columns in a SharePoint calculated column:

  1. Open your SharePoint list/library where you want to add a calculated column that will multiply two columns.
  2. Click on the + Add column, and select See all column types. Then, click on the Next button as shown below.
SharePoint calculated column multiply two columns
  1. Then, it will redirect to the “Create column” page, where you can add columns to the SharePoint list. Provide column name, select type as Calculated(calculation based on other columns).
Multiplying SharePoint columns in a calculated column
  1. On the Additional Column Settings section, enter the formula below in the Formula box. After that, I have selected the data type returned from this formula to “Currency“. You can choose according to your requirement.
  2. Then, scroll down the page and click the Save button at the bottom of the page.
=Quantity*[Unit Price]

Replace your column names in the formula.

How to multiply two fields in SharePoint Calculated Column
  1. Now, the calculated column has been created. You can see the newly created column on your SharePoint list. Have a look at the reference image below.
Multiplying Two Columns in SharePoint calculated column

This way, you can multiply two fields in SharePoint calculated columns.

Conclusion

In this tutorial, we covered what a calculated column is in SharePoint, how to create one, and explored several practical examples—including using conditional formulas, date calculations, mathematical expressions, and text concatenation.

I hope you find this tutorial useful.

You may also like the following tutorials:

  • This was very helpful! For embedding a mailto link, is there a way that the email link can pull the mailto address from the list?
    I’d like to be able to generate an email to the person who submitted a list entry that asks for additional information, but I want the formula to pull the submitter info from the request

    =CONCATENATE(“Email Submitter“)

  • Microsoft has removed the ability to add HTML to a calculated column in SharePoint 2019 and forward. This guide will only work for SharePoint 2013 and 2016 on premise.

  • >

    Build a High-Performance Project Management Site in SharePoint Online

    User registration Power Apps canvas app

    DOWNLOAD USER REGISTRATION POWER APPS CANVAS APP

    Download a fully functional Power Apps Canvas App (with Power Automate): User Registration App

    Power Platform Tutorial FREE PDF Download

    FREE Power Platform Tutorial PDF

    Download 135 Pages FREE PDF on Microsoft Power Platform Tutorial. Learn Now…