Change colors based on values of other cells

Copper Contributor

Hello, I need some help with excel. 

 

Below are images of the worksheet template I use. For every project, I start with a blank template and then input different values based on my testing, as can be seen in the second and third images. The initial RETAIN sample is the baseline for the project and how much deviation there is from it, gives us an idea of how the product is coming along. Basically, I want to be able to set up a formula on the template, so that whenever I reuse it, if one project's pH is 5.0 and the viscosity is 24,000, but another has a pH of 8.5 and a visc of 80,000, that the values and I input in the subsequent months change colors going off the RETAIN samples.

 

So for pH, using 4.0 as an example, if it goes under 3.0 or above 5.0, I want it to change colors, but if I reuse the template for a different project and the pH is 7.5 instead, I want it to change colors if it goes under 6.5 and above 8.5. Conversely for viscosity, if the RETAIN is 50,000, I want it to change colors if it goes under 40,000 or above 60,000.

 

Is any of this possible? What do I have to do in order to input these formulas into the template so that it's automatic from now on?

 

Also, my experience with Excel is only with the basics, I apologize if I don't fully grasp the answers to my question right away.

 

 

 

worksheet template example 2.PNG

 

worksheet template example.PNG

worksheet template.PNG

8 Replies

@Oscar_Santos 

On conditional formatting
>> formula to determine wich cells to format
Replace MeasureValue and RetainValue for your Cell reference

=And(MeasuredValue<>"",OR(MerasuredValue<=RetainValue-1,MerasuredValue>=RetainValue+1))

=AND($B$3<>"",OR($B$3<=$B$2-1,$B$3>=$B$2+1))

I'm sorry, I don't think I fully understand the instructions? My experience with excel is only with the basics.
Can you please share a sample File such like your screenshots? As you mentioned, you are having some difficulties in understand my step-by-step.

@Juliano-Petrukio Here is a copy of the template.

@Oscar_Santos 

Find attached

Thank you! This is very close to what I want! Can you explain how I can change the range? Like, lets say I want it to be a difference of 2.0 instead, as in, if the RETAIN value for pH is 4.0, it changes if it's 2.0 or 6.0? How do you I change that in the formula?

There are 2 Options

You change straight away in the formula

=AND(B12<>"";OR(B12<=B$9-YourFactorValue;B12>=B$9+YourFactorValue))

Or you can add the value in some column of the spreadsheet.

 

Find attached

Sorry to keep bothering you, I was trying to figure out how to change the formula itself but I couldn't figure it out. My current problem is that the values for Viscosity are much higher than pH. pH goes from a range of 1.0 - 12.0, while viscosity can be anywhere from 500 - 100,000. Can you please also add a reference value for viscosity aswell? I appreciate all the work you've done for me so far, it has been helping me tremendously.