+ Reply to Thread
Results 1 to 3 of 3

IF statement and dates

  1. #1
    Registered User
    Join Date
    04-07-2009
    Location
    Lakewood, Wa
    MS-Off Ver
    Excel 2007
    Posts
    39

    IF statement and dates

    Hi, I am trying to use an IF statement looking at a cell the is a date but am having trouble. Say cell C9 is formatted as a date and i want cell C11 to look at C9 and if it has a specific date then i want cell C11 to equal the contents of cell C10 otherwise keep cell C11 blank. Here is what i tried without success:

    =IF(C9=(9/1/09),C10,"")

    the date in cell C9 was 9/1/09 but the results are always a blank cell for C11.

    Any thoughts?

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: IF statement and dates

    Try:

    =IF(C9="9/1/09"+0,C10,"")

    or

    =IF(C9=Date(2009,9,1),C10,"") for (sep 1, 2009)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-07-2009
    Location
    Lakewood, Wa
    MS-Off Ver
    Excel 2007
    Posts
    39

    Thumbs up Re: IF statement and dates

    Thanks that worked great!!!!!

+ 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