Pull data after specific text

Al99

New Member
Joined
Dec 12, 2020
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
Hi All,

I would like some help on trying to figure out how to perform the following:

In cell A1 I have the following format of data:
"Performance: Improvement
Performed by: Joe Bloggs"

Essentially, I would like to pull the text just after 'Performance:' part and also pull the text just after 'Performed By:'

This will help me understand if the text is left blank just after 'Performance:' & 'Performed By:'
There is no specific amount of characters that will be after the 'Performance:' & 'Performed By:', this will vary.

Any ideas on how this can be done?

Thanks in advance
 
maybe this single formula also works
(if only I had let to avoid the repeated filterxlm part...)
Or perhaps just this? (Though I don't see any inherent advantage in using a single formula over two even simpler ones)

20 12 13.xlsm
ABC
1PerformancePerformed By
2Performance: Improvement Performed by: Joe BloggsImprovementJoe Bloggs
3Performance: Performed by: Joe Bloggs Joe Bloggs
4Performance: Improvement Performed by:Improvement 
5Performance: Performed by:  
6Performance:Increasing Improvement Performed by:JBIncreasing ImprovementJB
Extract Text (2)
Cell Formulas
RangeFormula
B2:C6B2=TRIM(MID(SUBSTITUTE($A2,CHAR(10)&"Performed by:",REPT(" ",99)),COLUMNS($B:B)*99-86,99))
 
Upvote 0

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Or perhaps just this? (Though I don't see any inherent advantage in using a single formula over two even simpler ones)
True, I hardly use formulae any more for these kind of "challenges" and jump to Power Query.
Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    SplitText = Table.AddColumn(Source, "Split", each List.Transform(Text.Split([Column1],"#(lf)"), each Text.Trim(Text.AfterDelimiter(_, ":")))),
    #"Extracted Values" = Table.TransformColumns(SplitText, {"Split", each Text.Combine(List.Transform(_, Text.From), ";"), type text}),
    #"Split Column by Delimiter" = Table.SplitColumn(#"Extracted Values", "Split", Splitter.SplitTextByEachDelimiter({";"}, QuoteStyle.Csv, false), {"Split.1", "Split.2"})
in
    #"Split Column by Delimiter"
 
Upvote 0

Forum statistics

Threads
1,214,976
Messages
6,122,541
Members
449,089
Latest member
davidcom

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