I have Sheet 1 as
AssocNum RatePlanCde RateType RateTypeDesc
272 911 2 Adjustable
472 1115 2 Fixed
Many of these RatePlanCde are not valid anymore. These have been highlighted in red in Sheet 1. For example, 911 is not a valid RatePlanCde, while RatePlanCde 1115 is still valid.
I have sheet 2 as
AssocNumEID RateCostComponentCde RatePlanCde ReadOnlyInd
272 2 911 Null
472 4 1 Null
I need to find the rows in Sheet 2 where the RatePlanCde is invalid and highlight those rows. Any help in doing this using conditional formatting with VLOOKUP
will be appreciated.
UPDATE:
Updating to add more details.
I tried the COUNTIFS
solution proposed here but for some reason it is not working for me. What am I missing?
I have added a helper column to Column B of Sheet1 (aka RatePlan) that includes either Valid or Invalid for the corresponding RatePlanCde column (Column C).
I am using this formula under conditional formatting in Sheet 2 for conditional formatting:
=COUNTIFS(RatePlan!$B$2:$B$2514,"Invalid",RatePlan!$C$2:$C$2514,$C2)>0