+ Reply to Thread
Results 1 to 6 of 6

Eliminating blanks from conditional formatting in a range

  1. #1
    Registered User
    Join Date
    04-26-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    31

    Eliminating blanks from conditional formatting in a range

    Hi All, I have a problem which you may be able to help me with, the code below is part of a macro which sorts staff available on a given day in a roster, it is designed to ensure that I don't have someone on leave and on duty at he same time etc. However when I run the macro all blank cells in the range are identified as duplicates. Is there a way to eliminate blanks from the conditional formatting? Any suggestions would be welcome. Thanks in advance. Ed




    Please Login or Register  to view this content.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,359

    Re: Eliminating blanks from conditional formatting in a range

    Try:

    Please Login or Register  to view this content.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    04-26-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Eliminating blanks from conditional formatting in a range

    Thanks TMS for your suggestion, however, while it eliminates the blank cells from formatting it also seems to remove conditional formatting from all other cells, e.g. it will not highlight two identical names Ed.

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,953

    Re: Eliminating blanks from conditional formatting in a range

    Maybe:
    Please Login or Register  to view this content.
    Ben Van Johnson

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,359

    Re: Eliminating blanks from conditional formatting in a range

    I went with the relative B7 because that's what's being used in the existing formula.

    Maybe upload a sample workbook.

    Regards, TMS

  6. #6
    Registered User
    Join Date
    04-26-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Eliminating blanks from conditional formatting in a range

    I've sorted a workaround by nominating the interior cell color tas o (no fill), so as there is no text in the blanks I can make duplicate text a different color and add strikethrough which is fine. Thanks for your time.

+ 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. Conditional formatting and blanks
    By stellaselectxi in forum Excel General
    Replies: 13
    Last Post: 12-30-2013, 07:09 AM
  2. Conditional Formatting skipping blanks
    By hanjimono in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-13-2013, 12:08 AM
  3. Lists eliminating the blanks
    By mjhopler in forum Excel General
    Replies: 2
    Last Post: 05-27-2011, 02:17 PM
  4. Linking Lists and Eliminating Blanks
    By hgb in forum Excel General
    Replies: 1
    Last Post: 04-27-2011, 01:31 PM
  5. Conditional formatting : Zeroes and blanks
    By tonywig in forum Excel General
    Replies: 3
    Last Post: 01-03-2008, 09:37 AM

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