+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Making a cell blank or show message

Hybrid View

  1. #1
    Registered User
    Join Date
    03-18-2009
    Location
    Lowestoft
    MS-Off Ver
    Excel 2007
    Posts
    5

    Making a cell blank or show message

    Hi, I am trying to make a cell show a message if the adjacent cells date is less than sixty days - the following works fine for that:

    =IF(Q11<=TODAY()+60,"Expires 2 month","")

    But what I want to do is for the cell to remain blank if the adjacent cell has no value in it - any thoughts?

    Cheers

    NSM
    Last edited by Northsea Medic; 03-22-2009 at 04:13 PM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Making a cell blank or show message

    Hi,

    first, test if there is a value in Q11, if not, return a blank, otherwise use the If statement you already have.

    =IF(ISBLANK(Q11),"",IF(Q11<=TODAY()+60,"Expires 2 month",""))

    hth

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

    Re: Making a cell blank or show message

    or

    =IF(AND(ISNUMBER(Q11),Q11<=TODAY()+60),"Expires 2 month","")

  4. #4
    Registered User
    Join Date
    03-18-2009
    Location
    Lowestoft
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Making a cell blank or show message

    Brilliant - thank you both for your help

+ 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