+ Reply to Thread
Results 1 to 3 of 3

Count rows based on calculation with their columns

  1. #1
    Registered User
    Join Date
    12-19-2012
    Location
    Hungary
    MS-Off Ver
    Excel 2010
    Posts
    2

    Count rows based on calculation with their columns

    Hi,

    I have 2 columns of dates. In column A a startdate and in column B an enddate and I have to count those rows in which the difference between the 2 is say 100 days.

    Naturally I can fill a 3rd column with the difference between the 2 dates and use a very simple formula to count those with a value of 100.
    I don't want to do that.

    I'm not exactly sure whether it's possible to do it without an explicit helpcolumn, but I'd expect it not growing up with Excel exactly.
    In any case, thanks for any help / tips in advance!

    matyicsapo

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Count rows based on calculation with their columns

    hi matyicsapo, welcome to the forum. assuming your data is in A1:B10, try:
    =SUMPRODUCT(--(B1:B10-A1:A10=100))

    if you are looking for greater than or equals to 100, then:
    =SUMPRODUCT(--(B1:B10-A1:A10>=100))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    12-19-2012
    Location
    Hungary
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Count rows based on calculation with their columns

    Great! Thank you very much! Now I finally understand such formulas too :D

+ 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