+ Reply to Thread
Results 1 to 5 of 5

Generate Unique list

  1. #1
    Registered User
    Join Date
    11-23-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    6

    Generate Unique list

    I am trying to generate a unique list based on whether the data from one range is included in another range. I also want to create a SUM of each value.

    In the workbook:

    * Sheet 3 is the one I am trying to get the list in (and for illustration has sample list).

    * Column 1 in Ingredients is the list I want to compare to.

    * The range A4-D13 in Sheet 3 is dynamic based on the drop down in B1 and is the data I want to pull the list from.

    Hope this makes sense. Reply if more information is needed.
    Attached Files Attached Files
    Last edited by Cavinaar; 11-27-2013 at 01:59 AM. Reason: Updated Workbook

  2. #2
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: Generate Unique list

    I have generated the unique list.

    Please try this file.

    Note: Im working on the dropdown list.
    Attached Files Attached Files
    Please click 'Add reputation', if my answer helped you.

  3. #3
    Registered User
    Join Date
    11-23-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Generate Unique list

    Generates the list exactly how I wanted it! Thanks!

    Question: What's wrong with the dropdown list?

  4. #4
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: Generate Unique list

    Hi Cavinaar,

    Im not able to understand the mechanism of the values generated across A4:D13 for the dropdown placed in B1

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

    Re: Generate Unique list

    OH!

    The list for the dropdown is generated from the Recipes sheet, it's just a list of all the recipes. The values for A4-D13 are generated using a vlookup to get the ingredients from the recipes list. For the benefit of those who may read this later with the same issue, here is how it works:

    * A recipe is chosen in the dropdown, which fires the VLOOKUP in A4 to pull the Quantity of the first ingredient of the recipe listed in the dropdown.

    * The rest of the range is populated based on whether there is anything in the related cell (for instance, B4 checks A4 and if it isn't empty is uses a VLOOKUP to get the name of the first Ingredient.

    The rest simply follows suit...with a twist.

    A6 checks whether B4 is listed in the Base_Ingredients and if it isn't (the ISERROR part), it looks in the recipe list for the value in A4 (the VLOOKUP part). The process repeats itself through the rest of the range until no more recipes are left (giving me the raw data for the unique list I was trying to put together).

    On another note, after a slight bit of tweaking with the references, the list is now working perfectly (other than missing a bit of data in the recipes which is causing #N/A errors in sheet 3, but that is easily fixed by finding and then entering the data).

    Marking this one as solved and definitely upping rep for you.

    Thanks a million
    Last edited by Cavinaar; 11-27-2013 at 03:16 AM.

+ 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: 2
    Last Post: 11-26-2013, 11:02 PM
  2. Generate Unique List from Pivot Table
    By dkang2007 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-02-2013, 03:06 PM
  3. Replies: 5
    Last Post: 11-16-2011, 01:25 PM
  4. Generate a list of unique code
    By luvul in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-14-2009, 04:40 AM
  5. Generate a unique number of list
    By Terence Chan in forum Excel General
    Replies: 3
    Last Post: 09-14-2005, 02:48 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