Here's my problem.
I have a list of countries, and I want to ensure that the country code is automatically assigned to each country in a later column.
Here are the countries and codes:
APAC (Asia Pacific)
China
Hong Kong
Japan
Malaysia
Singapore
Taiwan
Thailand
Indonesia
Belux (Belgium Luxembourg)
Belgium
Luxembourg
FR
France
Morocco
GCE
Austria
Germany
Poland
IB
Andorra
Portugal
Spain
INDIA
India
IT
Italy
MEA
Greece
South Africa (SAF)
Swiss
Turkey
NAM
U.S.
Mexico
NL
The Netherlands
SAM
Brasil
Argentina
Chile
Colombia
Peru
Venezuela
UK
United Kingdom
WL
Belgium
France
Germany
You may notice that the last code (WL) is assigned to countries that are already covered by other codes (FR for France, GCE for Germany and BELUX for Belgium).
So to achieve this small automatism I have some concerns. I am unable to put my 32 conditions (32 countries name) on the line. I can do that myself but it creates several columns with duplicates:
=IF(A1="France";"FR";IF(A1="Morocco";"FR";IF(A1="Spain";"IB";IF(A1="Andorra";"IB";IF(A1="Belgium";"B ELUX";IF(A1="Luxembourg";"BELUX";"" ))))))
=F1 & IF(A1="Hong-Kong";"APAC";IF(A1="Japan";"APAC";IF(A1="Malaysia";"APAC";IF(A1="Singapore";"APAC";IF(A1="Taiwan";"A PAC";IF(A1="Thailand";"APAC";"" ))))))
=F1 & IF(A1="Indonesia";"APAC";IF(A1="Austria";"GCE";IF(A1="Germany";"GCE";IF(A1="Poland";"GCE";IF(A1="Por tugal";"IB";IF(A1="India";"INDIA";"" ))))))
Someone would have an easier way to complete my project?
In fact two things that block me:
The first thing is that containing the file when I add the entire list of countries and that I drag formula down to the code, I have to click again on each line or formula is present and that I valid entrance that the formula is taken into account.
I do not understand but I have to do this.
Then my biggest problem is that when I want to retrieve this code in my file, I worry for updating the formula ie I can not make good arguments to the formula of SearchV regarding the logical_test but also to line value_if_true.
So ultimately to be more clear I do not know the appropriate formula in my case.
Bookmarks