+ Reply to Thread
Results 1 to 5 of 5

How can i compare dates?

  1. #1
    Registered User
    Join Date
    03-09-2005
    Posts
    39

    How can i compare dates?

    hi all,

    I want to compare dates in a If statement:

    The logic is :

    E.g:

    If(date1=date2,positive action,negative action)

  2. #2
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    Can you give more details. maybe an example

    Mangesh

  3. #3
    Registered User
    Join Date
    03-09-2005
    Posts
    39
    like how to compare 2 dates:

    date in A1 cell=2/2/2005
    date in B1 cell=2/2/2005

    can i compare them this way:

    If a1=b1

  4. #4
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    Yes, you can.
    =If(a1=b1,"match","no match")

    or if you want to check if it matches todays date, then
    =If(a1=TODAY(),"match","no match")

    or some arbitrary date like 15 april 2005
    =If(a1=DATE(2005,4,15),"match","no match")


    - Mangesh

  5. #5
    Registered User
    Join Date
    03-09-2005
    Posts
    39
    Thanks a lot....

+ 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