+ Reply to Thread
Results 1 to 4 of 4

Formula to calculate different dates - Sumif or countif?

  1. #1
    Registered User
    Join Date
    04-06-2009
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    7

    Exclamation Formula to calculate different dates - Sumif or countif?

    Hi there

    A question on how can I get a formula calculate the following question for me.

    What I want is to count all these finish date that isn't the same as the start date. Then sum up the number of gadgets that doesn't match.

    I tried to use countif formula but for whatever reason it won't recognise the difference between the dates.

    Start Date Finish Date
    26/11/2009 27/11/2009

    Help!

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Formula to calculate different dates - Sumif or countif?

    Hi harryhu,

    I don't understand what you mean by "gadgets that doesn't match" (you didn't provide a sample spreadsheet), but this formula will give you the count of non-matching dates in your list:

    Please Login or Register  to view this content.
    Just adjust the ranges as required.

    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Formula to calculate different dates - Sumif or countif?

    ConneXionLost, what is the purpose of making sure A > 0? If it is blank, then there would logically be no finish date, meaning B would be blank and so would equal A, which would cause Sumproduct to ignore it.

    Harryhu, if I understand correctly, you want to sum the gadgets that took more than a day to make. If those are in C, then use =SUMPRODUCT(--(A2:A100<B2:B100),C2:C100)

  4. #4
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Formula to calculate different dates - Sumif or countif?

    Hi darkyam,

    You're right, I had originally written the formula to count the dates that matched, and required a way to eliminate the blank rows (A>0). Just before posting, I realized the OP wanted the opposite, so I changed the "=" to "<>" but forgot to remove the A>0.

    Cheers,

+ 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