+ Reply to Thread
Results 1 to 5 of 5

Find unique value in column and return multiple values

  1. #1
    Registered User
    Join Date
    02-15-2011
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2010
    Posts
    3

    Unhappy Find unique value in column and return multiple values

    I have Worksheet 2 that contains data. Row 5 contains the Manufacturer and Column A contains the product name. The remainder of cells contain a value. I need to start by looking for the lowest value in column B. If that lowest value is unique I want to return that value along with the header and product name to a row in Worksheet 1. (We'll say cells A1:C1). I then want it to look in column D of Worksheet 2 and repeat the process. If it didn't find a unique low value in column C, I would want the results from column D to appear in cells A1:C1. I would need this process to continue until it reaches column R.

    I've wordsmith-ed my searches many times but have yet to find something that will help me with this. Is this possible to perform using VBA code?

    I've uploaded a dummy spreadsheet. The first worksheet shows the results I should get back. The second worksheet shows the data. I've highlighted in yellow the items that are the lowest unique value in that column. The items in red are lowest, but duplicated in that column so I would not want to see them. (Normally they would not be highlighted in color)
    Attached Files Attached Files
    Last edited by DWolf75; 02-16-2011 at 08:32 PM. Reason: Problem solved

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Find unique value in column and return multiple values

    Post a sample workbook with sample data and sample results from that data so we can see what you're doing and how you are making these decisions.

    Click GO ADVANCED and use the paperclip icon to post up a desensitized copy of your workbook.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-15-2011
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Find unique value in column and return multiple values

    Attachment has been added. Thanks

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Find unique value in column and return multiple values

    Like so:
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-15-2011
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Find unique value in column and return multiple values

    Thank you very much JBeaucaire

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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