I'm looking to group company segments by using a Country lookup. I have a string that looks up a specific country (i.e. DE) and then a CONTAINS function which is looking up more than one Country (GB or IE). The DE formula works fine on its own, so does the GB/IE formula but when grouped together, I get an EXTRA IF error. Can someone help?
IF(
CONTAINS('GB|IE', COUNTRY),
IF(
EMPLOYEES >= 750,
'Enterprise',
IF(
EMPLOYEES >= 201,
'MM',
IF(
EMPLOYEES >= 80,
'GRB',
IF(
EMPLOYEES >= 20,
'SB',
'ESB'
)
)
)
),
NULL
)
IF(
COUNTRY = 'DE',
IF(
EMPLOYEES >= 1000,
'Enterprise',
IF(
EMPLOYEES >= 201,
'MM',
IF(
EMPLOYEES >= 46,
'GRB',
IF(
EMPLOYEES >= 11,
'SB',
'ESB'
)
)
)
),
NULL
)