## How to find nth occurrence (position) of a character in text string in Excel?

For example, there is a long sentence in Cell A1, see the following screenshot. And now you need to find the 3rd occurrence or position of Character "c" from the text string in Cell A1. Of course, you can count the characters one by one, and get the exact position result. However, here we are going to introduce some easy tips to find the nth occurrence or position of specific character from text string in a cell.

**Find nth occurrence (position) of a character in a Cell with Find formula**

**Find nth occurrence (position) of a character in a Cell with VBA **

**Kutools for Excel**: add 120 new features in Excel. Save one hour every day.

**Classic Menu for Office**: brings back classic menus to Office 2010 and 2013 (includes Office 365).

**Office Tab**: brings tabbed interface to Office as the use of web browser Chrome, Firefox and Internet Explorer.

** Find nth occurrence (position) of a character in a Cell with Find formula**

There are two Find formulas can help you find the nth occurrence or position of specific character from text string in a cells quickly.

The following formula will show you how to find the 3rd occurrence of "c" in Cell A1.

**Find Formula 1**

In a blank cell, enter the formula ** =FIND("c",A1,FIND("c",A1)+2)**.

And then press the **Enter** key. The position of the third letter “c” has been displayed.

**Note**: You can change the 2 in the formula based on your needs. For example, if you want to find the fourth position of "c", you can change the 2 to 3. And if you want to find the first position of "c", you shuold change 2 to 0.

**Find formula 2**

In a blank cell, enter the formula *=FIND(CHAR(1),SUBSTITUTE(A1,"c",CHAR(1),3))*, and press **Enter** key.

**Note**: The "3" in the formula means the third "c", you can change it based on your needs.

** Find nth occurrence (position) of a character in a Cell with VBA**

Actually, you can apply the VB macro to find nth occurrence or position of a specific character in one cell easily.

Step 1: Hold down the **ALT + F11** keys, and it opens the **Microsoft Visual Basic for Applications** window.

Step 2: Click **Insert** >** Module**, and paste the following macro in the Module Window.

*Function FindN(sFindWhat As String, _**sInputString As String, N As Integer) As Integer** Dim J As Integer**Application.Volatile** FindN = 0** For J = 1 To N** FindN = InStr(FindN + 1, sInputString, sFindWhat)**If FindN = 0 Then Exit For**Next**End Function*

Step 3: Now if you want find the exact occurrence of position of third "c" in Cell A1, please enter the formula of *=FindN("c",A1,3)*, and press the **Enter** key. Then it will return the exact position in the specific cell at once.

## Comments

=FIND("c",A1,1) will find the first c

=FIND("c",A1,2) through =FIND("c",A1,5) will find the second c

=FIND("c",A1,6) through =FIND("c",A1,10) will find the third c.

anything above won't find anything.

=FIND("c",A1,FIND("c",A1)+2),and if you want to find the first letter "c", you just need to change the 2 to 0.Formula 2 is spot-on, though: SUBSTITUTE the nth instance of your target string for a unique character that won't otherwise appear in the rest of the text, then FIND that unique character.

I want to select a particulate string form a cell

Example:-

My Name is Mohit

i want to return any value Like mohit, is, Name, My using a function.

is there any Function or not

=FIND("X",A1,(FIND("X",A1,FIND("X",A1,1)+1))+1)

The VBA module gets my vote though. Much easier to remember