+ Reply to Thread
Results 1 to 3 of 3

Date constant doesn't work?

  1. #1
    Registered User
    Join Date
    01-29-2009
    Location
    St Louis
    MS-Off Ver
    Excel 2007
    Posts
    1

    Date constant doesn't work?

    I can't use a date constant on a formula.
    For example these value and formulas in the cells A1:A3:
    10/5/2009
    =A1>9/4/2008
    =A1>11/6/2010
    Show these results:
    10/5/2009
    TRUE
    TRUE
    Why isn't A3 FALSE?

    Thanks,
    Stefano
    Attached Files Attached Files

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

    Re: Date constant doesn't work?

    Try

    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.

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

    Re: Date constant doesn't work?

    Written that way, Excel sees the dates as actual arithmetic ie. 11 divided by 4 divided by 2008

    to convert you could make it a text string and add 0 to actually convert it to a date serial number

    e.g.

    =A1>"9/4/2008"+0

    or use Date() function

    =A1>Date(2008,9,4)
    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.

+ 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