Having a period after the value in columns 1 and 2, but not in column 3, seems to complicate this.
@Pauliet123 Is that really representative of the actual data? Or is that something you just put in there while typing your original question and doesn't represent the actual data?
If the actual data has periods in columns 1 and 2 but not in column 3, then the solution from @yabwon fails if "Pizza" (with no period) appears in column 3.
As always, good data layouts with repeatable formatting of the data makes programming easier. Unusual data layouts and/or inconsistent formatting of the data make programming harder.
--
Paige Miller