Find the Country in a set of words

datastudent

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

I don't know how to explain this clearly so please be patient with me.

In column C, I have a formula where I look for the "Fixed" and "Mobile" only. What I want is to also show the country name if in column A it only show the country name as shown below.

Template_v1.xlsm
AC
3Outbound Destinationa
22AustraliaAustralia
23Australia Emergency 
24Australia FixedFixed
26Australia MobileMobile
52BrazilBrazil
53Brazil - EMS 
54Brazil - Freephone 
55Brazil - MobileMobile
81Czech RepublicCzech Republic
82Czech Republic 112 
83Czech Republic Freephone 
84Czech Republic MobileMobile
85Czech Republic Shared 
iBASIS_Outbound
Cell Formulas
RangeFormula
C23:C24,C26,C82:C85,C53:C55C23=IFERROR(ARRAYTOTEXT(REGEXEXTRACT($A23,"Mobile|Fixed",1)),"")
 
What about the second formula I suggested?
If that also does not work (hard to tell when most of the rows of the sample data are hidden) then I am in agreement with Eric that a lookup table would be required.
Yea both formula shows the same problem. Some country is not recognized.

Can you please help me with my follow up question(post #5) above :)
 
Upvote 0
Okay I will add the Country code. But I still want to show the "Fixed" and "Mobile". How do I combine that to the initial formula?

=LET(c,Note!$E$2:$E$80,mf,{"Mobile","Fixed"},XLOOKUP(A4,c,c,XLOOKUP(TRUE,ISNUMBER(SEARCH(mf,A4)),mf,"",0),0))
Actually nevermind. I figured it out. Thanks!
 
Upvote 0

Forum statistics

Threads
1,226,837
Messages
6,193,254
Members
453,784
Latest member
Chandni

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