+ Reply to Thread
Results 1 to 4 of 4

True false statement with dates

  1. #1
    Registered User
    Join Date
    10-17-2011
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    6

    True false statement with dates

    Probably a novice issue, but I cannot figure out how to do a true/false if/then statement.

    I want a formula that for cell C3 says if cell H3 (in a different worksheet) has a date in it, then display Yes, if there is nothing in it, display No.

    I have tried =IF('Participant Overview'!H3, "Yes", "No") thinking a logical argument would work that if there was something in the cell it would equal true and false would be nothing in the cell. However, I get No displayed no matter what is in the H3 cell.

    Thanks!
    Last edited by hrclark; 10-18-2011 at 11:42 AM.

  2. #2
    Registered User
    Join Date
    10-17-2011
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    6

    Exclamation Re: True false statement with dates

    I have now tried this to no avail:

    =(DATE('Participant Overview'!H3), "Yes"), (ISBLANK('Participant Overview'!H3),"No")

    Any ideas?

  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: True false statement with dates

    if you are not having anything else in those cells other than dates you can test with =isnumber()
    IF(isnumber('Participant Overview'!H3), "Yes", "No")
    to cater for zeros you could use
    IF(and(isnumber('Participant Overview'!H3),'Participant Overview'!H3>0), "Yes", "No")
    "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
    10-17-2011
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: True false statement with dates

    That worked! Thanks so much!

+ 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