Compile a Column into a List

nputt

New Member
Joined
Dec 3, 2020
Messages
16
Office Version
  1. 2011
Platform
  1. Windows
  2. Mobile
Hello, not sure if Excel even has this capability. (Using 365)
I have a meal planner that I use on Excel that separates columns by food type (protein, veggie, car, etc), I'd like to make a grocery list by combining the data listed in a single column into a single cell. EX: IF B3 = Lettuce, B4 = Tomatoes, and B5 = Apples; how can I make B7= Lettuce, Tomatoes, Apples by formula rather than manual entry.
Thank you.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
TEXTJOIN worked perfectly as described, but I ran into another problem. I have duplicate entries within the same cell now. I've attached a picture of the sheet I'm currently working with to help explain. I have a dinner list and a grocery list. I use the information from my dinner list to fill out the grocery list section. Is there a way to remove duplicate data or to alphabetize the order it's in?

1607383557333.png
 
Upvote 0
Could we have the sample data and expected results with XL2BB instead of a picture that we cannot copy from (& can hardly read)?
 
Upvote 0
Meal Planning.xlsx
ABCDEFGHIJKL
1 Compiled Shopping List
2Veggies FruitLettuce, Tomatoes, Mushrooms, Lettuce, Tomatoes
3
41Chicken ParmesanN/AChicken PattiesSpaghettiParmesan ShreddedTomato SauceItalian Seasoning, Butter
52Sausage Beans & RiceN/APolska SausageRiceBeans, Tomato SauceSoy Sauce
63Turkey BurgersFries?Turkey BurgersBunsLettuce, TomatoesPicklesMayo, Mustard, KetchupRaw Meat Frozen MeatChicken Patties, Polska Sausage, Turkey Burgers, Porkchops, Tilapia, Chicken Patties
74Garlic Mushroom PorkBaked potatoesPorkchopsPotatoesMushroomsGarlic & Onion Powder, Minced Garlic, Butter
85Cajun Tilapia GumboN/ATilapiaRiceBeans, Tomato SauceGarlic & Onion Powder, Cajun, Butter
96Chicken Patty SandwichesFries?Chicken PattiesBunsCheddar/Swiss SlicedLettuce, TomatoesPicklesKetchup, Mustard, Mayo, BBQ, Buffalo, Ranch
10DairyParmesan Shredded, Cheddar/Swiss Sliced
11
12
13
14Lunch Snacks
15
16
17
18Packaged & CarbsTomato Sauce, Beans, Tomato Sauce, Pickles, Beans, Tomato Sauce, Pickles
19
20Spaghetti, Rice, Buns, Potatoes, Rice, Buns
21
22Condiments, EtcItalian Seasoning, Butter, Soy Sauce, Mayo, Mustard, Ketchup, Garlic & Onion Powder, Minced Garlic, Butter, Garlic & Onion Powder, Cajun, Butter, Ketchup, Mustard, Mayo, BBQ, Buffalo, Ranch
23
24
25
26TP, PT, Tissues, Bags, Cleaning, Hygiene, Health, Other
27
28
29
30
31
Dinner Planning
Cell Formulas
RangeFormula
L2L2=TEXTJOIN(", ",TRUE,G4:G9,"")
L6L6=TEXTJOIN(", ",TRUE,D4:D9)
L10L10=TEXTJOIN(", ",TRUE,F4:F9)
L18L18=TEXTJOIN(", ",TRUE,H4:H9)
L20L20=TEXTJOIN(", ",TRUE,E4:E9)
L22L22=TEXTJOIN(", ",TRUE,I4:I9)
 
Upvote 0
Meal Planning.xlsx
ABCDEFGHIJKL
1 Compiled Shopping List
2Veggies FruitLettuce, Tomatoes, Mushrooms, Lettuce, Tomatoes
3
41Chicken ParmesanN/AChicken PattiesSpaghettiParmesan ShreddedTomato SauceItalian Seasoning, Butter
52Sausage Beans & RiceN/APolska SausageRiceBeans, Tomato SauceSoy Sauce
63Turkey BurgersFries?Turkey BurgersBunsLettuce, TomatoesPicklesMayo, Mustard, KetchupRaw Meat Frozen MeatChicken Patties, Polska Sausage, Turkey Burgers, Porkchops, Tilapia, Chicken Patties
74Garlic Mushroom PorkBaked potatoesPorkchopsPotatoesMushroomsGarlic & Onion Powder, Minced Garlic, Butter
85Cajun Tilapia GumboN/ATilapiaRiceBeans, Tomato SauceGarlic & Onion Powder, Cajun, Butter
96Chicken Patty SandwichesFries?Chicken PattiesBunsCheddar/Swiss SlicedLettuce, TomatoesPicklesKetchup, Mustard, Mayo, BBQ, Buffalo, Ranch
10DairyParmesan Shredded, Cheddar/Swiss Sliced
11
12
13
14Lunch Snacks
15
16
17
18Packaged & CarbsTomato Sauce, Beans, Tomato Sauce, Pickles, Beans, Tomato Sauce, Pickles
19
20Spaghetti, Rice, Buns, Potatoes, Rice, Buns
21
22Condiments, EtcItalian Seasoning, Butter, Soy Sauce, Mayo, Mustard, Ketchup, Garlic & Onion Powder, Minced Garlic, Butter, Garlic & Onion Powder, Cajun, Butter, Ketchup, Mustard, Mayo, BBQ, Buffalo, Ranch
23
24
25
26TP, PT, Tissues, Bags, Cleaning, Hygiene, Health, Other
27
28
29
30
31
Dinner Planning
Cell Formulas
RangeFormula
L2L2=TEXTJOIN(", ",TRUE,G4:G9,"")
L6L6=TEXTJOIN(", ",TRUE,D4:D9)
L10L10=TEXTJOIN(", ",TRUE,F4:F9)
L18L18=TEXTJOIN(", ",TRUE,H4:H9)
L20L20=TEXTJOIN(", ",TRUE,E4:E9)
L22L22=TEXTJOIN(", ",TRUE,I4:I9)
I was trying to avoid having to have each ingredient in a different cell to save space on the spreadsheet, but I'd like to remove any duplicates from my textjoin cells.
 
Upvote 0
Do you have the LET function in your version
 
Upvote 0

Forum statistics

Threads
1,214,837
Messages
6,121,883
Members
449,057
Latest member
Moo4247

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top