I have adjusted , concerning your query it was adjusted by someone else . I did not asked .
However now it is working but agree it is very complex and tedious task.
However if a vba solution is available , it is the most welcome
Thank you for your patience to solve this complex puzzle formula.
The only flaw that description need to be adjusted in the formula which may be prone to error
=IF(OR(I2={"juices","wines","beer","liqueurs","mixed juices","ice tea","syrup","fruit juice","energy drinks","mineral water","gins","vodkha","shandy","beverages","tequilla","energy drinks can","mixed juices","orange juices","apple juices","grape juices","grapefruit juice","vodka","aerated juices"}),IF(AND(OR(LEFT(H2)="1",LEFT(H2)="2"),LEFT(H2,4)<>"2008"),IF(I2="WINES",K2&"*"&L2&"*"&IFERROR(LOOKUP(1,-FIND({37.5;75;"5L";"2L";"1.5L";"1L";"3L";"5L"},G2),{"37.5CL";"75CL";"5L";"2L";"1.5L";"1L";"3L";"5L"}),"75CL"),IF(U2="*",M2&"*"&LOOKUP(9^9,0+RIGHT(LEFT(G2,LOOKUP(9^9,FIND("X",G2,ROW($1:$99)))-1),{1,2,3}))&"*",K2&"*"&L2&"*")&LOOKUP(1,-FIND({20;25;30;33;50;70;75;100;"1L";"1.5L";"1L5";"2L"},G2),{"20CL";"25CL";"30CL";"33CL";"50CL";"70CL";"75CL";"100CL";"1L";"1.5L";"1.5L";"2L"})),""),"")
Bookmarks