I would like a formula to essentially do what the =countif "criteria" formula does; however, instead of a number of how many times "criteria" occurs I would like it to display the name of each person that has said "criteria". Please see below...
| Name (Column A) | Dietary Preference (Column B) |
|---|---|
| Tom | Regular Diet |
| Anna | Regular Diet |
| Julie | Pescatarian |
| John | Vegetarian |
| Emma | Regular Diet |
| Bob | Vegetarian |
I would like to convert the above table to look like the below table
| Vegetarians | Pescatarians | Regular Diet |
|---|---|---|
| John | Julie | Tom |
| Bob | ------------ | Anna |
| ----------- | ------------ | Emma |