+ Reply to Thread
Results 1 to 3 of 3

Compare two date columns

Hybrid View

plk Compare two date columns 10-25-2012, 05:05 AM
Deventus Re: Compare two date columns 10-25-2012, 05:37 AM
Fotis1991 Re: Compare two date columns 10-25-2012, 05:47 AM
  1. #1
    Registered User
    Join Date
    04-05-2012
    Location
    chennai
    MS-Off Ver
    Excel 2010
    Posts
    49

    Compare two date columns

    Hi all i need to compare two columns which has dates (1000 rows approx), and if they are equal then i need to get the count of rows in one cell, similary count of rows which are not equal in another cell, thanks in advance for your help.

    like if dates in column A and B matches then i need to get the count in C2

    If dates are not matching i need to get count in C3

  2. #2
    Registered User
    Join Date
    10-19-2012
    Location
    York
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    59

    Re: Compare two date columns

    hi
    I would use a couple of if statements, in column D
    =if(a2=B2,"yes","no")

    run that all the way down the side of the dates, then in C2 and C3 run a countif
    =countif(d1:d200,"=yes")
    =countif(d1:d200,"=no")

    Adi

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Compare two date columns

    Try

    =SUMPRODUCT(--(A1:A1000<>B1:B1000))

    =SUMPRODUCT(--(A1:A1000=B1:B1000))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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