+ Reply to Thread
Results 1 to 9 of 9

Complie a shopping list from meal planner??

  1. #1
    Registered User
    Join Date
    03-13-2017
    Location
    Buffalo, NY
    MS-Off Ver
    2010
    Posts
    8

    Complie a shopping list from meal planner??

    Hi All!

    New to excel and not great with the terminology- can't seem to find any existing threads that are of any help.

    Basically I'm trying o make a meal planning calendar and a shopping list that will pull the ingredients together based on what is entered for that week's meals.

    The meals are selected from a drop down list that's on another worksheet. The ingredients are listed on the same worksheet in the column next to the meal name.

    So the list needs to see the items listed on the calendar for that week, combine all the ingredients from the cells adjacent to the meal item and remove the redundant ingredients, if any.

    I can't seem to get any files or pictures to upload . I will try later.

  2. #2
    Registered User
    Join Date
    03-13-2017
    Location
    Buffalo, NY
    MS-Off Ver
    2010
    Posts
    8

    Re: Complie a shopping list from meal planner??

    Sheet attached?
    Attached Files Attached Files

  3. #3
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Complie a shopping list from meal planner??

    This proposed solution makes several changes to the spreadsheets and uses numerous helpers.
    On the Calendar sheet the monthly calendars are stacked vertically and the cells containing the dates for Sundays are actual dates (3/5/17) with custom formatting d applied.
    On the Options sheet the date of the Sunday for the week in question needs to be entered in B1,
    The rest of the row will fill by formula by use of addition and the range B2:H6 populates using the formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The range A9:A107 is populated using the formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The ingredients were separated using the 'Text to Column' feature, delimited by comma.
    The range B111:H130 is populated using the array entered formula*:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The range A251:F270 is populated by the formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The range J252:J270 is populated using the array entered formula*:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    On the Shopping lists Sheet the following formula populates the shopping list: =Options!J252
    *Array entered formulas are activated by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    An effort is made to use simpler formulas so as to make the least amount of reduction in the performance of the workbook, however it is suggested that you complete the menu on the Calendar sheet before entering a new date on the Options sheet. It may become necessary to change the calculation mode of the workbook from Automatic to Manual.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  4. #4
    Registered User
    Join Date
    03-13-2017
    Location
    Buffalo, NY
    MS-Off Ver
    2010
    Posts
    8

    Re: Complie a shopping list from meal planner??

    Thanks for all the help! I'll post a final version once I'm done tweeking in case anyone else wants it.

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Complie a shopping list from meal planner??

    You're Welcome and thank you for the feedback. If you feel that your question has been answered please take a moment to mark the thread as 'Solved' using the thread tools link above your first post, you can undo that designation later if needed. I hope that you have a blessed day.

  6. #6
    Registered User
    Join Date
    03-13-2017
    Location
    Buffalo, NY
    MS-Off Ver
    2010
    Posts
    8

    Re: Complie a shopping list from meal planner??

    I moved a few things around and added some color coding just for my own ease of use. I also made it so I can generate shopping lists for 4 weeks at once instead of just 1.

    The date for each shopping list is input in the box at the top-right rather than on the "options" tab.

    The only remaining issue I'm having is that it won't recognize the dates from the lower calendar for some reason. I tried to edit the array from A1:A38 to A1:A75 but I couldn't get it to work.

    I like all the functionality but just wanted to be able to see 2 months at a time to see trends. And for some reason, if a meal is repeated during a given week, it doesn't show up on the shopping list because the array only looks for meals with a qty of "1". I tried changing it to ">0" but it didn't like that.

    Also, I haven't yet tried to insert new lines on the options page to add new meals. Hope that doesn't throw anything off.
    Attached Files Attached Files
    Last edited by Reddhotpoker; 03-15-2017 at 09:07 AM.

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Complie a shopping list from meal planner??

    The only remaining issue I'm having is that it won't recognize the dates from the lower calendar for some reason. I tried to edit the array from A1:A38 to A1:A75 but I couldn't get it to work.
    I think that I have sorted out this issue, however more testing will surely be needed.
    Let us know if you have any questions.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    03-13-2017
    Location
    Buffalo, NY
    MS-Off Ver
    2010
    Posts
    8

    Re: Complie a shopping list from meal planner??

    OK, so I tinkered around with it a little more. I made the Shopping Lists and associated arrays larger to accommodate more unique ingredients because I was worried that things might get accidentally left off. I eat more vegan/vegetarian meals than my wife, so this causes me to have to make 2 different entrees a few times per week. This is also why the dropdowns on the calendar are in

    entrée
    side
    entrée
    side
    side

    format.

    I also added more ingredient columns for each entrée/side dish.

    To generate the shopping list for a given week, just change the date in the upper right corner.

    Thanks again for all the assistance! This came out exactly as I imagined it!!
    Attached Files Attached Files

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Complie a shopping list from meal planner??

    The file looks very useful, thanks for sharing. I hope that you have a blessed day.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Shopping list creator
    By DrPips in forum Excel General
    Replies: 17
    Last Post: 09-23-2015, 10:39 AM
  2. Meal Planner - Edit Macro Code
    By Pwhite84 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-16-2014, 03:44 PM
  3. Complie Error: Expected: list separator or (
    By Poornima Rajgopal in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-07-2013, 12:32 PM
  4. Want to recreate "Monthly Meal Planner" template
    By henpen in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 07-31-2013, 09:19 PM
  5. Shopping list
    By Shawn1973 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-26-2013, 07:48 PM
  6. Itemized shopping list
    By jerryjaysr in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-05-2007, 12:33 PM
  7. Excel Shopping List
    By robertguy in forum Excel General
    Replies: 1
    Last Post: 10-21-2005, 05:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1