Skip to main content

Easily find position of nth occurrence of a character in text string in Excel

Kutools for Excel

Boosts Excel With 300+
Powerful Features

Usually, you can use formula or VBA code to find and return the position of nth occurrence of a certain character in a text string. But actually, you can solve this problem with a handy tool and save more time in your daily work. The Find where the character appears Nth in a string utility of Kutools for Excel can help you easily solve this problem without any formulas or complicated VBA code.

Easily find position of nth occurrence of a character in text string


Easily find position of nth occurrence of a character in text string

Supposing you need to find position of the 3rd occurrence of character “n” from the text string in cell A1 as bellow screenshot shown, please do as follows.

1. Please select a blank cell to use the formula, and click Kutools > Formula Helper > Formula Helper. See screenshot:

2. In the Formulas Helper dialog box, please do as follows:

  • In the Choose a formula box, find and select Find where the charatcer appears Nth in a string;
    Tips: You can check the Filter box, enter certain word into the text box to filter the formula quickly.
  • In the String box, specify the cell with text string you want to find the nth character position.
  • Type the character you need to find into the Character box.
  • Enter the number of nth occurrence of the character into the Nth occurrence box.
  • Click the OK button.

Notes:

1. For example, try to identify the location of the character “n” in the third occurrence, please type number 3 into the Nth occurrence box. If you want to locate the fourth occurrence of “n”, please type number 4.

Now the position of the 3rd character “n” is populated in the selected cell. See screenshot:

2. If you like this Formula Helper, you can click the Share icon in the Formulas Helper dialog to share it with your friend via email or share to social medias such as Facebook, Twitter, Linkedin and Weibo.


Demo: Easily find position of nth occurrence of a character in text string

Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. Download and free trial Now!


Productivity Tools Recommended
The following tools can greatly save your time and money, which one is right for you?
Office Tab: Using handy tabs in your Office, as the way of Chrome, Firefox and New Internet Explorer.
Kutools for Excel: More than 300 Advanced Functions for Excel 2021, 2019, 2016, 2013, 2010, 2007 and Office 365.

Kutools for Excel

The functionality described above is just one of 300 powerful functions of Kutools for Excel.

Designed for Excel(Office) 2021, 2019, 2016, 2013, 2010, 2007 and Office 365. Free download and use for 30 days.

Screen shot of Kutools for Excel

btn read more      btn download     btn purchase

Comments (1)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Not helpful when I don't know the 'nth' count of the character; should be inherent that the formula finds the 'nth' number of the character and uses that in the formula, e.g., 'in <string> find <character> (and inherently count the total occurrences to know 'nth') and return <nth> instance position in string'; This would require formula to assume if field 'Nth occurrence' is left blank, it will use the 'Nth occurrence value' as the argument
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations