Excel Formulas for Basic text sort formula in Excel!!
Tags: excelformula, excelformulas
Published: 2021-11-02 08:38:01

---
title: Excel Formulas for Basic text sort formula in Excel!!
published: true
date: 2021-11-01 07:21:42 UTC
tags: ExcelFormula,Excelformulas
canonical_url: https://geekexcel.com/excel-formulas-for-basic-text-sort-formula-in-excel/
---

If you want to learn how to ** use the basic text sort formula**  in Excel 365? ** ** This post will give you an overview of how to do so using the  **COUNTIF** Function in Excel, and it provides some simple formulas to help you quickly get it done. Let’s jump into this post!! Get an official version of ** MS Excel**  from the following link: [https://www.microsoft.com/en-in/microsoft-365/excel](https://www.microsoft.com/en-in/microsoft-365/excel)

## Generic Formula

- You can use the below-mentioned formula to use the basic text sort formula.

```

=COUNTIF(range,"<="&A1)

```

## Syntax Explanation

- **Comma symbol (,)** – It is a separator that helps to separate a list of values.
- **Parenthesis ()** – The main purpose of this symbol is to group the elements.
- **COUNTIF**  – In Excel, this function will help to count the number of cells that meet a single condition or criteria.

## Practical Example

To use the basic text sort formula, refer to the below given example.

- Firstly, you have to **create a sample data** in Excel.

![](https://geekexcel.com/wp-content/uploads/2021/11/Sample-data.png)<figcaption>Sample data</figcaption>

- Then, to dynamically sort text values in alphabetical order, you need to use the following formula in **[formula bar](https://geekexcel.com/how-to-use-formula-bar-for-various-purpose-in-excel-365/)**.

```

=COUNTIF(countries,"<="&B5)

```

![](https://geekexcel.com/wp-content/uploads/2021/11/Use-the-Formula.png)<figcaption>Use the Formula</figcaption>

- Now, you have to **Hit the Enter key** to get the result as shown below in the **cell C5**.

![](https://geekexcel.com/wp-content/uploads/2021/11/Result-in-Cell-E5.png)<figcaption>Result in cell C5</figcaption>

- Finally, you have to **press Ctrl+D key** to get the results in all other columns.

![](https://geekexcel.com/wp-content/uploads/2021/11/Final-Output.png)<figcaption>Output</figcaption>

**Check this too:**

- [Excel Formulas to use Basic numeric sort formula in Excel!!](https://geekexcel.com/excel-formulas-to-use-basic-numeric-sort-formula-in-excel/)
- [Formulas to abbreviate state names in Excel 365!!](https://geekexcel.com/excel-formulas-to-abbreviate-state-names-in-excel-365/)

## Bottom-Line

Hope you understood the simple formula on how to **use the basic text sort formula ** in Excel 365. Let me know if you have any  **doubts**  regarding this post or any other article on this site and share this post with others that can benefit from it! To learn more, check out our website **[Geek Excel](https://geekexcel.com/) **and [**Excel Formulas**](https://geekexcel.com/excel-formula/) **!!**

**Keep Reading:**

- **[Excel Formulas for Basic error trapping in Excel Office 365!!](https://geekexcel.com/excel-formulas-for-basic-error-trapping-in-excel-office-365/)**
- **[Excel Formulas to use Basic numeric sort formula in Excel!!](https://geekexcel.com/excel-formulas-to-use-basic-numeric-sort-formula-in-excel/)**
- **[Formulas To Calculate Running total in Excel Table!!](https://geekexcel.com/excel-formulas-to-calculate-running-total-in-excel-table/)**
- **[Excel Formulas to calculate Total rows in range in Excel Office 365!!](https://geekexcel.com/excel-formulas-to-calculate-total-rows-in-range-in-excel-office-365/)**
- **[Excel Formulas to get Dynamic reference Table name!!](https://geekexcel.com/excel-formulas-to-get-dynamic-reference-table-name/)**