Using the table below my goal is to have a properly formatted string I can use for reporting purposes. I would filter based on whether the column attributes included "Improve" and concatenate them. However, I'm not too sure how to go about formatting the Result properly by removing additional "Improve"'s and using commas and the word 'and' when appropriate. Thanks in advance for suggestions!
ID | ProdDessert | ProdSupplies | ProdFood | ProdFoodSvc | Result |
1 | Improve Dessert Sales | Ok Supplies Sales | High Food Sales | Ok Food Services Sales | Improve Dessert Sales |
2 | Ok Dessert Sales | Ok Supplies Sales | Improve Food Sales | Ok Food Services Sales | Improve Food Sales |
3 | Ok Dessert Sales | Ok Supplies Sales | Ok Food Sales | Ok Food Services Sales | |
4 | Ok Dessert Sales | Ok Supplies Sales | Improve Food Sales | Improve Food Services Sales | Improve Food Sales and Services Sales |
5 | Improve Dessert Sales | Improve Supplies Sales | Ok Food Sales | Improve Food Services Sales | Improve Dessert Sales, Supplies Sales and Food Services Sales |