Help with conditional formatting

Sean15

Well-known Member
Joined
Jun 25, 2005
Messages
606
Office Version
  1. 2010
Platform
  1. Windows
Hi:

I want to do a conditional format based on the following:

If value in range A2:A60 is equal to 1301, or 1305, or 1306, or 1307, format corresponding value in range F2:F60.

So if A2=1301, format F2

If A2=1320, no format in F2

Could someone help with a formula please?

Regards,

Sean
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Jeffrey Mahoney

Well-known Member
Joined
May 31, 2015
Messages
1,830
Office Version
  1. 365
Platform
  1. Windows
Hi Sean,

Please try this. Highlight the cells F2:F60. Create a new conditional formatting that uses a formula to determine which cells to format. Enter this formula:
=AND($A2>1300,$A2<1308)

Formulas in conditional formatting all have to result in a TRUE or FALSE
Jeff
 

Jeffrey Mahoney

Well-known Member
Joined
May 31, 2015
Messages
1,830
Office Version
  1. 365
Platform
  1. Windows
I didn't see that you don't want to use all the values between 1301 and 1307 as a value so...

=OR($A2=1301,$A2=1305,$A2=1306,$A2=1307)
 

Sean15

Well-known Member
Joined
Jun 25, 2005
Messages
606
Office Version
  1. 2010
Platform
  1. Windows
Hi:

Post#3 is set up exactly as I want and gives he required results.

Thanks very much.


Regards,

Sean
 

Watch MrExcel Video

Forum statistics

Threads
1,130,169
Messages
5,640,544
Members
417,151
Latest member
ChickenTenderer

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
Top