+ Reply to Thread
Results 1 to 8 of 8

Highlight duplicate values in multiple sheets

  1. #1
    Registered User
    Join Date
    05-22-2023
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    4

    Highlight duplicate values in multiple sheets

    I need to highlight duplicate items in column A in multiple sheets in Excel but I don't need to highlight duplicate items with ***'y Ref "N/A" given in column B. File attached

    Sheet 1
    A B
    Item ***'y Ref
    4238R093 65
    4238R094 66
    4238R095 67
    60MK250 N/A
    4238R097 69
    4238R098 70
    4238R099 71
    4238R100 72
    50MK250 N/A
    4238R102 74

    Sheet 2
    Item ***'y Ref.
    60MK250 N/A
    5238R094 81
    4238R094 82
    5238R096 83
    5238R097 84
    5238R098 85
    4238R098 86
    5238R100 87
    5238R101 88
    5238R102 89

    Sheet 3
    Item ***'y Ref.
    6238R093 90
    6238R094 91
    50MK250 N/A
    6238R096 93
    6238R097 94
    4238R098 95
    6238R099 96
    6238R100 97
    60MK250 N/A
    6238R102 99

    Sheet 4
    Item ***'y Ref.
    7238R093 100
    7238R094 101
    7238R095 102
    4238R098 103
    7238R097 104
    7238R098 105
    4238R094 106
    7238R100 107
    50MK250 N/A
    7238R102 109
    Attached Files Attached Files
    Last edited by Iftikhar Arain; 05-22-2023 at 01:08 PM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Highlight duplicate values in multiple sheets

    I could only thing of getting all the cells data in one column, then counting the duplicates.

    Please Login or Register  to view this content.
    Looking forward to seeing the array experts solutions
    Last edited by davesexcel; 05-23-2023 at 09:41 AM.

  3. #3
    Registered User
    Join Date
    05-22-2023
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Highlight duplicate values in multiple sheets

    Hi Davesexcel,
    Thanks for looking on above problem and created a code. Unfortunately it doesn't solve the issue. When code show any duplicate item by highlighting in yellow colour and if we change this item, the yellow highlight colour doesn't go. We can only get know about duplicate items once the code is run.
    I have used conditional formatting and you can see in attached file No. 2 that if we enter a duplicate item it gets highlighted immediately and we can change instantly. I know it's more work to create conditional formatting in each sheet for all sheets. Also, there could be an issue with using too many conditional formatting's if their order of precedence for evaluation is changed. That's why I am looking to find if we can use only one formula for highlighting duplicate items in all sheets. I am not sure if it is possible to use a nested formula of COUNTIF with "AND" condition.
    Capture.JPG

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Highlight duplicate values in multiple sheets

    If you would like one conditional formatting rule per sheet try the following for Sheet 1:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    For Sheet 2 the formula would need to change to read:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Similar changes would be needed for sheets 3:4.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    05-22-2023
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Highlight duplicate values in multiple sheets

    Thanks for your help and much appreciated. That's the formula with "AND" condition I was looking for. I have used above formula in all sheets and it work fine. Thanks again.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Highlight duplicate values in multiple sheets

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Highlight duplicate values in multiple sheets

    You're Welcome and thank you for the feedback. I hope that you have a blessed day.

  8. #8
    Registered User
    Join Date
    05-22-2023
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Highlight duplicate values in multiple sheets

    Thanks JeteMc. I'll request for another help in few days.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 05-11-2023, 02:01 AM
  2. Highlight based on duplicate values over several sheets?
    By Moonlit Shadow in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-07-2022, 10:52 AM
  3. Replies: 2
    Last Post: 05-19-2021, 10:07 AM
  4. [SOLVED] highlight duplicate values on multiple sheets in a workbook
    By Coventry G in forum Excel General
    Replies: 3
    Last Post: 10-07-2020, 08:30 AM
  5. Highlight duplicate values on multiple sheets
    By Justmegan93 in forum Excel General
    Replies: 1
    Last Post: 07-02-2015, 06:04 AM
  6. Replies: 8
    Last Post: 08-23-2013, 03:57 PM
  7. Highlight duplicate entries from multiple sheets
    By alinpion in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-17-2011, 06:22 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1