Help with conditional formatting

Sean15

Well-known Member
Joined
Jun 25, 2005
Messages
698
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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
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
 
Upvote 0
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)
 
Upvote 0
Hi:

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

Thanks very much.


Regards,

Sean
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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