Find position inside of a text string with a delimiter

Stephen_IV

Well-known Member
Joined
Mar 17, 2003
Messages
1,174
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Good morning I am trying to figure out how to find out what position a value is in a string separated by /
In the example below I would like to find the position of Mark, any help would be appreciated. Thanks!

Find position inside of a text string with a delimiter.xlsm
AB
1Names = MarkPosition inside of the /
2Mark1
3Paul/Don/Jeff/Mark4
4Don/Mark2
5Fred0
6Mark1
7Al/Frank/Fred0
8Paul0
9Mark/Paul1
10Al/Kenny/Fred0
11George/Larry/Don0
12Colby/George/Tom /Don/Fred/Mark/Jeff/Nick6
Sheet2
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
How about
Fluff.xlsm
AB
1Names = MarkPosition inside of the /
2Mark1
3Paul/Don/Jeff/Mark4
4Don/Mark2
5Fred0
6Mark1
7Al/Frank/Fred0
8Paul0
9Mark/Paul1
10Al/Kenny/Fred0
11George/Larry/Don0
12Colby/George/Tom /Don/Fred/Mark/Jeff/Nick6
Main
Cell Formulas
RangeFormula
B2:B12B2=IFNA(MATCH("mark",TEXTSPLIT(A2,"/"),0),0)
 
Upvote 1
Fluff! Perfect that is exactly what I need!!! Thank you again!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,216,098
Messages
6,128,812
Members
449,468
Latest member
AGreen17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top