Conditional Formatting based on an already Conditionally Formatted Column

Some videos you may like

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
35,661
Office Version
365
Platform
Windows
Select B2 to last row of data & use this formula
=COUNTIFS(A:A,A2,B:B,B2)>1
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
35,661
Office Version
365
Platform
Windows
How can it highlight random numbers if col B is text?

Book1
AB
1
21296tyre
31296tyre
41296wheel
51297wheel
61297tyre
71297wheel
81298truck
91299truck
101299truck
111300truck
Report
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:B11Expression=COUNTIFS(A:A,A2,B:B,B2)>1textNO
 
Last edited:

FRESHShaZaM

New Member
Joined
Dec 30, 2019
Messages
7
Office Version
365
Platform
Windows, MacOS, Mobile
How can it highlight random numbers if col B is text?

Book1
AB
1
21296tyre
31296tyre
41296wheel
51297wheel
61297tyre
71297wheel
81298truck
91299truck
101299truck
111300truck
Report
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:B11Expression=COUNTIFS(A:A,A2,B:B,B2)>1textNO
I'm genuinely sorry, I don't know why I said "numbers." I tried it again, and the only difference now is that yours highlights all duplicates, whereas when I used it, only one of the duplicates was highlights. Although, the duplicated issue is still highlighted. Which is nonetheless, helpful, so thank you.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
35,661
Office Version
365
Platform
Windows
You're welcome & thanks for the feedback
 

Forum statistics

Threads
1,089,573
Messages
5,409,088
Members
403,251
Latest member
BAMORAN

This Week's Hot Topics

  • help please
    SORRY NOT ANY GOOD AT EXCEL SO HELP WOULD BE MUCH APPRECIATED this formula is in a sheet called ignore...
  • two formulas needed
    Hello, I'll try my best to explain this: First formula needed in Sheet1 cell A2: If Sheet1 cell B2 = Sheet2 cell B2 then return a 1. If not then...
  • Dynamic Counts
    Good afternoon, we are tidying up some data & the data seems to be growing quicker than we are tidying it up! What we confirm (by reviewing it...
  • Help Excel formula eliminate duplicate values and keep only 2 identical rows.
    as picture below column A has a duplicate value. but the values are not the same as the rule. sometimes 4 rows, sometimes 10 rows or 7 or 9...
  • Macro Compile Error Sub or Function not defined
    Hello, I am trying to run macros from a validation list, all macros have been created and run perfectly on there own but I'm getting a compile...
  • Last row combined with Current Region VBA
    I'm generally happy finding the last row of data through something like Lastrow = Cells(Rows.Count, "D").End(xlUp) but I don't always receive data...
Top