Highlighting cell contents, based on a range

wherethegoalsat

New Member
Joined
Aug 23, 2024
Messages
5
Office Version
  1. 2011
Platform
  1. Windows
Hi

I am trying to work out how to create a formula/conditional formatting for duplication. The conditions are as follows. (from the image)

1. Grey box is know as 'contents', Yellow box is 'New Lot'.
2. So IF the cell contents, in the yellow box matches ANY of the cell contents in the grey box, then BOTH of the cells would highlight (so red text for example).
3. If there are 2 matching cells in the grey box, then it WONT highlight the cells, as its only concerned with a match in the yellow box

In the example in the picture, i would expect to see
* fridge highlighted in cells A4 & A12
* saw highlighted in cells C5 & A14
* bed in cells C6 & A7 to NOT be highlighted

The thinking long term, is that the yellow 'new lot' section will constantly change and i can see whats a duplicate of the contents (grey section.).

Hope this made sense... not sure if its achievable.
 

Attachments

  • spreadsheet example.png
    spreadsheet example.png
    15.8 KB · Views: 13
Try this

here is the working file to download:

CondiFormat.zip

Book6.xlsx
ABCDEFGHIJKL
1HouseGarageShed
2
3
4CookerBenchlawnmower
5FridgeBikeBike
6ShelfTVSaw
7ComputerBed
8BedLightLight
9Yansa
10
11
12
13
14
15
16
17
18
19
20
21bed
22Fridge
23Light
24saw
25Bowl
26Yansa
27
28
29
30
Sheet4 (2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B21:B999Expression=SUM(COUNTIF(B21, $B$4:$K$18))=1textNO
B4:K17Expression=SUM(COUNTIF(B4, $B$21:$B$999))*(SUM(COUNTIF(B4, $B$4:$K$18))<2)textNO
thank you very much for your help sir.
 
Upvote 0

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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