Dec 31 2022 10:44 PM
In the 1st column, there are a list of countries separated by comma. In the 2nd column, i would like to get a result where it will show or extract the country that matching either to following criteria/condition= China or Hong Kong or Taiwan.
Please advise. Thank you.
Dec 31 2022 11:18 PM
@HZ25062016 Cf. Welcome to your Excel discussion space!: Excel version + OS please
Dec 31 2022 11:24 PM
Dec 31 2022 11:38 PM - edited Dec 31 2022 11:54 PM
SolutionThanks for the sample. Excel version + OS still missing. Below I assumed Excel 2021 or 365 is in use:
EDIT: On reflection, in C3:
=TEXTJOIN(", ",,IF(COUNTIF(B3, "*" & {"China","Hong Kong","Taiwan"} & "*"),{"China","Hong Kong","Taiwan"},""))
Jan 01 2023 12:20 AM
Jan 01 2023 01:04 AM