How to reference cell style in IF function?

Hi,

If i want to make an IF function like:

If the cell style is "good," value = 1, how would I do this? Not sure how to put the cell style in the formula.

Thanks!
Update: Btw I am referring to how in the "home" tab in excel you can click "cell style" then choose bad, good, neutral or normal!
2 answers 2