Try This
Green: The Sales (D1) is higher than Cost (C1) AND the profit percentage (E1) is higher than 50%.
Formula:
=AND(D14>C14,E14>INDEX($L$7:$N$24,MATCH($B14,$N$7:$N$24,0),1))
Yellow: The Sales (D1) is higher than Cost (C1) AND the profit percentage (E1) is lower than 50%.
Formula:
=AND(D14>C14,E14<INDEX($L$7:$N$24,MATCH($B14,$N$7:$N$24,0),2))
Red: The Sales (D1) is lower than Cost (C1) AND the profit percentage (E1) is lower than 50%.
Formula:
=AND(D14<C14,E14<INDEX($L$7:$N$24,MATCH($B14,$N$7:$N$24,0),2))
Bookmarks