I have a work spreadsheet that I use to upload products and on the discounts section I use this formula:
=IF(ISERROR(FIND("Retail",$B2)),SUM(INDEX(Products!$N$2:$N$2000, MATCH($A2, Products!$A$2:$A$2000, 0))*0.5),IF(ISERROR(FIND("Distributor",$B2)),IF(SUM($C2>5),SUM(INDEX(Products!$N$2:$N$2000...