DEV Community

Andrews
Andrews

Posted on • Originally published at geekexcel.com on

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

Generic Formula

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

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

Enter fullscreen mode Exit fullscreen mode

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.

Sample data

  • Then, to dynamically sort text values in alphabetical order, you need to use the following formula in formula bar.

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

Enter fullscreen mode Exit fullscreen mode

Use the Formula

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

Result in cell C5

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

Output

Check this too:

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 *and Excel Formulas *!!

Keep Reading:

Top comments (0)