Formula Help Please II

How_Do_I

Well-known Member
Joined
Oct 23, 2009
Messages
1,838
Office Version
  1. 2010
Platform
  1. Windows
Where am I going wrong here please... In my workbook there is a lot more text after the word "Attendees:" in cell B3... What I need to extract is "CC 1 (25)"...

Excel Workbook
BC
3Record Type: Conclusion. Former Reference: CC 1 (25). Attendees:CC 1 (25). Attendees:
Sheet1
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Hi,
you could use this custom function.

Code:
Function Attendees(strText As String) As String
    Dim intPos As Integer
    
    intPos = InStr(strText, "CC 1")
    Attendees = Mid(strText, intPos)

End Function
 
Upvote 0
Do you mean you want to show
CC 1 (25)

and not
CC 1 (25).Attendees:

?

With this type of thing, it's usually best to provide several slightly different examples of what you want to do, so we can establish some kind of general rule for your data.
 
Upvote 0
Hi,

As pointed out above, it's best to show a few samples of Possible variations of your Text strings.

Based solely on your Single sample:


Book1
BC
3Record Type: Conclusion. Former Reference: CC 1 (25). Attendees: John Doe, Jack Doe, Jane Doe, etc.CC 1 (25)
Sheet602
Cell Formulas
RangeFormula
C3=TRIM(LEFT(SUBSTITUTE(MID(B3,SEARCH("Reference:",B3)+10,99),".",REPT(" ",99)),99))
 
Upvote 0

Forum statistics

Threads
1,223,728
Messages
6,174,150
Members
452,548
Latest member
Enice Anaelle

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