• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

From Mitul - Highlight conditional formatting that exist in list 1 and list 2 - sample data |General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / From Mitul - Highlight conditional formatting that exist in list 1 and list 2 - sample data |General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe… From Mitul - Highlight condition…
sp_PrintTopic sp_TopicIcon
From Mitul - Highlight conditional formatting that exist in list 1 and list 2 - sample data
Avatar
MITUL PARIKH
Member
Members
Level 0
Forum Posts: 68
Member Since:
December 8, 2017
sp_UserOfflineSmall Offline
1
March 19, 2018 - 6:29 pm
sp_Permalink sp_Print sp_EditHistory
List 1 List 2
Highlight cells  That meet certain criteria Highlight 3 smallest values with criteria
Highlight  cells based on  the value of another cell Conditional formatting dates overlap
Highlight  values That Exist  in List1 , but not List 2 Conditional formatting gantt chart
Highlight values That Exist in List 1  and List 2 Conditional formatting gantt chart weekends
Highlight  Weekend dates Conditional formatting highlight target percentage
Highlight  Dates  between two Dates Find duplicate values in two columns
Highlight Dates on Due Dates Highlight approximate match lookup conditional formatting
Highlight Data based on Percentile Rank Highlight blank cells
Highlight statistical  outliers Highlight bottom values
  Highlight cells that begin with
  Highlight cells that contain
  Highlight cells that contain one of many
  Highlight  cells that end  with
  Highlight  cells that equal
  Highlight column differences
  Highlight data by quartile
  Highlight Dates between two Dates
  Highlight dates greater than
  Highlight  dates in same month and year
  Highlight  dates in Next N days
  Highlight Weekend Dates
  Highlight duplicate columns
  Highlight duplicate rows
  Highlight  duplicate values
Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 870
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
2
March 20, 2018 - 5:32 am
sp_Permalink sp_Print

Hi Mitul,

I am confused. What is your question?

Br,
Anders

Avatar
MITUL PARIKH
Member
Members
Level 0
Forum Posts: 68
Member Since:
December 8, 2017
sp_UserOfflineSmall Offline
3
March 20, 2018 - 9:39 pm
sp_Permalink sp_Print sp_EditHistory

Hi;  Anders;

Good Morning

This is Mitul.

How are you ?

Thank you  for sending me correct GETPIVOTDATA function and  article written by Mynda, which is very nice.

Now  in Highlight conditional formatting that exist in list 1 and list 2   above I like to learn what conditional formula to write to highlight  2 items 

 

Thank you very much.

Have a great day.

Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 870
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
4
March 21, 2018 - 8:19 am
sp_Permalink sp_Print

Hello Mitul,

I hope you're good.

The easiest way to compare two columns and highlight the cells where you have same data is to select the range of data you want to compare, in Conditional Formatting choose Highlight Cells Rules and pick Duplicate Values.

If you want to use a formula, use COUNTIF.

Let's say you have your data which you want to compare in columns A2:A11 and C2:C11, select the range of data in column A and go to Conditional Formatting --> New Rule --> Use a formula to determine which cells to format. Type in following formula:

=COUNTIF($C$2:$C$11,$A2)>0

Add the needed format to how the cell/-s are to be highlighted and save. Do the same for the next column, select the range of data in column C and create a new rule, now the formula is:

=COUNTIF($A$2:$AC$11,$C2)>0

If you want to highlight those cells that have individual values that do not exist in the other column, just change the greater than symbol (>) to equal symbol (=) and you are good to go. Below picture shows both of those Conditional Formattings. In column A I highlight in red those cells which have individual values, no duplicates exists in column C. In column C I highlight in green those cells where we have duplicates in column A.

Example1-1.JPGImage Enlarger

But the easiest way is to use Duplicate Values formatting rule, you can after all change so it also highlights the individual cells, where there are no duplicate values.

Example2-1.JPGImage Enlarger

I hope this answers your question.

Br,
Anders

sp_PlupAttachments Attachments
  • sp_PlupImage Example1-1.JPG (56 KB)
  • sp_PlupImage Example2-1.JPG (43 KB)
sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Tristram Sexton, Ben Hughes
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
yashal minahil
Oluwadamilola Ogun
Yannik H
dectator mang
Francis Drouillard
Orlando Inocente
Jovitha Clemence
Maloxat Axmatovna
Ricardo Freitas
Marko Meglic
Forum Stats:
Groups: 3
Forums: 24
Topics: 6200
Posts: 27182

 

Member Stats:
Guest Posters: 49
Members: 31861
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.