Conditional Format help

Billnomind

New Member
Joined
Mar 9, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
1678345900475.png


I need cell B8 to change its fill between two colors according to what number is being read in cell F8.
Cell F8 will have a number chosen by a set list by manual input. depending on the number I need it to choose a specified color.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
B8 has no color, F8 is blank, at the moment.
If F8 is filled with number, which number for which color?
 
Upvote 0
B8 has no color, F8 is blank, at the moment.
If F8 is filled with number, which number for which color?
If F8 = 454,455,545,461,460,459,458,457,456,12,462,463,464,465,466,467,468,469 then I need B8 to be orange
If F8 = 1,2,3,4,5,6,7,8,30,51,38,41,42,601,6011,6012,602,65 then I need B8 to be red
If f8 has no value than B8 needs to have no fill
 
Upvote 0
So, conditioning formating formula in cell F8:

Orange
=OR(AND(F8>=454,F8<=469), F8=545,F8=12)

Red
=OR(AND(F8>=1,F8<=8), F8=30, ......)

Its better to create a lookup table, input all numbers then using COUNTIF to check
 
Upvote 0

Forum statistics

Threads
1,215,136
Messages
6,123,247
Members
449,093
Latest member
Vincent Khandagale

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