Conditional format based off spill formula value

MiniFav

Board Regular
Joined
Mar 10, 2020
Messages
83
Office Version
  1. 365
Platform
  1. Windows
I have an error check sheet within a work book, for example

Aircraft AD template V3 (In works).xlsx
EF
1PART NUMBERSERIAL (IF APPLIC')
212345-6789112233
312345-6789
49876-54321
AD Initial
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F2:F4Expression=IF('Error Check'!AR3<>"","TRUE","FALSE")textNO


Now this works great, but I have times where a new row needs to be inserted within the data.

upon inserting a row between rows 3 and 4 i get this.

Aircraft AD template V3 (In works).xlsx
EF
1PART NUMBERSERIAL (IF APPLIC')
212345-6789112233
312345-6789
4
59876-54321
AD Initial
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F2:F4Expression=IF('Error Check'!AR3<>"","TRUE","FALSE")textNO


Row 4 looks fine, no part number so doesnt highlight the serial number, but row 5 has now been bumped down to where there is a part number but the conditional formatting doesnt move along to show a serial number is required. Further more if i populate E4 with a part number then both F4 and F5 turn red and F5 remains red even if i remove the value within E5.

Like so.

Aircraft AD template V3 (In works).xlsx
EF
1PART NUMBERSERIAL (IF APPLIC')
212345-6789112233
312345-6789
412345-6790
5
AD Initial
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F2:F4Expression=IF('Error Check'!AR3<>"","TRUE","FALSE")textNO
[XR]


For additional information, this is the error sheet cells i refer to.

Aircraft AD template V3 (In works).xlsx
AR
2If part number then serial required
3 
4Serial number required
5Serial number required
Error Check
Cell Formulas
RangeFormula
AR3:AR6AR3=IF('AD Initial'!E2:E5<>"",IF('AD Initial'!F2:F5="","Serial number required",""),"")
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
AR2Expression=COUNTIFS(AR3:AR1001,"")<>999textNO
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Why not just use
Excel Formula:
=AND(E2<>"",F2="")
rather than looking at another sheet.
 
Upvote 0
Solution
Why not just use
Excel Formula:
=AND(E2<>"",F2="")
rather than looking at another sheet.
I was hoping to have one sheet just for all errors with text so a user can look and see whats wrong, but if its messing up conditional formatting i may have to use both methods.
 
Upvote 0
You can still have the sheet with the error messages, but as that just looks at the AD Initial sheet, it makes sense to make the CF rule on that sheet use the same criteria as your formula on the Error sheet.
 
Upvote 0

Forum statistics

Threads
1,223,630
Messages
6,173,456
Members
452,514
Latest member
cjkelly15

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