+ Reply to Thread
Results 1 to 4 of 4

how do I compare two dates?

  1. #1
    Registered User
    Join Date
    02-06-2006
    Posts
    19

    how do I compare two dates?

    OK -- I have two lists of dates, and I want to compare them & generate a result of '1' if they are different, a result of '0' if they are the same.

    For example:

    column A: -__-- column B:
    01/01/2005 --- 01/01/2005
    02/02/2005 --- 07/07/2001
    03/03/2005 --- 08/31/1976

    I'd like a formula that will compare these dates and generate the following:

    column C:
    0
    1
    1

    Thanks!

  2. #2
    Peo Sjoblom
    Guest

    Re: how do I compare two dates?

    =--(A1=B1)

    copy down


    --

    Regards,

    Peo Sjoblom

    http://nwexcelsolutions.com



    "SlipperyPete" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > OK -- I have two lists of dates, and I want to compare them & generate a
    > result of '1' if they are different, a result of '0' if they are the
    > same.
    >
    > For example:
    >
    > column A: column B:
    > 01/01/2005 01/01/2005
    > 02/02/2005 07/07/2001
    > 03/03/2005 08/31/1976
    >
    > I'd like a formula that will compare these dates and generate the
    > following:
    >
    > column C:
    > 0
    > 1
    > 1
    >
    > Thanks!
    >
    >
    > --
    > SlipperyPete
    > ------------------------------------------------------------------------
    > SlipperyPete's Profile:
    > http://www.excelforum.com/member.php...o&userid=31220
    > View this thread: http://www.excelforum.com/showthread...hreadid=534218
    >




  3. #3
    Domenic
    Guest

    Re: how do I compare two dates?

    Try...

    C1, copied down:

    =IF(A1<>B1,1,0)

    Hope this helps!

    In article <[email protected]>,
    SlipperyPete
    <[email protected]> wrote:

    > OK -- I have two lists of dates, and I want to compare them & generate a
    > result of '1' if they are different, a result of '0' if they are the
    > same.
    >
    > For example:
    >
    > column A: column B:
    > 01/01/2005 01/01/2005
    > 02/02/2005 07/07/2001
    > 03/03/2005 08/31/1976
    >
    > I'd like a formula that will compare these dates and generate the
    > following:
    >
    > column C:
    > 0
    > 1
    > 1
    >
    > Thanks!


  4. #4
    Registered User
    Join Date
    02-06-2006
    Posts
    19
    thanks!

    ended up using

    =--a1=b1

    to generate TRUE/FALSE

+ 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