+ Reply to Thread
Results 1 to 9 of 9

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,900

    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,900

    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 2403
    Posts
    43,959

    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  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

+ 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. [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