Closed Thread
Results 1 to 11 of 11

Highlight all duplicate cells ignoring blank cells

  1. #1
    Forum Contributor
    Join Date
    02-13-2016
    Location
    MUMBAI
    MS-Off Ver
    Microsoft 365
    Posts
    180

    Highlight all duplicate cells ignoring blank cells

    Hii...

    I wants to highlight all duplicate values in a column ignoring blank cells or cells containing zero..Tried conditional formatting>Highlight duplicate values but it also highlight all blanks/zero value cells as it considers them to be all duplicates...what is the solution?

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Highlight all duplicate cells ignoring blank cells

    Hi,
    Change the conditional format formula and add the condition if not "" and if <> 0
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Contributor
    Join Date
    02-13-2016
    Location
    MUMBAI
    MS-Off Ver
    Microsoft 365
    Posts
    180

    Re: Highlight all duplicate cells ignoring blank cells

    Hii..

    I have not used formula in conditional formatting to highlight duplicates..its a inbuilt option in conditional formatting to do the same..So how I can use condition if not "" and if <> 0 while highlighting duplicates only..??

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Highlight all duplicate cells ignoring blank cells

    I know that's a built in option but then you use the option with a formula
    I would expect you know that, take a look here
    https://support.office.com/en-us/art...b-f1951ff89d7f
    You will never learn if you don't try
    We can always help if you get stuck, but you will remember it better if you resolve it yourself

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Highlight all duplicate cells ignoring blank cells

    See the attached sheet. I used this formula:

    =COUNTIFS(A:A,A1,A:A,"<>0")>=2

    and applied it to the light grey cells in A1:A20. See if it does what you want.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  6. #6
    Registered User
    Join Date
    03-04-2021
    Location
    Mpls MN
    MS-Off Ver
    Excel 2016
    Posts
    1

    Re: Highlight all duplicate cells ignoring blank cells

    Here is how I made Excel duplicate check ignore blank cells. It also
    works for ignoring pretty much ANY type of cell value you want to ignore.

    This example shows how to make it ignore blank cells:
    1. Select the range you wish to highlite dupes, and make the simple dupe rule as usual.
    2. Select the same range, and select "Conditional Formatting > Manage Rules".
    3. Select "New Rule > Use a formula ...".
    4. If (for example) your selected range is "$C$3:$C$12" enter this formula: =C3=""
    and then hit "Enter" (you are done! Leave formatting unset!)
    5. The new rule will be placed above your older (check duplicate) rule.
    Select the "Stop if True" check box to the far right of the new rule.
    6. That's it! Done. If the cell is blank, the "check duplicate" rule is ignored.

  7. #7
    Registered User
    Join Date
    04-30-2021
    Location
    Winnipeg, Manitoba
    MS-Off Ver
    2019
    Posts
    1

    Re: Highlight all duplicate cells ignoring blank cells

    1. Highlight all duplicates as you normally would
    2. Create a new rule to format only cells that contain blanks and apply no formatting to these cells
    3. Go to manage rules and for the blanks, check off "Stop if true"
    Attached Images Attached Images

  8. #8
    Registered User
    Join Date
    01-09-2024
    Location
    London
    MS-Off Ver
    Windows 11
    Posts
    2

    Thumbs up Re: Highlight all duplicate cells ignoring blank cells

    Yay! Just solved this too.

    First: Select the column, then go to conditional formatting and select: Format only cells that contain > then choose Blanks (no format set).
    Then: Create a new condition back in conditional formatting and select: Format only unique or duplicate values > then choose duplicate (choose the format u want say background yellow)
    Finally (very important): Tick the "Stop IF True" next to the first condition: Cell contains a blank value

    Hope this helps you too! Let me know

  9. #9
    Registered User
    Join Date
    01-09-2024
    Location
    London
    MS-Off Ver
    Windows 11
    Posts
    2

    Thumbs up Re: Highlight all duplicate cells ignoring blank cells

    Re: Highlight all duplicate cells ignoring blank cells

    Yay
    Last edited by CharmedRose; 01-09-2024 at 04:00 PM. Reason: duplicate

  10. #10
    Registered User
    Join Date
    03-05-2024
    Location
    Ohio, US
    MS-Off Ver
    Version 16
    Posts
    13

    Re: Highlight all duplicate cells ignoring blank cells

    All,

    I have gone through this whole thread and tried various ways of doing this. I have six columns that I need formatted with duplicates being highlighted.
    Every time I add conditional formatting the duplicates highlight as well seemingly no matter what I do.

    Help would be much appreciated.
    I attached the sheet with some example data on it.
    Any duplicate numbers in columns G,I,K,H,P,R need highlighted.

    Thanks in advance.

    PS
    I do not post very often, I do believe I have followed all rules and guidelines but please let me know if I need to fix anything.
    Attached Files Attached Files

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,284

    Re: Highlight all duplicate cells ignoring blank cells

    Administrative Note:

    We are happy to help, however whilst you feel your request is similar or even the same as this thread, we have a rule that you open your own thread on the issue and do not piggy back another member's thread.

    Please see Forum Rule #1 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] shuffle names in cells, ignoring blank cells, macro
    By NAikenhead in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-14-2018, 03:40 PM
  2. [SOLVED] How to count all of duplicate value by ignoring blank cells?
    By putritersenyum in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-30-2017, 12:31 PM
  3. Replies: 3
    Last Post: 07-24-2017, 01:41 PM
  4. [SOLVED] Rank string ignoring blank cells and o value cells
    By BRISBANEBOB in forum Excel General
    Replies: 3
    Last Post: 03-02-2014, 12:56 AM
  5. Replies: 5
    Last Post: 05-18-2013, 07:49 PM
  6. Replies: 5
    Last Post: 01-24-2013, 06:29 AM
  7. Ignoring blank cells
    By reaney10 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-18-2012, 02:49 PM

Tags for this Thread

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