# Clean and format data

### **Remove duplicate rows**

This function will simply remove all extra rows that have the same value in each cell. Only one duplicate row will be preserved.

### Change text casing

This function will change the text casing of all values of the selected range.

**Data range:** Select the data range. A range represents a single cell or a group of adjacent cells in your spreadsheet. For example, A1:D10 is shown below.

<figure><img src="https://3705758741-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdWK_NNMGxKWvF0J5hL%2Fuploads%2FPu8aPnDcWaL9orScXGWs%2Fimage.png?alt=media&#x26;token=67d08d9e-5dbf-4957-a953-352579128651" alt=""><figcaption></figcaption></figure>

**Case type:** Select the desired case type from the list. Currently we support the following types:

* Upper case (THIS IS UPPERCASE
* Lower case (this is lower case)
* Proper case (This Is Proper Case)
* Sentence case (This is sentence case)
* Upper camel case, or pascal case (ThisIsUpperCamelCase)
* Lower camel case (thisIsLowerCamelCase)
* Train case (This-Is-Train-Case)
* Snake case (this\_is\_snake\_case)
* Kebab case (this-is-kebab-case)

### Round numbers

This function will round all numbers to the nearest integers.

**Data range:** Select the data range. A range represents a single cell or a group of adjacent cells in your spreadsheet. For example, A1:D10 is shown below.

<figure><img src="https://3705758741-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdWK_NNMGxKWvF0J5hL%2Fuploads%2FPu8aPnDcWaL9orScXGWs%2Fimage.png?alt=media&#x26;token=67d08d9e-5dbf-4957-a953-352579128651" alt=""><figcaption></figcaption></figure>

### Clean data

This function allows you to clean data in the selected range. For example, you can remove all punctuations from text values.

**Data range:** Select the data range. A range represents a single cell or a group of adjacent cells in your spreadsheet. For example, A1:D10 is shown below.

<figure><img src="https://3705758741-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdWK_NNMGxKWvF0J5hL%2Fuploads%2FPu8aPnDcWaL9orScXGWs%2Fimage.png?alt=media&#x26;token=67d08d9e-5dbf-4957-a953-352579128651" alt=""><figcaption></figcaption></figure>

**Option:** How do you want your data to be clean? We support the following types:

* Remove lead spaces. This will remove leading spaces from all cells in the selected range.
* Remove trailing spaces. This will remove trailing spaces from all cells in the selected range.
* Remove all non-numbers. This will remove all values that are not numbers from all cells in the selected range. For example: “He is 30 years old.” will become “30”.
* Remove all numbers: This will remove all values that are numbers from all cells in the selected range. For example: “He is 30 years old.” will become “He is 30 years old.”.
* Remove all punctuations. This will remove all punctuations from all cells in the selected range. For example: “He is 30 years old, isn’t he?” will become “He is 30 years old isnt he”.

### Unpivot data

This function will transform a pivot table into raw data. Read more [here](https://docs.tibco.com/pub/spotfire/6.5.1/doc/html/data/data_unpivoting_data.htm).

**Data range:** Select the data range. A range represents a single cell or a group of adjacent cells in your spreadsheet. For example, A1:D10 is shown below.

![Data range example in Google Spreadsheets](https://3705758741-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MdWK_NNMGxKWvF0J5hL%2F-MdWc57g8V83KL8HfDWE%2F-MdXCCE240s2rPaqFmtL%2Fimage.png?alt=media\&token=6dbcd73d-f0ef-43c0-94a5-50233d7642e1)

### Unix time converter

This function will convert epoch time/UNIX timestamps into the UTC time. This is useful when you have retrieved a column of timestamps from an API endpoint that uses the UNIX timestamp.

**Data range:** Select the data range. A range represents a single cell or a group of adjacent cells in your spreadsheet. Only one column each execution is allowed.
