+ Reply to Thread
Results 1 to 4 of 4

Compare columns

  1. #1
    Registered User
    Join Date
    05-23-2012
    Location
    Cumbria, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Compare columns

    Hi

    I have two columns of dates in say columnA & columnB totalling 320 rows. I need to compare the two columns row by row and count the total number of times the date in columnB is more recent than columnA

    Can anyone help me?

    Thanks
    Last edited by rhino335; 06-11-2012 at 11:12 AM.

  2. #2
    Forum Contributor
    Join Date
    06-23-2010
    Location
    Iowa, United States
    MS-Off Ver
    Excel 2007
    Posts
    145

    Re: Compare columns

    Hello rhino, welcome to the forum!

    How are we able to tell which data is more recent? Is your data simply dates? A little more info or even attaching your spreadsheet will help others help you.

    Steve
    A VBA novice, excited to learn!

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Compare columns

    Try

    =SUMPRODUCT(--($B$2:$B$300>$A$2:$A$300))
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    05-23-2012
    Location
    Cumbria, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Compare columns

    Steve

    Thanks for the prompt response. However, before I could get the info to you ChemistB answered the problem.

+ 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