This video demonstrates how to write a VBA function that will return TRUE if a specified background colour has been applied to a cell. The VBA function can be used as the logical test in an IF statement. If you would prefer a non-VBA solution please see https://youtu.be/WeUrO7YENSg
The video will be useful if you are asking the following questions:
Can you do an IF statement in Excel based on color?
IF cell colour is red, then....
------------------------