#1
|
|||
|
|||
Conditional formatting to color cells based on number
I have a temperature chart that I have set up for this year. When I type in the high temperature for the day, the cell turns to a designated color in my chart (so, for example, when it is between 81-85, the cell will be yellow, when 86-90 it will be pink, and so on).
Now that I am in December, I went to a section below all the temperatures/dates and created a list of cells for the months, and then a formula to figure out the average temperature for each month and for the year. However, when I apply the same conditional formatting to those cells, they do not all turn to the assigned color - some of them are off. I can only guess that it is because there is a formula applied to that cell instead of just typing in the number. How do I get the averages (still in column B below line 368) to use the same formatting as the cells above? For a temporary fix, I had to type in the averages manually into cell C next to them. Hope that makes sense. I am using the temperatures for a crochet project. |
#2
|
|||
|
|||
Here is one way...(and there are surely others)
Beginning in A371 and down, put in the actual date (i.e., 1/1/16, 2/1/16, 3/1/16 etc) Then in B371 copied down =SUMPRODUCT(--(MONTH($A$3:$A$368)=MONTH(A371)),$B$3:$B$368)/SUMPRODUCT(--(MONTH($A$3:$A$368)=MONTH(A371))) In A371, place a custom format to get January, February etc Custom Format
|
#3
|
||||
|
||||
Replace your formulas like =AVERAGE(B277:B307) with =ROUND(AVERAGE(B277:B307),0).
Your CF will no work as required
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#4
|
|||
|
|||
Thank you for your reply.
I followed your directions (I think) for the months. Currently, the year cell is still in the =AVG(B3:B368 format. I wasn't sure how to apply the formula for that. But I still have the same problem. In the updated version attached, I did not apply the conditional formatting. But what I had tried, and still didn't work was....
When I do that, it changes SOME of the temperatures to the correct color, and others not. |
#5
|
|||
|
|||
Okay...this one is working. Thanks!!
|
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Conditional formating all cells in an array based on adjacent cells | deejay | Excel | 6 | 12-20-2016 12:00 PM |
Sum cell by color that are conditional formatting | ijewel | Excel | 1 | 03-16-2016 05:15 AM |
Conditional Formatting based on Value of Another Cell | SteveBump | Excel | 3 | 03-07-2014 09:16 AM |
How can I count cells based on their fill color that was set by conditional format | trueimage | Excel Programming | 1 | 10-25-2013 12:08 PM |
Conditional color fill based on presence of data | avanderh | Excel | 11 | 07-28-2011 09:10 AM |