datastudent
Board Regular
- Joined
- Sep 7, 2021
- Messages
- 91
- Office Version
- 365
- Platform
- Windows
Hi,
I want to extract the name of the country in my set of data. All the names are in the beginning of the set of texts so I tried to use the LEFT and FIND function. However, It does not work on those two words country and those row that only has the country name alone.
Here's where I am right now.
I want to extract the name of the country in my set of data. All the names are in the beginning of the set of texts so I tried to use the LEFT and FIND function. However, It does not work on those two words country and those row that only has the country name alone.
Here's where I am right now.
Template_v1.xlsm | |||||||
---|---|---|---|---|---|---|---|
B | C | F | |||||
1 | Country | Outbound Destination | |||||
2 | Albania | Albania Fixed | Albania | ||||
3 | Albania | Albania Mobile | Albania | ||||
5 | #VALUE! | Argentina | Argentina | ||||
6 | Argentina | Argentina - Mobile | Argentina | ||||
7 | #VALUE! | Armenia | Armenia | ||||
19 | Bosnia&Herzegovina | Bosnia and Herzegovina | Bosnia&Herzegovina | ||||
20 | Bosnia&Herzegovina | Bosnia and Herzegovina Mobile | Bosnia&Herzegovina | ||||
30 | Costa | Costa Rica | Costa Rica | ||||
34 | Cyprus | Cyprus Mobile | Cyprus | ||||
35 | Czech | Czech Republic | Czech Republic | ||||
36 | Czech | Czech Republic Mobile | Czech Republic | ||||
iBASIS_Outbound |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B2:B3,B5:B7,B19:B20,B30,B34:B36 | B2 | =IF(OR(C2="Bosnia and Herzegovina",C2="Bosnia and Herzegovina Mobile"),"Bosnia&Herzegovina",LEFT(C2,FIND(" ",C2)-1)) |