+ Reply to Thread
Results 1 to 8 of 8

Food/Drug Match and Comparison Chart

  1. #1
    Registered User
    Join Date
    09-16-2012
    Location
    Phoenix, AZ, USA
    MS-Off Ver
    Excel 2010
    Posts
    38

    Question Food/Drug Match and Comparison Chart

    I don’t know how to do this.

    My wife is allergic to many things and lots of foods/drugs have ingredients in them that cause problems.

    I would like to construct a sheet that allows me to enter/list many food/drugs and their ingredients and then find the common ingredients that they have which may cause problems for her.

    Initial thoughts are to enter ingredient data in a column under the food/drug type then build some sort of panel which would list common (or matching) ingredients to all or most of the list.
    For example, if food A, B, C and D have “lactose” as a common ingredient, then it would be reported in the panel. Alternatively, if we know she is allergic to “lactose” then we can search all the listed food/drugs to see if it is present in any.

    Or maybe there is some completely different format to this endeavor.

    Any ideas? I’m not a proficient Excel user at all … but I try!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Food/Drug Match and Comparison Chart

    Have you started putting anything together yet?

    If so, care to share? If not, that may be a good place to start so we can see what you have in mind.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    09-16-2012
    Location
    Phoenix, AZ, USA
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Food/Drug Match and Comparison Chart

    Not really. I have listed some ingredients for a couple of drugs (thyroid meds) but that's all. I'm still trying to get my head around it. Any ideas or suggestions are greatly appreciated. But I'm a neophyte in Excel proficiency.
    Attached Files Attached Files

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Food/Drug Match and Comparison Chart

    You dont need to be an excel expert, but Im sure you have some sort of concept in mind of what you think it should look like/show.

    Based on that, could you try to mock something up - manually entered if necessary - and then we can do the work and fill in the blanks for you?

  5. #5
    Registered User
    Join Date
    09-16-2012
    Location
    Phoenix, AZ, USA
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Food/Drug Match and Comparison Chart

    OK .. see the attached sheet (previous item in thread) for an idea of the type of data. I "envision" the data being similar to that .. columns and columns of food and drug ingredients. But aside from inputing ingredients the real issue is a "control panel" that does some or all of the following:
    • compares ingredients and lists a rank order of products who have ingredient matches (products that have ingredient commonality)
    • allows for an input of a product name (column header) then presents a list of ingredients
    • allows for a search of a given ingredient (e.g. cellulose, sugar, magnesium, etc.) then produce a list (report) of items which have that ingredient
    • allows for a search (internet) of a product to find it's ingredients then insert as a column

    I don't know what if any is possible, but it sure would create a helpful tool.
    Some existing apps that are "similar" are located at http://ecodiscoveries.com/eco-friend...ning-products/ - and I'm sure there are others. But I did not find one that addresses food and drug ingredient allergies or sensitivities directly.
    Last edited by loftus49; 06-27-2020 at 12:47 PM.

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

    Re: Food/Drug Match and Comparison Chart

    To give an example of how you might accomplish bullet point #3 "...search of a given ingredient...":
    1. The name of the ingredient is typed into cell A1 on Sheet2
    2. Cells A2:A5 are populated using: =IFERROR(INDEX(Sheet1!A$1:D$1,AGGREGATE(15,6,COLUMN(A$1:D$1)/(Sheet1!A$2:D$13=A$1),ROWS(A$1:A1))),"")
    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.

  7. #7
    Registered User
    Join Date
    09-16-2012
    Location
    Phoenix, AZ, USA
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Food/Drug Match and Comparison Chart

    OK ... sorry, was out for a few days. Let me try to figure this out ... and thank you. I think I see what you have done with:
    =IFERROR(INDEX(Sheet1!A$1:D$1,AGGREGATE(15,6,COLUMN(A$1:D$1)/(Sheet1!A$2:D$13=A$1),ROWS(A$1:A1))),""). How would this formula change if you used "corn starch" in B1 and populated the cells below it with a revised formula?
    Last edited by loftus49; 06-30-2020 at 01:30 AM.

  8. #8
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Food/Drug Match and Comparison Chart

    Another approach with simple UserForm and ListBox selection.
    You could transpose the axis to alter the search criteria.
    No on-sheet formula required.
    torachan.
    Attached Files Attached Files

+ 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: 5
    Last Post: 08-23-2019, 03:14 AM
  2. How to chart multiple drug levels over period of time?
    By Hak101 in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 12-29-2018, 10:48 PM
  3. comparison chart
    By vconstantin in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 09-23-2016, 04:00 PM
  4. Comparison chart
    By Villalobos in forum Excel General
    Replies: 4
    Last Post: 11-29-2014, 03:22 PM
  5. Need help with Food combinations to best match macros
    By ali00008 in forum Excel General
    Replies: 1
    Last Post: 06-12-2014, 12:58 AM
  6. How to remove dosage info from the drug name in excel?
    By nightxiao in forum Excel General
    Replies: 3
    Last Post: 03-20-2014, 07:32 PM
  7. comparison chart
    By only_lonely in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 12-08-2009, 05:02 AM

Tags for this Thread

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