Make this formula return the value it has found

griffj

Board Regular
Joined
May 29, 2015
Messages
56
Hi

I am using the following formula to check whether a text string contains a word that is on a list.
Code:
=MIN(SEARCH({"Power","Data","Telecoms"},C1&"PowerDataTelecoms"))

This returns the start position if a word in the list is found in the text string. What I would like it to return is the value it matched on. So if in cell C1 I had 'random text Data random text' in stead of returning the number 13, the starting position of the word 'Data' I would like it to return the word 'Data'.

I could use a simple Mid() formula, but the number of characters will change depending on the word found. i.e. Data is only 4 characters, where Telecoms is 7.

Also I am ideally not wanting it to look for the next space, as the word may have a number bolted on to it. i.e. Data2.

Sample Spreadsheet.

Thanks in advance!
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Forum statistics

Threads
1,223,243
Messages
6,170,971
Members
452,371
Latest member
Frana

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