Capturing a specific string within another cell...

kbishop94

Active Member
Joined
Dec 5, 2016
Messages
476
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I'm trying to figure out a formula that will capture only specific parts of a cells string...

I need a cell in Q to capture specific parts of the adjacent cell to it in column R:
Capture487.JPGCapture488.JPG

I need to capture only the following strings that may (or may not) reside as part of cell R: "CSR21U", "CSR22V", "CSR23W", "CSR24X" or "CSR25Y"

so in the example pics I have shown above, in this particular cell (R18), both CSR23W and CSR24X are present:

Capture490.JPG

meaning CSR23W and CSR24X would be copied from the target cell and will be displayed in the formula row in cell Q18:
Capture491.JPG

Any help is surely appreciated!!
 
When "TRANSPOSE(TEXTSPLIT(R1,CHAR(10)))" is applied, the result is an array of values, e.g. "CSR21U", "CSR22V", "CSR23W", "CSR24X", "CSR25Y"; "a" represents each value of this array and basically says to XLOOKUP search for the first one, then for the second one etc.
Thank you for the explanation, I am trying to learn LAMBDA, but I still do not get it, where does "a" come from and how it will work in this formula because we have never given any calculation to it.
 
Upvote 0

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Thank you for the explanation, I am trying to learn LAMBDA, but I still do not get it, where does "a" come from and how it will work in this formula because we have never given any calculation to it.

In this case it is not a calculation, "a" represents a row within an array.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,180
Members
453,021
Latest member
Justyna P

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