Over riding conditional formatting?

Ian1976

Board Regular
Joined
Feb 4, 2016
Messages
137
Office Version
  1. 365
Platform
  1. Windows
Hi,
Not sure if what I'm trying to achieve is possible?

I have a number between 0 and 10000 in cell B10 that has the following conditional formatting - "Cell Value Between 1000 and -500" & "Cell Value Between 6000 and 4500" which will turn the number in B10 Red

I have a date in cell C10 which if it is within 4 days of todays date (which is also available in cell P1) then I'd like it to ignore the conditional formatting formula?

Is that possible?

Thanks :)
 
OK I've managed to get that working as per your example, and that formatting will be perfect if I can get what you've done on column D to work on Column B, is that possible?

Only needs to work on column B (y)
Thanks
 
Upvote 0

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
yes
just select column B
instead of D in the conditional formatting

Book4
ABCDEFGHIJKLM
1
2
3
4
5
6
7
8range of numbers
9
1046581-Mar-239658TRUETRUE
11FALSEFALSE
12165830-Mar-236658FALSEFALSE
1340851-Apr-234085FALSEFALSE
14116027-Mar-231160FALSEFALSE
15FALSEFALSE
1614829-Mar-23148TRUETRUE
1732522-Apr-233252FALSEFALSE
1841099-Apr-239109FALSEFALSE
19296629-Mar-237966FALSEFALSE
20FALSEFALSE
2128271-Apr-237827FALSEFALSE
22-30013-Apr-23FALSE
23-2998-Apr-23TRUE
24
25
26Column D is a Vlookup formaul result from anther sheet within this workbook The cells in column B are required to be red if "Cell Value Between 1000 and -500" & "Cell Value Between 6000 and 4500" But if date in column C is within 4 days of cell P1 then ignore formatting and leave as standard.
27
28
29
30
31
32
33
Sheet2
Cell Formulas
RangeFormula
B10,B21,B16:B19,B12:B14B10=IF(D10>5000,D10-5000,D10)
H10:H21H10=AND(B10<>"",OR(AND(B10>=-500,B10<=1000),AND(B10>=4500,B10<=6000)))
C22C22=TODAY()
C23C23=TODAY()-5
F10:F23F10=AND(B10<>"",C10<=TODAY()-4,OR(AND(B10>=-500,B10<=1000),AND(B10>=4500,B10<=6000)))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B10:B23Expression=AND(B10<>"",C10<=TODAY()-4,OR(AND(B10>=-500,B10<=1000),AND(B10>=4500,B10<=6000)))textNO


for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
Conditional Formatting

Highlight applicable range >>
B10:B100 - Change, reduce or extend the rows to meet your data range of rows

Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:
=AND(B10<>"",C10<=TODAY()-4,OR(AND(B10>=-500,B10<=1000),AND(B10>=4500,B10<=6000)))

Format [Number, Font, Border, Fill]
choose the format you would like to apply when the condition is true
OK >> OK
 
Upvote 0
Yes that's what I thought, I changed it to =$B$10:$B$27 but it just went blank, lol...

Must be something I've missed typed I'll check over it all! thanks
 
Upvote 0
if you change the selection - it will also change the formula

probably easier to copy the formula , and then just delete the formatting in column D

Select the range in column B
and then paste the formula
 
Upvote 0
Brilliant, that's what I'd done! works great now thanks! 👏👏👏

Thanks so much for your help! 🙏:)
 
Upvote 0

Forum statistics

Threads
1,214,657
Messages
6,120,764
Members
448,991
Latest member
Hanakoro

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