Find function

vmjan02

Well-known Member
Joined
Aug 15, 2012
Messages
1,134
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
  5. 2013
Hi,

I have a data in column A as

ASR903/I-AP-VKPM-ENB-0178/VKPMGLNMPAR001/172.16.98.137/PSU fail 2/10 --> a1
ASR903//I-MH-PNJI-ENB-0070//PNJISNGLPAR002//172.16.98.38//p0 unknown --> a2
ASR-903// I-WB-ASSL-ENB-0077 *ASSLNCPRPAR001/172.16.58.119//P1 fail --> a3
ASR903/VDDRRMNGPAR001/I-GJ-VDDR-ENB-0123/IM37511249/P1 PSU is in failed state -->a4 and so on


Is there a function to only get (in column B output)
I-AP-VKPM-ENB-0178 --> from a1
I-MH-PNJI-ENB-0070 --> from a2
I-WB-ASSL-ENB-0077 --> from a3
I-GJ-VDDR-ENB-0123 --> from a4
all the len is 18

Is there a function to only get (in column C output)
VKPMGLNMPAR001 --> from a1
PNJISNGLPAR002 --> from a2
ASSLNCPRPAR001 --> from a3
VDDRRMNGPAR001 --> from a4
all the len is 14
 
Last edited:

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Hi ,

For your first requirement , try this :

=MID(SUBSTITUTE(A1," ", ""), FIND("/I-", SUBSTITUTE(A1," ", ""))+1, 18)
 
Upvote 0
1st part worked well, but mention below cases its not working

I-BR-BKLC-ENB-0037//BKLCBSCKPAR002//172.16.61.215//A900-PWR550-D//ps, fail
*I-KA-BGLR-ENB-6143//BGLRTDSRPAR001//172.16.67.181//PSU1 Fail


output:- I-BR-BKLC-ENB-0037 -- not working with formula
output:- I-KA-BGLR-ENB-6143 -- not working with formula
 
Upvote 0
Hi ,

Text extracting functions will work only if the data follows a fixed set of rules ; if you can either specify exactly how we can go about identifying the required sub-strings , or if you can post enough data that includes all possible variations , it would help.
 
Upvote 0
Hi ,

The problem is that the data does not follow a set format.

In some cases , the wanted sub-string is to the right of the first sub-string , while in other cases it is to the left.

How exactly can we identify this sub-string ? The only thing known about it is that is 14 characters long.

Can you give any pointer ?
 
Upvote 0
pointer would be it could be before "//" or "/" or after "//" or "/"
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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