+ Reply to Thread
Results 1 to 3 of 3

IF statement based on CELL fill or no fill

  1. #1
    Registered User
    Join Date
    08-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    1

    IF statement based on CELL fill or no fill

    Hello all,

    I’m having a hard time coming up with a specific line of code in my update macro.

    I want an IF statement that is true when the cell has no fill, but false if it has any color fill.

    This is what I have so far:

    Please Login or Register  to view this content.
    Using the current formula, the IF statement is always true even when there is a colored fill in the cell.
    BTW the fill is based on conditional formatting, don't know if that matters or not.

    Any help would be greatly appreciated.

    -Oli
    Last edited by Cutter; 08-27-2012 at 04:09 PM. Reason: Added code tags

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: IF statement based on CELL fill or no fill

    @ OliB

    Welcome to the forum.

    Please notice that code tags have been added to your post(s). The forum rules require them so please keep that in mind and add them yourself whenever showing code in any of your future posts. To see instructions for applying them, click on the Forum Rules button at top of the page and read Rule #3.
    Thanks.

  3. #3
    Valued Forum Contributor
    Join Date
    05-07-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    354

    Re: IF statement based on CELL fill or no fill

    >>BTW the fill is based on conditional formatting, don't know if that matters or not.
    It matters!

    take a look at the following link (Chip Pearson's site) for some idea on how to tackle this
    http://cpearson.com/excel/CFColors.htm
    Regards,
    Vandan

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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