• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Products by category

lobotomix

New Member
hi! can someone help me? i have a list of orders with products, qty etc. i would like to find out if any order contains a list of products that fits to some criteria, and if it does to return true. for example here is the table:

order noproductcatgory
001A1
002B1
002C2
002D1
003A2
003D1
004B2
005C1

and categories would be like this:

productcategory
Acat1
Bcat1
Bcat2
Ccat2
Dcat2
Acat3
Dcat3

so, if any order contains all the products of one category, it should return TRUE:

orderTRUE/FALSEcategory
001FALSE-
002TRUEcat2
003TRUEcat3
004FALSE-
005FALSE-

or, it could simply return a category by order if exists.

thank you.
 
See attached with green table. Needs refreshing if you change either of the two grey tables.
I don't know what column C is about, I've ignored it.
I've added a new order 333Z which orders all the products, to show what happens when an order contains all the products from more than one category.

1707474534951.png
 

Attachments

  • Chandoo56103.xlsx
    18.9 KB · Views: 2
Back
Top