+ Reply to Thread
Results 1 to 4 of 4

Conditional formatting in case of no date returned

  1. #1
    Registered User
    Join Date
    12-23-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    25

    Conditional formatting in case of no date returned

    Hi
    I have a Vlookup formula in Cell A1 which returns a date.
    I am working on conditional formatting. I am done with everything but, when the cell doesnot return any date.. I mean if the cell A1 is blank it must be displayed as red in E1.
    If i use Isblank in Condtional formatting it does not work, because eventhough the cell A1 is visible blank, since it has a formula it is ideally not blank. can you please suggest how to get color Red in E1 is A1 doesnot return a date.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Conditional formatting in case of no date returned

    Use COUNTBLANK which treats Null as Blank (unlike ISBLANK, COUNTA etc...)

    So Conditional Format rule of:

    =COUNTBLANK(A1)
    set to red

    it follows given values are otherwise numeric (we assume) you could also use either of: =A1="" ... or =ISTEXT(A1)

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Conditional formatting in case of no date returned

    i take the formula returns ""
    as in
    =IF(B1=1,TODAY(),"")
    then use
    =A1=""
    Last edited by martindwilson; 02-24-2010 at 05:47 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    12-23-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Conditional formatting in case of no date returned

    Hi
    Thank you Countblank has helped me...

+ 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