---
title: "Using Formula in Primary Column"
description: "Leverage formulas in the primary column to dynamically calculate, organize, and manage your data with precision."
url: https://help.stackby.com/en/articles/35-using-formula-in-primary-column
collection: "Using Formulas"
updated: 2025-01-10
language: en
---

# Using Formula in Primary Column

Leverage formulas in the primary column to dynamically calculate, organize, and manage your data with precision.

Formulas in Stackby can save you time by calculating data automatically by combining columns contents in a Table.  
  
A Primary key is a column in a table which uniquely identifies each row in a table. Primary keys must contain unique values. 

If you want to create an ID in the primary column by combining two or more columns, you can use that using CONCAT () formula.   
  
**Using CONCAT formula in Primary Column**

Here CONCAT() is used to combine First Name and Last Name Column.

**Example :-**

```javascript
 CONCAT({First Name} ,"  " , {Last Name})
```

![](https://d258lu9myqkejp.cloudfront.net/attachment_images/0ad9722c0d7928afddd8412aab1bd9a5b36994a3ee9cc5315daea97e1510b88a1632300002494.png)

**One more example :-**

```javascript
 CONCAT({Product Name},{Product Code})
```

![](https://d258lu9myqkejp.cloudfront.net/attachment_images/647789333237abb61bf7700709aef0531a6843636de0c2260b8473de152091631632911852402.png)
