+ Reply to Thread
Results 1 to 3 of 3

List Unique Product Brands by Product Categories

  1. #1
    Registered User
    Join Date
    12-11-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel Pro Plus 2019
    Posts
    67

    List Unique Product Brands by Product Categories

    I am trying to extract unique brand names and list them in cells A2:E6, column categories like this.
    A B C D E
    1 Category-1 Category-2 Category-3 Category-4 Category-5
    2 Brand-A Brand-E Brand-F Brand-M Brand-M
    3 Brand-B Brand-F Brand-H Brand-N
    4 Brand-C Brand-F-SE Brand-J
    5 Brand-D Brand-G Brand-K
    6 Brand-F Brand-L

    I could not move beyond this formula: =LOOKUP(A$1,Categories,Brands)

    However, I was not able to figure out how to get the unique values and in sorted order (Not very important, but preferred), see attachment.

    Any help and/or suggestions will be greatly appreciated.

    Regards,
    RJ

    The raw data list looks like something like this:

    Item# Categories Brands
    Item1 Category-1 Brand-A
    Item2 Category-1 Brand-A
    Item3 Category-1 Brand-A
    Item4 Category-1 Brand-B
    Item5 Category-1 Brand-B
    Item6 Category-1 Brand-B
    Item7 Category-1 Brand-B
    Item8 Category-1 Brand-B
    Item9 Category-1 Brand-B
    Item10 Category-1 Brand-B
    Item11 Category-1 Brand-C
    Item12 Category-1 Brand-C
    Item13 Category-1 Brand-C
    Item14 Category-1 Brand-C
    Item15 Category-1 Brand-C
    Item16 Category-1 Brand-C
    Item17 Category-1 Brand-C
    Item18 Category-1 Brand-C
    Item19 Category-1 Brand-C
    Item20 Category-1 Brand-B
    Item21 Category-1 Brand-B
    Item22 Category-1 Brand-B
    Item23 Category-1 Brand-B
    Item24 Category-1 Brand-D
    Item25 Category-1 Brand-D
    Item26 Category-1 Brand-D
    Item27 Category-1 Brand-F
    Item28 Category-1 Brand-F
    Item29 Category-2 Brand-E
    Item30 Category-2 Brand-E
    Item31 Category-2 Brand-E
    Attached Files Attached Files

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,939

    Re: List Unique Product Brands by Product Categories

    E2=IFERROR(INDEX(Brand,MATCH(0,INDEX(COUNTIF(E$1,"<>"&Category)+COUNTIF(E$1:E1,Brand),0),0)),"")
    Please Login or Register  to view this content.
    TRY THIS FORMULA IN E2 AND COPY ACROSS
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    12-11-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel Pro Plus 2019
    Posts
    67

    Re: List Unique Product Brands by Product Categories

    Thank you Siva for this solution, it works perfect.

    Does my data have to be sorted, since I noticed Brand F did not list in proper order, but every brand was listed in the proper category.

    Can you explain both countif parts of the formula if you have the time.

+ 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. [SOLVED] I'm receiving a Run-Time error 1004 while trying to delete a product from a product list.
    By redsab in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-05-2014, 10:03 PM
  2. [SOLVED] 4 digit code for similar product, new product unique code
    By unclejemima in forum Excel General
    Replies: 47
    Last Post: 06-06-2013, 01:02 PM
  3. Produce Product list by product category
    By barnowl in forum Excel General
    Replies: 2
    Last Post: 01-03-2013, 05:57 PM
  4. [SOLVED] Find Product Details in Another Sheet based on Product ID and Copy some Fields From there
    By kevalkothari in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-29-2012, 10:43 AM
  5. [SOLVED] Need Function that will find ordered product, and display the product code in a 2nd workbk
    By rollerden in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-21-2012, 08:52 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