conditional formatting with specific range and color code

mckeamic

New Member
Joined
Nov 26, 2018
Messages
20
Hi All,
I think/hope this is the last help I need with the formulas (considering I've been working on this for a while now, lol)...
With the sample I have attached:
21J008 tab (page 1) (I highlighted it in green) the person will input in the weight under the columns D or J respectively.
It will auto populate below on page 2 Column F52:F90 (I highlighted it green) , there I have columns with percentages 11%-22% columns J-N respectively.

What I need the formula to do is:
With the inputted weight calculate which percentage its closer to and color the cell depending on if its 11% (one color), 15 & 18% (2nd color), 20% (3rd color), and 22% (4th color)
-Optional bonus if you can get the Column F,G,H,I 52:90 to highlight a neutral (5th color) if the number is greater than 0 in Column F52:F90.

Thank you for any help I can get. I am just so amazed how helpful and wonderful everyone is in this forum...
PS if I didn't do the upload mini sheet right, please let me know

Thank you

sample for forum help on weight chart.xlsm
BCDEFGHIJKLMN
23DATEDAYWEIGHTEXAMHUMIDITYACTIONDATEDAYWEIGHTEXAMHUMIDITYACTION
241/14156%RCOM 12/4227am = mvemnt
251/15225.1 gfert562/523
261/1632/624
271/174 2/7257am = DD;mvemnt
281/1852/8267am = EP 1pm = mvemnt 4pm = mvemnt; progress
291/19624.7 g~ 1/4 cam56H down 402/9277am = EP; mvemnt 4pm = EP; progression
301/2072/1028
311/2182/1129
321/22924.3 g~ 3/4 cam40H down 302/1230
331/23102/1331
341/24112/1432
351/25122/1533
361/261323.9 g> 3/4 cam; dying?302/1634
371/27142/1735
381/28152/1836
391/291623.5 gCC; mvemnt30H down 252/1937
401/30172/2038
411/31182/2139
422/1192/2240
432/22023.0 gmvemnt252/2341
442/3217am = mvemnt; hatcher 4pm = mvemnt2/2442
45
46
47Egg #1Egg Log #21J008SpeciesNicobar Pigeon
48
49
50ACTUAL WT.DATEDAY11%15%18%20%22%
51Date Laid1/13/21
52Date Found1/13/211/13025.3025.3025.3025.3025.30
53Date Set1/13/210.0 g1/14125.1825.1425.1025.0825.06
54Date Set in Machine1/13/2125.1 g1/15225.0624.9724.9124.8624.82
550.0 g1/16324.9424.8124.7124.6524.58
56Due date2/5/210.0 g1/17424.8224.6524.5224.4324.35
570.0 g1/18524.7024.4924.3324.2224.11
5824.7 g1/19624.5824.3324.1424.0123.88
59min incubation period230.0 g1/20724.4724.1723.9523.8023.65
60-0.0 g1/21824.3524.0123.7623.5923.43
61max incubation period2624.3 g1/22924.2323.8523.5723.3923.20
620.0 g1/231024.1223.7023.3923.1822.98
630.0 g1/241124.0023.5423.2122.9822.76
64NEED TO:Ex. If wt is lower than normal, lower humidity (to reduce water loss).0.0 g1/251223.8923.3923.0222.7822.54
65Weight?23.9 g1/261323.7723.2422.8422.5822.33
660.0 g1/271423.6623.0922.6622.3922.11
670.0 g1/281523.5422.9322.4922.1921.90
68ThenHumidity23.5 g1/291623.4322.7922.3122.0021.69
690.0 g1/301723.3222.6422.1421.8121.49
70Ex. If wt is higher than normal, raise humidity (to increase water loss).0.0 g1/311823.2122.4921.9621.6221.28
71Weight?0.0 g2/11923.1022.3421.7921.4321.08
7223.0 g2/22022.9922.2021.6221.2520.88
730.0 g2/32122.8822.0521.4521.0620.68
74ThenHumidity0.0 g2/42222.7721.9121.2820.8820.48
750.0 g2/52322.6621.7721.1220.7020.28
760.0 g2/62422.5521.6220.9520.5220.09
770.0 g2/72522.4421.4820.7920.3419.90
78Losing What %?0.0 g2/82622.3421.3420.6320.1619.71
7911%15%18%Humidity Weight0.0 g2/92722.2321.2020.4619.9919.52
800.0 g2/102822.1221.0620.3019.8119.33
810.0 g2/112922.0220.9320.1419.6419.15
21J008
Cell Formulas
RangeFormula
F24F24=DATA!U5
G24G24=DATA!S5
B24B24=H5+1
G53:G81,H25:H44,B25:B44B25=B24+1
H24H24=B44+1
C47C47=D3
G47G47=D4
K47K47=C5
G52G52=H3
J52J52=IF(DATA!O5=0,DATA!P5,DATA!O5)
K52K52=J52
L52L52=J52
M52M52=J52
N52N52=J52
J53:J62J53=J52-((J52*0.11)/D$59)
K53:K81K53=K52-((K52*0.15)/D$59)
L53:L81L53=L52-((L52*0.18)/D$59)
M53:M81M53=M52-((M52*0.2)/D$59)
N53:N81N53=N52-((N52*0.22)/D$59)
J63J63=J62-((J62*0.11)/D59)
J64J64=J63-((J63*0.11)/D59)
J65J65=J64-((J64*0.11)/D59)
J66J66=J65-((J65*0.11)/D59)
J67J67=J66-((J66*0.11)/D59)
J68J68=J67-((J67*0.11)/D59)
J69J69=J68-((J68*0.11)/D59)
J70J70=J69-((J69*0.11)/D59)
J71J71=J70-((J70*0.11)/D59)
J72J72=J71-((J71*0.11)/D59)
J73J73=J72-((J72*0.11)/D59)
J74J74=J73-((J73*0.11)/D59)
J75J75=J74-((J74*0.11)/D59)
J76J76=J75-((J75*0.11)/D59)
J77J77=J76-((J76*0.11)/D59)
J78J78=J77-((J77*0.11)/D59)
J79J79=J78-((J78*0.11)/D59)
J80J80=J79-((J79*0.11)/D59)
J81J81=J80-((J80*0.11)/D59)
F53:F73F53=D24
F74:F81F74=J24
D51:D54D51=H3
D56D56=H7
D59,D61D59=D13
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C24:C44Expression=AND(C24>=$D$13,C24<=$D$15)textNO
I24:I44Expression=AND(I24>=$D$13,I24<=$D$15)textNO
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top