EXCEL - Find category by searching keyword from other worksheet
问题 I want to get sales by category (states). In Sheet1 , there're state's names in row A (A1 to A6) and cities in the column. Each cities belongs to states, e.g. Sydney belongs to NSW, and Melbourne & Geelong belong to VIC. Then Sheet2 contains sales data like shown below. I want to calculate sales by state each month. At the moment, each cells between row D and row I has a formula like below; (e.g. F5) =IF(AND(ISERR(SEARCH("Brisbane",B5)),ISERR(SEARCH("Gold Coast",B5)),ISERR(SEARCH("Cairns",B5)