Formula Help Please

Dazzawm

Well-known Member
Joined
Jan 24, 2011
Messages
3,748
Office Version
  1. 365
Platform
  1. Windows
I have cells with various lengths of data. I need any data that starts with CU to be extracted or copied from the cell. The number CU1234 for example could be anywhere within the cell amongst other data. Thanks

Example

Sheet1

*YZ
10BeforeAfter
11Done:IIS042;Lemon:CP003;Fuel:CU1092CU1092
12Done:IIS070;;Fuel:CU1210:Lemon:CP037CU1210

<COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 282px"><COL style="WIDTH: 282px"></COLGROUP><TBODY>
</TBODY>


Excel tables to the web >> Excel Jeanie Html" target="_blank"> Excel Jeanie HTML 4
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
=iferror(left(right(b11,len(b11)-find("cu",b11,1)+1),find(":",right(b11,len(b11)-find("cu",b11,1)+1),1)-1),right(b11,len(b11)-find("cu",b11,1)+1))
 
Upvote 0
Its Case Sensitive & will take any length Character

=IFERROR(LEFT(RIGHT(B12,LEN(B12)-FIND("CU",B12,1)+1),FIND(":",RIGHT(B12,LEN(B12)-FIND("CU",B12,1)+1),1)-1),RIGHT(B12,LEN(B12)-FIND("CU",B12,1)+1))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,926
Messages
6,122,305
Members
449,079
Latest member
juggernaut24

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