Formula to write name when seen in text

Status
Not open for further replies.

Obewan

Board Regular
Joined
Aug 25, 2021
Messages
68
Office Version
  1. 365
Platform
  1. Windows
I have a long list of text (maybe 4,500 lines) and I need a formula that identifies the name of a dog when it sees it in Column A - it may appear more than once - and then writes it as the answer in column B. The name is spelt correctly in Column C but not in Column A as it has extra characters attached to it. In the sheet below the data is all in column A, the answer to the formula I need to drag down column B and the actual name appears in column C. I need the answer to be the green highlighted cell. The formula needs to cover rows 2:4500. The actual name will always appear in column C before the name in column A. The fomrula would identify all names in Column C ats it sees them in Column A. See example below:

Book5
ABC
1CriteriaOutputCriteria
2WILLIAM BALE
3OBLIGING CYNDIE
4LET'S WIN MINDEE
5YOGI'S BABY
6VACANT BOX
7BEIJING LING
8CHIPPED PENNY
9MICK'S GAL
10
11
12
13
14WILLIAM BALEBKW / D Jul-21 Allen Deed x Dyna ChillWILLIAM BALE
15Trainer: Juanita Thompson (Tungamull)Owner: Bradley Mulvihill
16Prizemoney: $160
17Rating:97
18Our Price:$2.4
19Date
20MON
Sheet1
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
See if this works for you? I'm assuming only one dog name can appear in a cell, otherwise TEXTJOIN(FILTER()) would probably be the preferred approach.
Book1
ABC
1CriteriaOutputCriteria
2WILLIAM BALE
3OBLIGING CYNDIE
4LET'S WIN MINDEE
5YOGI'S BABY
6VACANT BOX
7BEIJING LING
8CHIPPED PENNY
9MICK'S GAL
10
11
12
13
14WILLIAM BALEBKW / D Jul-21 Allen Deed x Dyna ChillWILLIAM BALE
15Trainer: Juanita Thompson (Tungamull)Owner: Bradley Mulvihill
16Prizemoney: $160
17Rating:97
18Our Price:$2.4
19Date
20MON
Sheet1
Cell Formulas
RangeFormula
B14B14=XLOOKUP(TRUE,ISNUMBER(SEARCH($C$2:$C$9,A14)),$C$2:$C$9,"")
 
Upvote 0
Duplicate to: Find text and then show text

In future, please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted.

In relation to your question here, I have closed this thread so please continue in the linked thread. If you do not receive a response, you can "bump" it by replying to it yourself, though we advise you to wait 24 hours before doing so, and not to bump a thread more than once a day.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,215,685
Messages
6,126,201
Members
449,298
Latest member
Jest

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