Col AF is the Heat Index, only applicable when Col D Temp F Hi is greater than 80F, and Col F Dew point is greater than 54, and Col AE Relative Humidity is greater than 80. I wanted to apply a conditional format to gray out Col AF numbers that don't meet the conditions, so used formula condition
=OR(-100<D2<80, -100< F2<=54, 0<AE2<=40) with gray font but no cells grayed out. If I remove the lower bounds, =OR(D2<80, F2<=54, AE2<=40) entire column is grayed out even the column header text. Not sure why this happens, anyone has the correct way to do this?
Using Excel 2007
Excel 2007
=OR(-100<D2<80, -100< F2<=54, 0<AE2<=40) with gray font but no cells grayed out. If I remove the lower bounds, =OR(D2<80, F2<=54, AE2<=40) entire column is grayed out even the column header text. Not sure why this happens, anyone has the correct way to do this?
Using Excel 2007
Excel Workbook | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | D | F | AE | AF | |||
1 | Date | Temp F Hi | Max Dewpt F | RH % at Col D Hi Temp | Heat Idx | |||
2 | 6/5/2011 | Sun | 77 | 50 | 28 | 77.5 | ||
3 | 6/6/2011 | Mon | 72 | 46 | 33 | 76.6 | ||
4 | 6/7/2011 | Tue | 82 | 48 | 22 | 80.0 | ||
5 | 6/8/2011 | Wed | 84 | 48 | 27 | 81.7 | ||
6 | 6/9/2011 | Thu | 91 | 52 | 14 | 86.8 | ||
7 | 6/10/2011 | Fri | 90 | 48 | 17 | 86.1 | ||
8 | 6/11/2011 | Sat | 90 | 45 | 19 | 86.2 | ||
9 | 6/12/2011 | Sun | 88 | 50 | 25 | 85.0 | ||
10 | 6/21/2011 | Tue | 102 | 48 | 6 | 95.9 | ||
11 | 6/22/2011 | Wed | 104 | 48 | 8 | 98.0 | ||
12 | 6/23/2011 | Thu | 99 | 52 | 17 | 95.3 | ||
13 | 6/24/2011 | Fri | 95 | 45 | 15 | 90.6 | ||
14 | 6/25/2011 | Sat | 97 | 46 | 11 | 92.1 | ||
15 | 6/26/2011 | Sun | 97 | 46 | 12 | 92.2 | ||
16 | 6/27/2011 | Mon | 99 | 43 | 9 | 93.7 | ||
17 | 6/28/2011 | Tue | 93 | 43 | 18 | 89.0 | ||
18 | 6/29/2011 | Wed | 81 | 52 | 29 | 79.7 | ||
19 | 6/30/2011 | Thu | 93 | 48 | 28 | 91.1 | ||
20 | 7/1/2011 | Fri | 100 | 54 | 17 | 96.4 | ||
21 | 7/2/2011 | Sat | 108 | 55 | 6 | 100.9 | ||
22 | 7/3/2011 | Sun | 108 | 54 | 11 | 103.1 | ||
23 | 7/4/2011 | Mon | 100 | 64 | 24 | 99.2 | ||
24 | 7/5/2011 | Tue | 99 | 73 | 40 | 107.0 | ||
25 | 7/6/2011 | Wed | 99 | 70 | 36 | 104.2 | ||
26 | 7/7/2011 | Thu | 100 | 70 | 23 | 98.7 | ||
27 | 7/8/2011 | Fri | 100 | 59 | 22 | 98.3 | ||
28 | 7/9/2011 | Sat | 100 | 50 | 18 | 96.8 | ||
29 | 7/10/2011 | Sun | 99 | 50 | 14 | 94.5 | ||
30 | 7/11/2011 | Mon | 95 | 50 | 12 | 90.3 | ||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
AF2 | =IF(ISBLANK(D2), "", -42.379+(2.04901523*D2)+(10.14333127*AE2)+(-0.22475541*D2*AE2)+(-0.00683783*D2^2)+(-0.05481717*AE2^2)+(0.00122874*D2^2*AE2)+(0.00085282*D2*AE2^2)+(-0.00000199*D2^2*AE2^2)) | |
AF3 | =IF(ISBLANK(D3), "", -42.379+(2.04901523*D3)+(10.14333127*AE3)+(-0.22475541*D3*AE3)+(-0.00683783*D3^2)+(-0.05481717*AE3^2)+(0.00122874*D3^2*AE3)+(0.00085282*D3*AE3^2)+(-0.00000199*D3^2*AE3^2)) | |
AF4 | =IF(ISBLANK(D4), "", -42.379+(2.04901523*D4)+(10.14333127*AE4)+(-0.22475541*D4*AE4)+(-0.00683783*D4^2)+(-0.05481717*AE4^2)+(0.00122874*D4^2*AE4)+(0.00085282*D4*AE4^2)+(-0.00000199*D4^2*AE4^2)) | |
AF5 | =IF(ISBLANK(D5), "", -42.379+(2.04901523*D5)+(10.14333127*AE5)+(-0.22475541*D5*AE5)+(-0.00683783*D5^2)+(-0.05481717*AE5^2)+(0.00122874*D5^2*AE5)+(0.00085282*D5*AE5^2)+(-0.00000199*D5^2*AE5^2)) | |
AF6 | =IF(ISBLANK(D6), "", -42.379+(2.04901523*D6)+(10.14333127*AE6)+(-0.22475541*D6*AE6)+(-0.00683783*D6^2)+(-0.05481717*AE6^2)+(0.00122874*D6^2*AE6)+(0.00085282*D6*AE6^2)+(-0.00000199*D6^2*AE6^2)) | |
AF7 | =IF(ISBLANK(D7), "", -42.379+(2.04901523*D7)+(10.14333127*AE7)+(-0.22475541*D7*AE7)+(-0.00683783*D7^2)+(-0.05481717*AE7^2)+(0.00122874*D7^2*AE7)+(0.00085282*D7*AE7^2)+(-0.00000199*D7^2*AE7^2)) | |
AF8 | =IF(ISBLANK(D8), "", -42.379+(2.04901523*D8)+(10.14333127*AE8)+(-0.22475541*D8*AE8)+(-0.00683783*D8^2)+(-0.05481717*AE8^2)+(0.00122874*D8^2*AE8)+(0.00085282*D8*AE8^2)+(-0.00000199*D8^2*AE8^2)) | |
AF9 | =IF(ISBLANK(D9), "", -42.379+(2.04901523*D9)+(10.14333127*AE9)+(-0.22475541*D9*AE9)+(-0.00683783*D9^2)+(-0.05481717*AE9^2)+(0.00122874*D9^2*AE9)+(0.00085282*D9*AE9^2)+(-0.00000199*D9^2*AE9^2)) | |
AF10 | =IF(ISBLANK(D10), "", -42.379+(2.04901523*D10)+(10.14333127*AE10)+(-0.22475541*D10*AE10)+(-0.00683783*D10^2)+(-0.05481717*AE10^2)+(0.00122874*D10^2*AE10)+(0.00085282*D10*AE10^2)+(-0.00000199*D10^2*AE10^2)) | |
AF11 | =IF(ISBLANK(D11), "", -42.379+(2.04901523*D11)+(10.14333127*AE11)+(-0.22475541*D11*AE11)+(-0.00683783*D11^2)+(-0.05481717*AE11^2)+(0.00122874*D11^2*AE11)+(0.00085282*D11*AE11^2)+(-0.00000199*D11^2*AE11^2)) | |
AF12 | =IF(ISBLANK(D12), "", -42.379+(2.04901523*D12)+(10.14333127*AE12)+(-0.22475541*D12*AE12)+(-0.00683783*D12^2)+(-0.05481717*AE12^2)+(0.00122874*D12^2*AE12)+(0.00085282*D12*AE12^2)+(-0.00000199*D12^2*AE12^2)) | |
AF13 | =IF(ISBLANK(D13), "", -42.379+(2.04901523*D13)+(10.14333127*AE13)+(-0.22475541*D13*AE13)+(-0.00683783*D13^2)+(-0.05481717*AE13^2)+(0.00122874*D13^2*AE13)+(0.00085282*D13*AE13^2)+(-0.00000199*D13^2*AE13^2)) | |
AF14 | =IF(ISBLANK(D14), "", -42.379+(2.04901523*D14)+(10.14333127*AE14)+(-0.22475541*D14*AE14)+(-0.00683783*D14^2)+(-0.05481717*AE14^2)+(0.00122874*D14^2*AE14)+(0.00085282*D14*AE14^2)+(-0.00000199*D14^2*AE14^2)) | |
AF15 | =IF(ISBLANK(D15), "", -42.379+(2.04901523*D15)+(10.14333127*AE15)+(-0.22475541*D15*AE15)+(-0.00683783*D15^2)+(-0.05481717*AE15^2)+(0.00122874*D15^2*AE15)+(0.00085282*D15*AE15^2)+(-0.00000199*D15^2*AE15^2)) | |
AF16 | =IF(ISBLANK(D16), "", -42.379+(2.04901523*D16)+(10.14333127*AE16)+(-0.22475541*D16*AE16)+(-0.00683783*D16^2)+(-0.05481717*AE16^2)+(0.00122874*D16^2*AE16)+(0.00085282*D16*AE16^2)+(-0.00000199*D16^2*AE16^2)) | |
AF17 | =IF(ISBLANK(D17), "", -42.379+(2.04901523*D17)+(10.14333127*AE17)+(-0.22475541*D17*AE17)+(-0.00683783*D17^2)+(-0.05481717*AE17^2)+(0.00122874*D17^2*AE17)+(0.00085282*D17*AE17^2)+(-0.00000199*D17^2*AE17^2)) | |
AF18 | =IF(ISBLANK(D18), "", -42.379+(2.04901523*D18)+(10.14333127*AE18)+(-0.22475541*D18*AE18)+(-0.00683783*D18^2)+(-0.05481717*AE18^2)+(0.00122874*D18^2*AE18)+(0.00085282*D18*AE18^2)+(-0.00000199*D18^2*AE18^2)) | |
AF19 | =IF(ISBLANK(D19), "", -42.379+(2.04901523*D19)+(10.14333127*AE19)+(-0.22475541*D19*AE19)+(-0.00683783*D19^2)+(-0.05481717*AE19^2)+(0.00122874*D19^2*AE19)+(0.00085282*D19*AE19^2)+(-0.00000199*D19^2*AE19^2)) | |
AF20 | =IF(ISBLANK(D20), "", -42.379+(2.04901523*D20)+(10.14333127*AE20)+(-0.22475541*D20*AE20)+(-0.00683783*D20^2)+(-0.05481717*AE20^2)+(0.00122874*D20^2*AE20)+(0.00085282*D20*AE20^2)+(-0.00000199*D20^2*AE20^2)) | |
AF21 | =IF(ISBLANK(D21), "", -42.379+(2.04901523*D21)+(10.14333127*AE21)+(-0.22475541*D21*AE21)+(-0.00683783*D21^2)+(-0.05481717*AE21^2)+(0.00122874*D21^2*AE21)+(0.00085282*D21*AE21^2)+(-0.00000199*D21^2*AE21^2)) | |
AF22 | =IF(ISBLANK(D22), "", -42.379+(2.04901523*D22)+(10.14333127*AE22)+(-0.22475541*D22*AE22)+(-0.00683783*D22^2)+(-0.05481717*AE22^2)+(0.00122874*D22^2*AE22)+(0.00085282*D22*AE22^2)+(-0.00000199*D22^2*AE22^2)) | |
AF23 | =IF(ISBLANK(D23), "", -42.379+(2.04901523*D23)+(10.14333127*AE23)+(-0.22475541*D23*AE23)+(-0.00683783*D23^2)+(-0.05481717*AE23^2)+(0.00122874*D23^2*AE23)+(0.00085282*D23*AE23^2)+(-0.00000199*D23^2*AE23^2)) | |
AF24 | =IF(ISBLANK(D24), "", -42.379+(2.04901523*D24)+(10.14333127*AE24)+(-0.22475541*D24*AE24)+(-0.00683783*D24^2)+(-0.05481717*AE24^2)+(0.00122874*D24^2*AE24)+(0.00085282*D24*AE24^2)+(-0.00000199*D24^2*AE24^2)) | |
AF25 | =IF(ISBLANK(D25), "", -42.379+(2.04901523*D25)+(10.14333127*AE25)+(-0.22475541*D25*AE25)+(-0.00683783*D25^2)+(-0.05481717*AE25^2)+(0.00122874*D25^2*AE25)+(0.00085282*D25*AE25^2)+(-0.00000199*D25^2*AE25^2)) | |
AF26 | =IF(ISBLANK(D26), "", -42.379+(2.04901523*D26)+(10.14333127*AE26)+(-0.22475541*D26*AE26)+(-0.00683783*D26^2)+(-0.05481717*AE26^2)+(0.00122874*D26^2*AE26)+(0.00085282*D26*AE26^2)+(-0.00000199*D26^2*AE26^2)) | |
AF27 | =IF(ISBLANK(D27), "", -42.379+(2.04901523*D27)+(10.14333127*AE27)+(-0.22475541*D27*AE27)+(-0.00683783*D27^2)+(-0.05481717*AE27^2)+(0.00122874*D27^2*AE27)+(0.00085282*D27*AE27^2)+(-0.00000199*D27^2*AE27^2)) | |
AF28 | =IF(ISBLANK(D28), "", -42.379+(2.04901523*D28)+(10.14333127*AE28)+(-0.22475541*D28*AE28)+(-0.00683783*D28^2)+(-0.05481717*AE28^2)+(0.00122874*D28^2*AE28)+(0.00085282*D28*AE28^2)+(-0.00000199*D28^2*AE28^2)) | |
AF29 | =IF(ISBLANK(D29), "", -42.379+(2.04901523*D29)+(10.14333127*AE29)+(-0.22475541*D29*AE29)+(-0.00683783*D29^2)+(-0.05481717*AE29^2)+(0.00122874*D29^2*AE29)+(0.00085282*D29*AE29^2)+(-0.00000199*D29^2*AE29^2)) | |
AF30 | =IF(ISBLANK(D30), "", -42.379+(2.04901523*D30)+(10.14333127*AE30)+(-0.22475541*D30*AE30)+(-0.00683783*D30^2)+(-0.05481717*AE30^2)+(0.00122874*D30^2*AE30)+(0.00085282*D30*AE30^2)+(-0.00000199*D30^2*AE30^2)) |