Home > front end >  How can I use conditional formatting to apply different fill color for products?
How can I use conditional formatting to apply different fill color for products?

Time:11-27

I am trying to find a way to apply different fill color for products according to produc type. Thank you for your help.

enter image description here

CodePudding user response:

You can use Conditional formatting under Format menu and using the custom formula:

=C1="BM"

Sample:

sample

and do it for each color and product type you need.

Output:

output

EDIT:

  • If the product type is in different sheet Type

Changes:

Apply to range: B2:B1000

=VLOOKUP(B2, INDIRECT("Type!A2:B"), 2, 0)="BM"
=VLOOKUP(B2, INDIRECT("Type!A2:B"), 2, 0)="JZ"
=VLOOKUP(B2, INDIRECT("Type!A2:B"), 2, 0)="PM"
=VLOOKUP(B2, INDIRECT("Type!A2:B"), 2, 0)="SD"

enter image description here

  • Related