+ Reply to Thread
Results 1 to 9 of 9

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

Hybrid View

  1. #1
    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
    =IFERROR(INDEX(Sheet1!$X$3:$WS$3, SMALL(IF(ISNUMBER(INDEX(Ingredients,MATCH($A1,Products,0),)), COLUMN($X$4:$WS$4)-COLUMN($W$4)),COLUMN(A1))),"")

    =IFERROR(INDEX(Sheet1!$X$2:$WS$2, SMALL(IF(ISNUMBER(INDEX(Ingredients,MATCH($A1,Products,0),)), COLUMN($X$4:$WS$4)-COLUMN($W$4)),COLUMN(A1))),"")

    =IFERROR(INDEX(Ingredients, MATCH($A1,Products,0),SMALL(IF(ISNUMBER(INDEX(Ingredients,MATCH($A1,Products,0),)), COLUMN($X$4:$WS$4)-COLUMN($W$4)),COLUMN(A1))),"")
    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

  2. #2
    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
    =IFERROR(INDEX(Sheet1!$X$3:$WS$3, SMALL(IF(ISNUMBER(INDEX(Ingredients,MATCH($A1,Products,0),)), COLUMN($X$4:$WS$4)-COLUMN($W$4)),COLUMN(A1))),"")

    =IFERROR(INDEX(Sheet1!$X$2:$WS$2, SMALL(IF(ISNUMBER(INDEX(Ingredients,MATCH($A1,Products,0),)), COLUMN($X$4:$WS$4)-COLUMN($W$4)),COLUMN(A1))),"")

    =IFERROR(INDEX(Ingredients, MATCH($A1,Products,0),SMALL(IF(ISNUMBER(INDEX(Ingredients,MATCH($A1,Products,0),)), COLUMN($X$4:$WS$4)-COLUMN($W$4)),COLUMN(A1))),"")
    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

+ 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. [SOLVED] 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