+ Reply to Thread
Results 1 to 9 of 9

Find populated cells in list of products and their ingredients and weights

  1. #1
    Registered User
    Join Date
    11-15-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    5

    Find populated cells in list of products and their ingredients and weights

    Hi all,

    We are working with a long list of food products and their corresponding ingredients by weight. What we would like to make is a table that when a certain product is typed in, will populate the fields with the corresponding ingredients (e.g. butter), amount of each ingredient (e.g. 0.6) and unit of each ingredient (e.g. kg).

    The format of our sheet has the product names on the y-axis and the ingredient list and unit list along the x-axis.

    The difficulty is that out of the 500 or so ingredients, each product will only have a fraction of that number. How do we create a formula that only picks up the populated cells for each ingredient that corresponds to each product? And how do we transfer that information into an easily digestible table?

    Any ideas are much appreciated!
    Last edited by mreuphorium; 11-15-2013 at 01:08 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Super difficult problem: are you up to the challenge!?!?!?

    Post an example file, and in it explain clearly what you want to achieve.

    Pete

  3. #3
    Registered User
    Join Date
    11-15-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Super difficult problem: are you up to the challenge!?!?!?

    Thank you!
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-15-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Super difficult problem: are you up to the challenge!?!?!?

    Quote Originally Posted by alansidman View Post
    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    We have replied to this title request change. Thus please note that the request has been fulfilled!

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Super difficult problem: are you up to the challenge!?!?!?

    I suggest you send a PM to Alan to ask him to delete his post.

    As regards your example, please state the columns that you use in your real data (500 columns is a bit difficult to work out the column identifiers).

    Pete

  6. #6
    Registered User
    Join Date
    11-15-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Super difficult problem: are you up to the challenge!?!?!?

    Hi Pete,

    I hope this helps a bit. I've attached an example with data that is closer to the real data we use. I'm not sure what you meant by "please state the columns that you use in your real data" but perhaps this updated example helps.

    Let me know if you are looking for different or further clarification. And thank you so much for the help!

    -Andrew

    P.S. Alan thank you for deleting your post.
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Find populated cells in list of products and their ingredients and weights

    Here's a solution (I think). I made two dynamic named ranges (they will change size as you add products). "Products" which would be your list of products in column A of sheet1 and "Ingredients" which would cover the range from X4:WS? of your ingredient amounts.

    Then in Sheet2, I used Data Validation to create the dropdown in A1 and used Array formulas to bring back the ingredients, units of measure and amounts. They are respectively (in B2,B3 and B4)
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Is this what you were looking for?
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  8. #8
    Registered User
    Join Date
    11-15-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Find populated cells in list of products and their ingredients and weights

    Quote Originally Posted by ChemistB View Post
    Here's a solution (I think). I made two dynamic named ranges (they will change size as you add products). "Products" which would be your list of products in column A of sheet1 and "Ingredients" which would cover the range from X4:WS? of your ingredient amounts.

    Then in Sheet2, I used Data Validation to create the dropdown in A1 and used Array formulas to bring back the ingredients, units of measure and amounts. They are respectively (in B2,B3 and B4)
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Is this what you were looking for?

    Hi chemist,

    First of all thank you so much for responding. It looks like you have solved this problem! However, as a somewhat new user of excel, I'm pretty confused by the formula you've used and therefore I'm having trouble implementing your solution. We've tried to break your formula down and understand it, but we've had trouble. If you have a moment do you mind explaining what's going on in the super-formulas you used?

    Thank you,
    Mr. Euphorium

  9. #9
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Find populated cells in list of products and their ingredients and weights

    My workbook contains two defined names "Products" and "Ingredients" Look at them and see if you understand them and have you added them to your workbook? Also, you need to be sure to enter the three formulas with CNTRL SHFT ENTER instead of ENTER to make them function properly. If done properly, you'll see {} around the formula.

+ 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. difficult lookup problem
    By amartino44 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-17-2013, 10:25 AM
  2. [SOLVED] Super tricky lookup problem
    By niceguy21 in forum Excel General
    Replies: 8
    Last Post: 10-01-2012, 02:48 AM
  3. a difficult problem
    By x taol in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-11-2006, 02:19 AM
  4. Difficult Excel Problem
    By SpikeUK in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-22-2005, 07:31 PM
  5. Difficult PrintTitleRows problem
    By phreud in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-15-2005, 09:45 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