Conditional Formatting Question

attv

New Member
Joined
Mar 10, 2021
Messages
35
Office Version
  1. 2019
Platform
  1. Windows
How to do this in Excel?

I have a list of certain company names in column G (Sheet 1)

And I have a list of all company names in column A (Sheet 2)

Which conditional formatting formula can I use to highlight cells in Sheet 1 if they match any names from Sheet 2?
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Select column G sheet 1
Go to conditional formatting
Create new rule "using a formula"
For the formula:

Excel Formula:
=ISNUMBER(MATCH(G1,'Sheet 2'!$A:$A,0))

select desired formatting
 
Upvote 0
Solution
Book1
ABCD
1
2Tesco
3Amazon
4John Lewis
5Sports Direct
6Microsoft
7
8
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:A7Expression=MATCH(A1,All_Companies,0)textNO


The named range All_Companies refers to Sheet2!A:A, in some older versions of Excel CF didn't like references to other sheets, M365 seems to handle it OK though.

If there's a match it'll return a number, which CF will evaluate to true and highlight the cells, if there is no match there will be an error, which CF will ignore.
 
Upvote 0
Not working sadly @6StringJazzer . All I get is


1663523542481.png
 
Upvote 0
Do you normally use commas or semi-colons as the separator in functions?
 
Upvote 0
test.xlsx
D
1company
54StayLinked Corporation
581build
6022Miles
6122Miles
62247PRO
1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D2:D3144Expression=MATCH(D2,COMPANY!A:A,0)textNO


I'm using M365, the suggestion I gave appears to work fine.
 
Upvote 0
Ok, how about
test.xlsx
ABCDEF
1first_nameheadlinecurrent_positioncompanyprevious_position_2previous_company_2
52PKPresident & CEO CFO On The GoPresident & CEOOn The GoCFO & Director of Purchasing
53Bob--President & Ceo
54GaryCEO and General Counsel StayLinked CorporationPresident and CEOStayLinked CorporationSr. V.P. and General Counsel V.P. Business Development
55RamEasily create workflows & apps connecting people and informationPresident CEOApere CEO: Transitioning teams/customers to CitrixCitrix
56MarcieProject Manager Trivium ConsultingProject ManagerProject LeadCodeVA
57JolieSurgical Robotics / Digital Health Program Manager at CITRIS and the Banatao InstituteSurgical Robotics / Digital Health Program ManagerCITRIS and the Banatao InstituteProgrammatic OfficerUniversity of California Berkeley
58DmitryCEO/Founder at 1build | 🤖 + 👷‍♀️ = 🏘CEO/Founder1buildLead Data ScientistCloudKitchens
59💌 MelissaMaking your inbox + the world a better place | Chief Meme Officer @ Gated | Host of 2 Pizza Marketing PodcastHost2 Pizza MarketingMobile Strategy Lead TravelGoogle
60JoeyCEO & Co-founder at 22Miles Inc.CEO & Co-founder22Miles
61TomChief Operating OfficerChief Operating Officer22MilesVice President of Global Business Development22Miles
62CagriCo-Founder @ 247PRO Software Engineer Graduate Student in AICo-Founder247PROSoftware ConsultantAltis Teknoloji
63GeorgeFounder / CEO at 247PRO.COM Remodeling SaaS from estimating to project managementFounder / CEO247PROFounder & CEOModobay Inc.
64NicoleCEO at 2NDNATURE2NDNATURE
65NatCTO at 2NDNATURELead Software Engineer2NDNATUREGIS Analyst and WebGIS DeveloperLondon Metropolitan University
66SushantChief Technology Officer / VP Engineering: Record of Leadership and Problem Solving while Building B2C/B2B Platforms and ProductChief Technology Officer & Senior Vice President of Engineering 2x ConnectTech Advisor2x Connect
67Manish2xConnect - Solution to double productivity of B2B Demand and Lead Generation Service ProvidersFounder2x ConnectSenior Director / Director / Senior Manager Product DevelopmentQuinStreet
68JohnFounder CEO 3DOS.io - President 3D Control Systems - 3DPrinterOS⭐️ 🇺🇸The Future of Manufacturing is One Platform - DecentralizedFounder - President - Chief Architect - Chairman of the Board 3DPrinterOSTechnology Innovation Incubator Mentor CoachTehnopol
69AntonFounder CTO | Serial Entrepreneur | Angel Investor ⭐️ 🇺🇸 Advanced Manufacturing Cyber Security Cloud Computing Blockchain AITechnical Founder3DPrinterOSCTO co-founder
70Leonardo ECEO at 3DVESCEO3DVESAdministration Manager - Customer Service OperationsSeagate Technology
71Victoria L.Chief Executive OfficerChief Executive Officer3DVESDirector Of Business Development3DVES
72Peter D.CEO at 42 TechnologiesCEO42VISA Olympics VIP Hospitality Program Canada Olympic HousePyeongchang Organizing Committee for the 2018 Olympic & Paralympic Winter Games
73NickCTO @ 42 Technologies | Forbes 30 Under 30Founder & CTO42Software EngineerBenbria
74VenkyCEO and Founder at 4CRisk.aiCEO and Founder4CRisk.aiV.P of Professional ServicesMetricStream
75SupraCo-Founder and COO at 4CRisk.ai Inc.Co-Founder and COO4CRisk.aiDirector of GRC SolutionsMetricStream
76PatrickCTO at 4CRisk.aiCTO4CRisk.aiSoftware ArchitectAngi
1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D2:D3144Expression=ISNUMBER(MATCH(D2,COMPANY!$A:$A,0))textNO
C2:C3144Cell Valuecontains "chief operating officer"textNO
C2:C3144Cell Valuecontains "c.e.o."textNO
C2:C3144Cell Valuecontains "chief executive officer"textNO
C2:C3144Cell Valuecontains "chief technology officer"textNO
C2:C3144Cell Valuecontains "cto"textNO
C2:C3144Cell Valuecontains "coo"textNO
C2:C3144Cell Valuecontains "founder"textNO
C2:C3144Cell Valuecontains "ceo"textNO
 
Upvote 0
I don't know what's up @dave3009 & @Fluff

Tried to paste the same formula in "Use a formula to determine which cells to format" after highlighting the whole D column, like in the picture, and still got this error "there's a problem with this formula"


Loom_6gl2vJHbbwMouse_Highlight_OverlayLoom.jpg
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,850
Members
449,051
Latest member
excelquestion515

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