If formula based on conditional formatting colour in cell b2

Hi Experts (excel 2003)

Need a formula in cell c2 if the colour in cell b2 is green then text in white font colour and return no comment in cell c2

other wise if cell b2 is red then comment in cell c2 = check...
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Can't use a formula to base a condition of cell color.  I don't know how to do it, but you need to use VBA to do this.
0
2nd Line EngineerCommented:
0
Finance AnalystCommented:
As you are determining the colour by conditional formatting (based on previous question) you can use the same comparison to determine the result of the test.

Thanks
Rob H
0
Finance AnalystCommented:
Simple formula:

=IF(ABC!\$A\$2=Apples!\$A\$2,"","Check")

Formula on ABC sheet won't actually need sheet reference, ABC!\$A\$2 would just be \$A\$2 and Apples!\$A\$2 has range name so could just be CheckCell:

=IF(\$A\$2=CheckCell,"","Check")

See attached with conditional formatting and formula.

Thanks
Rob H
Conditional-Formatting-check.xls
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.