Avatar of csehz
csehzFlag for Hungary

asked on 

Excel - Formula based on cell color

Dear Experts,

Could you please advise which technical options are to have a formula in Excel based on cell color?

In the attached file:

FormulaBasedOnCellColor.xlsx 

there is a simple example (showing also on the print screen below) that A2 has yellow color, while A3 red one:

User generated image
Could you please advise how to reach that cell B2 would calculate text "Ok" and B3 text "Nok" by a formula, which would be based on the yellow and red color of the cells in column A.

Being aware that there are VBA solutions for such scenario, however actually would like to avoid using macros

Thanks in advance,

Microsoft ExcelMicrosoft Office

Avatar of undefined
Last Comment
Robert Berke
SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Rob Henson
Rob Henson
Flag of United Kingdom of Great Britain and Northern Ireland image

Can situation be reversed? One Cell will colour Yellow when other cell says OK or colour Red when other cell says Nok.

Will the Yellow and Red cells contain values, if not can they? If they can then the formatting can be based on its content.

This is doable with Conditional Formatting which does not require any Macro to work
SOLUTION
Avatar of Bill Prew
Bill Prew

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
ASKER CERTIFIED SOLUTION
Avatar of Bembi
Bembi
Flag of Germany image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of csehz
csehz
Flag of Hungary image

ASKER

Thanks for your kind assistance, found each comment valuable
SOLUTION
Avatar of Robert Berke
Robert Berke
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of csehz
csehz
Flag of Hungary image

ASKER

Rberke sure thanks for sharing that too
Avatar of Robert Berke
Robert Berke
Flag of United States of America image

You are welcome.
Unfortunately, Ijust found a bug.  I will fix it later this afternoon.  

Afterwards, let me know how it works.  I improve the Add-in from time to time, so I appreciate feedback from folks that use it.  In particular, if it doesn't work for you I would like to know what went wrong.

rberke (aka UncleBob)


SOLUTION
Avatar of Robert Berke
Robert Berke
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Microsoft Excel
Microsoft Excel

Microsoft Excel topics include formulas, formatting, VBA macros and user-defined functions, and everything else related to the spreadsheet user interface, including error messages.

144K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo