+ Reply to Thread
Results 1 to 7 of 7

Conditional Formatting needs to ignore formula that outputs a blank value

  1. #1
    Registered User
    Join Date
    06-22-2011
    Location
    Boston, MA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Conditional Formatting needs to ignore formula that outputs a blank value

    I am trying to have a conditional format where if there is a value in cell A7 then C7 will be become highlighted yellow. The problem is that we made a change and the A7 value is now determined by a formula, even if the formula returns a blank the old conditional format we used thinks the formula is a value. Does anyone have any idea how to adjust or change the formula we were using? The old formula we are using is:

    =AND(NOT(ISBLANK(A7)),ISBLANK(C7))

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Conditional Formatting needs to ignore formula that outputs a blank value

    mpcollins,

    Attached is a sample workbook of what I think you described. Column C has the following conditional format formula applied to it:
    =AND(A1<>"",C1="")

    Hope that helps,
    ~tigeravatar
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-22-2011
    Location
    Boston, MA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Conditional Formatting needs to ignore formula that outputs a blank value

    Thanks for the quick response, that didn't seem to work. I attached the spreadsheet I'm working with. The VLookup I have in there won't link correctly to the propper table but I'm hoping this will give you a better idea what I'm dealing with. I have 2 different ways of formatting the VLookup in cells A8 and A9. Whatever one you think would be easier to work with is fine with me.

    thanks!
    Attached Files Attached Files

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Conditional Formatting needs to ignore formula that outputs a blank value

    mpcollins,

    The problem is that your VLOOKUP formulas don't return blank cells, they return a space. Instead of " " just use ""

    Example: =IF(ISBLANK(VLOOKUP(6,'T:\Path\[Filename.xlsx]Sheetname'!$A$5:$F$224,6,TRUE)),"", ...

    ~tigeravatar

  5. #5
    Registered User
    Join Date
    06-22-2011
    Location
    Boston, MA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Conditional Formatting needs to ignore formula that outputs a blank value

    Thanks for all your help, works like a charm now!

  6. #6
    Registered User
    Join Date
    07-30-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Conditional Formatting needs to ignore formula that outputs a blank value

    Im using formula: IF(LEN($AL5)>1,$R5,"")
    When I use conditional formatting to highlight given cells using(cell value >0), it highlights the blank cells.?

  7. #7
    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
    44,463

    Re: Conditional Formatting needs to ignore formula that outputs a blank value

    @gtd526 ...

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 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
    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


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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