Change Conditional Formatting formula for all rules in cell

KrisKiel

New Member
Joined
Feb 16, 2019
Messages
28
Is there a way to change the reference cell for all conditional formatting rules in a single cell?

I’m looking to speed up a gruelingly redundant process while building a spreadsheet. It will take me over 10 hours the way I’m doing it now.

There’s 640 cells and each has 10 conditional formatting rules in them to change the cell’s color based on another cell’s value. I need to change the cell each one is linked to.

Formula = ‘Direct Training’!$B$3=1
Formula = ‘Direct Training’!$B$3=2
etc. through to… =10

EDITING TO ADD: Macros would be fine as a solution for this if they can be completely removed afterwards.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
There’s 640 cells and each has 10 conditional formatting rules in them to change the cell’s color based on another cell’s value.
you could use indirect() to change the cell reference

Not 100% following what you are after

here i have used sheet1!B1 - which has the cell i want to link to in
in this case in sheet1B1 I have sheet1A1
and so now the value in sheet1A1 - which is a value of 12 is then tested against the main sheet K2 and if that is also 12 , then it changes colour

is that the sort of thing you are after

indirect() is a volitile function - so may slow the spreadsheeet down if used a lot

Book1.xlsx
JKL
112
212sheet1!a1
3
4
5TRUE
New Worksheet
Cell Formulas
RangeFormula
L5L5=K1=INDIRECT(L2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
K2Expression=K1=INDIRECT(Sheet1!B1)textNO
 
Upvote 0
Are the 640 cells got same conditional formating formula structure?
If so, try manual correction for 1 cell then apply to whole 640 cells?
 
Upvote 0
Are the 640 cells got same conditional formating formula structure?
If so, try manual correction for 1 cell then apply to whole 640 cells?
I did that to help with part of the issue (applying the color rules for the different cell values). But I still need to now change the referent cell in the formula.
 

Attachments

  • Screenshot (72).png
    Screenshot (72).png
    52.2 KB · Views: 19
Upvote 0

Forum statistics

Threads
1,223,952
Messages
6,175,595
Members
452,657
Latest member
giadungthienduyen

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