Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-26-2016, 09:18 AM
kallard kallard is offline Conditional formatting to color cells based on number Windows 10 Conditional formatting to color cells based on number Office 2010 64bit
Novice
Conditional formatting to color cells based on number
 
Join Date: Dec 2016
Posts: 3
kallard is on a distinguished road
Default 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.
Attached Files
File Type: xlsx 2016TempChart.xlsx (56.8 KB, 10 views)
Reply With Quote
  #2  
Old 12-26-2016, 09:59 AM
jeffreybrown jeffreybrown is offline Conditional formatting to color cells based on number Windows Vista Conditional formatting to color cells based on number Office 2007
Expert
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

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
  • Right click cell (or Ctrl + 1)
  • Format Cells
  • Number
  • Custom
  • Type: mmmm
Reply With Quote
  #3  
Old 12-26-2016, 10:16 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Conditional formatting to color cells based on number Windows 7 64bit Conditional formatting to color cells based on number Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,769
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

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
Reply With Quote
  #4  
Old 12-26-2016, 10:48 AM
kallard kallard is offline Conditional formatting to color cells based on number Windows 10 Conditional formatting to color cells based on number Office 2010 64bit
Novice
Conditional formatting to color cells based on number
 
Join Date: Dec 2016
Posts: 3
kallard is on a distinguished road
Default

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....
  • copied one of the cells from above (right click, copy)
  • right clicked in one of the cells below (eg, B371)
  • clicked on paste special, selected paste special again, clicked on the radio button for "format."

When I do that, it changes SOME of the temperatures to the correct color, and others not.
Attached Files
File Type: xlsx 2016TempChart.xlsx (54.3 KB, 7 views)
Reply With Quote
  #5  
Old 12-26-2016, 11:10 AM
kallard kallard is offline Conditional formatting to color cells based on number Windows 10 Conditional formatting to color cells based on number Office 2010 64bit
Novice
Conditional formatting to color cells based on number
 
Join Date: Dec 2016
Posts: 3
kallard is on a distinguished road
Default

Quote:
Originally Posted by Pecoflyer View Post
Replace your formulas like =AVERAGE(B277:B307) with =ROUND(AVERAGE(B277:B307),0).
Your CF will no work as required
Okay...this one is working. Thanks!!
Reply With Quote
Reply

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
Conditional formatting to color cells based on number 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
Conditional formatting to color cells based on number 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 formatting to color cells based on number Conditional color fill based on presence of data avanderh Excel 11 07-28-2011 09:10 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:19 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft