+ Reply to Thread
Results 1 to 2 of 2

Search Bar that Executes Search Based on Radio Button and Key Words

  1. #1
    Registered User
    Join Date
    05-04-2016
    Location
    Boston, MA
    MS-Off Ver
    2016
    Posts
    1

    Search Bar that Executes Search Based on Radio Button and Key Words

    Hi all,

    I'm trying to create a Cook Book on excel. The ultimate goal of the excel document is to be able to search for a recipe based off certain ingredients; so if you have tomatoes, you would be able to search for all ingredients that have tomatoes in them.

    Essentially, I want to be able to type in "x" amount of ingredients and select a radio button that describes a type of meal (such as breakfast, lunch, dinner, etc.). After you fill in those two criteria, you would press the "Search" button and it would execute the search.

    To clarify, in cell 9, 12, 15, and 18, one would write the ingredient(s) that they want to search for, and then they would proceed to select the radio button that describes the type of meal (breakfast, lunch, dinner, etc.)

    Does anyone have any ideas how to do this? I've been stuck on this for a long time and have no idea where to go. Thank you!

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Search Bar that Executes Search Based on Radio Button and Key Words

    I think this application would be better suited for a database. Clearly you have a many-to-many relationship: an ingredient can be used in many recipes and a recipe can have many ingredients.

    However, I will assume you don't have Access or another database and suggest a less robust Excel solution. We'll have to discuss how to organize your data. For example you may have "Tomato" listed 40 times because it will be associated with 25 recipes, 15 of which can be used for lunch or dinner.

    I suggest that you organize the data with three elements: ingredient : Recipe : Meal Type.

    On second thought instead of meal type, have three columns, data validated to T/F for breakfast, dinner or lunch and then a helper column that computes a code:
    Breakfast Only 1
    Lunch Only 2
    Dinner Only 4
    B+L 3
    B+D 5
    L+D 6
    B+L+D 7
    This scheme will allow you to enter a recipe once even though it may apply to three meals.

    Finally, I don't think anyone is going to take on this task without a sample spreadsheet. You will have to populate the database in Excel with at least several recipes.
    Last edited by dflak; 05-06-2016 at 09:30 AM.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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. Replies: 0
    Last Post: 02-18-2015, 10:06 AM
  2. Search for Values that Multiple Search Words Share
    By Drew67209 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-18-2014, 05:54 AM
  3. Replies: 15
    Last Post: 10-12-2014, 08:53 AM
  4. Search within range and input data based off a radio button
    By dizzle in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2014, 03:15 PM
  5. [SOLVED] Search box in Excel to search key words in sentences in multiple worksheets
    By fernandoii676 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-05-2012, 01:42 PM
  6. Replies: 2
    Last Post: 10-19-2012, 11:11 AM
  7. Replies: 1
    Last Post: 06-05-2012, 01:39 PM

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