Replicate Conditional Formatting Results Into adjacent Cell

Russ At Index

Well-known Member
Joined
Sep 23, 2002
Messages
706
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
Hi Everyone , hope you are all staying safe.

Don't really know if this is possible , but here goes ..
In cell B2 I have applied a conditional format rule , i would like , if it is possible to replicate the resulting colour of that
formatting into cell A2 , and continue it across my worksheet .... colour in D2 , replicate that colour in C2 etc etc .

Any ideas ? the data will be around 250 rows by a similar number of columns by the time I have finished,

Thanks ,

Russ.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
When you set your Conditional Formatting rules, you can apply them across multiple columns are the same time.

If you need help in doing that, please post for us what your first few Conditional Formatting are.
 
Upvote 0
Hi Joe ,
Thanks for the reply ... here goes with my problem.

Cell A2 Cell B2
ABC-1-1-10 251

My conditional formatting needs to be :
Less than 50 = Red
Greater than 51 , but less than 251 - Amber
Greater than 251 = Green

So i would like both cell A2 & B2 to be highlighted in the corresponding colour. ( In the data above , Green )

Thanks ,

Russ
 
Upvote 0
Hi Just to clarify as my reply isn't really that clear ( it was early ) ....
Cell A2 = ABC-1-1-10
Cell B2 = Has the result of my conditional formatting which in this case is 10 , therefore the colour i which to
replicate as background to cell A2 is Green

Apologise for the confusion .

Russ,
 
Upvote 0
OK, we are going to set three Conditional Formatting rules, using the "Use a formula to determine which cells to format" option.

First Rule
1. Select cells A2 & B2
2. Go to Conditional Formatting, and choose the "Use a formula to determine which cells to format" option
3. Enter the following formula:
VBA Code:
=$B2<=50
4. Choose the red formatting option

Second Rule
1. Select cells A2 & B2
2. Go to Conditional Formatting, and choose the "Use a formula to determine which cells to format" option
3. Enter the following formula:
VBA Code:
=AND($B2>50,$B2<251)
4. Choose the amber formatting option

Third Rule
1. Select cells A2 & B2
2. Go to Conditional Formatting, and choose the "Use a formula to determine which cells to format" option
3. Enter the following formula:
VBA Code:
=$B2>=251
4. Choose the green formatting option

Note that you may need to amend your formulas slightly, as you didn't clearly indicate what should happen if they values happen to be EXACTLY 50, 51, or 251.
 
Upvote 0
Hi Joe4 ,
Works perfectly , thank you for your time , really appreciated .

Stay safe,

Russ.
 
Upvote 0
You are welcome.
Glad I was able to help.
 
Upvote 0
Hey Joe ,

Slight twist on my Con Format issue ... i now have the ABC 01-01-01 in a row and the qty in the cell beneath
Example ABC01-01-01 in cell J2 & Qty in cell J3
Have tried adapting your excellent formula from yesterday , but no joy :(
Any ideas ?.
Tahnks,
Russ.
 
Upvote 0
Slight twist on my Con Format issue ... i now have the ABC 01-01-01 in a row and the qty in the cell beneath
Example ABC01-01-01 in cell J2 & Qty in cell J3
Have tried adapting your excellent formula from yesterday , but no joy :(
Any ideas ?.
So you should just select J2 and J3, and then lock down the ROW part of the formula, instead of the COLUMN part in the CF formula, i.e.
VBA Code:
=J$3<=50
That is what the "$" does. It logs down the part of the range reference that immediately follows it.
 
Upvote 0
Hi Joe , All...

Another CF challenge overcome , thank you Mate .

I have a small favour , although i think this is probably not possible counting the result background colour of conditional formatted cells
( if you believe everything you read on Google !! )

My layout design is that of a warehouse , my conditioning contains four colours , my question ....
Is there a way to count the total number of each colour within the worksheet ?
Example
Green 2,400
Amber 1,010
Red 2,098
Blue 656

Stay safe ,

Russ
 
Upvote 0

Forum statistics

Threads
1,213,549
Messages
6,114,261
Members
448,558
Latest member
aivin

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