=IF(A 1= "place name 1", "group a", IF(A 1= "place name 2", "b," group b ",IF(A 1=" place name 3 ","c,
Note that there should be as many right parentheses as there are left parentheses in front.