We have a list of products in column A.
Each product has its set of attributes in column B.
The task is to generate a product with its 6 related products (in column C), which have similar attributes to that product, sorted by similarity.
Similar attributes mean that the products share a similar set of attributes. The more matching attributes, the more similar the product is.
Then, the most similar product goes to the top of the list, and the least similar product goes to the bottom.
The result should exclude the product for which we generated the list.
I provide sample data below.
In C2, I have put an example of what the result should look like.
Thanks in advance.
Each product has its set of attributes in column B.
The task is to generate a product with its 6 related products (in column C), which have similar attributes to that product, sorted by similarity.
Similar attributes mean that the products share a similar set of attributes. The more matching attributes, the more similar the product is.
Then, the most similar product goes to the top of the list, and the least similar product goes to the bottom.
The result should exclude the product for which we generated the list.
I provide sample data below.
In C2, I have put an example of what the result should look like.
sort.xlsx | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | Product | Atributes | Result: 6 related products | ||
2 | Apple | packaging,quantity,reliability,size,design,material,id,content | Pear,Orange,Lemon,Fig,Lime,Lychee | ||
3 | Apricot | make,content,brand,purpose,feel,color,id,photos,weight,packaging | |||
4 | Avocado | reliability,size,design,taste,smell,feel | |||
5 | Banana | quantity,design,safety,brand,smell,id,feel,photos | |||
6 | Durian | size,color,content,feel,smell,quantity,brand,price,reliability | |||
7 | Fig | packaging,safety,weight,id,videos,photos | |||
8 | Grapefruit | weight,purpose,photos,packaging,material,make,color,content,videos,taste | |||
9 | Grapes | quantity,reliability,size,make,material,purpose,content,price | |||
10 | Lemon | packaging,reliability,design,weight,smell,photos | |||
11 | Lime | packaging,quantity,weight,make,taste,material,price,feel | |||
12 | Lychee | weight,content,taste,reliability,design,material,size,price,purpose,feel | |||
13 | Mango | taste,material,purpose,feel,videos,photos | |||
14 | Nectarine | reliability,size,safety,make,material,content,color,photos | |||
15 | Orange | packaging,quantity,reliability,make,purpose,smell,videos,photos | |||
16 | Papaya | size,design,weight,purpose,id,content | |||
17 | Peach | design,safety,content,price,feel,photos,price | |||
18 | Pear | packaging,design,safety,taste,purpose,price | |||
19 | Pineapple | safety,taste,content,price,feel,photos | |||
20 | Plum | reliability,size,make,material,content,color,price,photos | |||
21 | Watermelon | packaging,quantity,safety,brand,make,taste,material,content | |||
Sheet1 |
Thanks in advance.