Conditional formatting formula

Jager819

New Member
Joined
Jul 10, 2018
Messages
12
I am trying to write a formula to apply conditional formatting to a cell in a table based on a cell in another table. In the simplified table below I would like to highlight the start date of "schedule" if it is not equal to the start in "Requested Change".

the table in blue is named "Schedule" the table in orange is named "Requested_Changes"

If the the date in the start column of "schedule" is not equal to the date in the start column of "Requested_Changes I would like the selected formatting applied to the cell in the start column of "Schedule.

I have tried using the formula =(Schedule[@[Start ]]<>Requested_Changes[@[Start ]])

I know i could add columns to the table and use a the formula =IF(Schedule[@[Start ]]=Requested_Changes[@[Start ]],"Yes","No") then use a have the conidial formatting applied to the whole row in the table and hide the additional columns just wondering if there was a cleaner option.

Book1
ABCDEFG
1
2
3TaskStart FinishTask Start Finish
4125-Sep125-Sep
5215-Oct215-Oct
636-Aug312-Sep
7419-Sep419-Sep
8529-Sep529-Sep
9614-Oct614-Oct
10715-Dec715-Dec
11830-Nov830-Nov
12
Sheet1
 

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)
what the format and what cells applied to

Just Use a formula
$B4<>$F4


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

Highlight applicable range >>
B4:B11

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:
=$B4<>$F4

Format [Number, Font, Border, Fill] apply formatting
choose the format you would like to apply when the condition is true
OK >> OK
 
Upvote 0
Try

Book5
ABCDEFGH
1
2
3
4
5TaskStart FinishTask Start Finish
619/25/202119/25/2021
7210/15/2021210/15/2021
838/6/202139/12/2021
949/19/202149/19/2021
1059/29/202159/29/2021
11610/14/2021610/14/2021
12712/15/2021712/15/2021
13811/30/2021811/30/2021
14
15
16
17
Sheet3
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B6:B13Expression=B6<>F6textNO
 
Upvote 0
Thank you for the help everyone that seems to work if both tables are sorted the same. One thing I was hoping to achieve was for the formula to still work if both tables were not sorted the same way. For example, if the second table was sorted by the task in descending order. That is why I attempted to use Schedule[@[Start ]] instead of the cell reference $B4. This does not seem to work using either method. Does anyone know if it would be possible to use Vlookup to accomplish this task. Something like look up the start date of task1 in "schedule" and compare it to the start date for task 1 in " requested Changes"
 
Upvote 0
you can use a countifs()
Book1
ABCDEFG
2
3TaskStart FinishTask Start Finish
419/25/2139/12/21
5210/15/2149/19/21
638/6/2119/25/21
749/19/2159/29/21
859/29/21610/14/21
9610/14/21210/15/21
10712/15/21811/30/21
11811/30/21712/15/21
12
Sheet3
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A4:C11Expression=COUNTIFS($E$4:$E$11,$A4,$F$4:$F$11,$B4)=0textNO
 
Upvote 0

Forum statistics

Threads
1,214,976
Messages
6,122,541
Members
449,089
Latest member
davidcom

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