Extract Text from a Text String

datastudent

Board Regular
Joined
Sep 7, 2021
Messages
92
Office Version
  1. 365
Platform
  1. Windows
Hi,

How do I extract the word "Fixed" and "Mobile" from these list.

Australia Fixed - National
Australia Mobile - National
Belgium Fixed - National
Canada Mobile - National
 
Dynamic formula in B2
Excel Formula:
=LET(a,SUBSTITUTE(A2:A5," - National",""), MAP(a,LAMBDA(r,INDEX(TEXTSPLIT(r,," "),LEN(r)-LEN(SUBSTITUTE(r," ",""))+1))))
 
Upvote 0
No need to use a lambda function
Fluff.xlsm
ABC
1
2Australia Fixed - NationalFixedFixed
3Australia Mobile - NationalMobileMobile
4Belgium Fixed - NationalFixedFixed
5Canada Mobile - NationalMobileMobile
6South Korea Mobile - NationalMobileMobile
Data
Cell Formulas
RangeFormula
B2:B6B2=TEXTAFTER(TRIM(TEXTBEFORE(A2:A6,"-",-1))," ",-1)
C2:C6C2=TEXTBEFORE(TEXTAFTER(A2:A6," ",-3)," ")
Dynamic array formulas.
 
Upvote 0
Hi,

I'm working on a new set of data now and I encounter the same problem but with different formats. I'm not sure if I can create a new forum for it so I'm just gonna ask help in here first.

The same with my first concern, I just need to identify the Fixed and Mobile. Here are some sample of the format of the data.

A1 Mobile
At&T Mobile Block A
Cable & Wireless Mobile
Clair Fixed
Fixed Local
Mobile Other
Mnt Fixed & Mobile
Mnt - Mobile
 
Upvote 0
How about:
=IF(ISNUMBER(FIND("Mobile",A1:A8)),"Mobile","")
=IF(ISNUMBER(FIND("Fixed",A1:A8)),"Fixed","")
 
Upvote 0

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