+ Reply to Thread
Results 1 to 3 of 3

Count cells depends on date values

  1. #1
    Registered User
    Join Date
    09-21-2013
    Location
    chennai,India
    MS-Off Ver
    Excel 2010
    Posts
    75

    Count cells depends on date values

    Hi All,

    I have two columns named "Date" and "Result"

    Date is nothing but calender date. ex: 9/11/2013
    Result columnn holds only yes or no values . ex: Yes

    In my third column i want to know how many "yes" values are there in column "Result" between two dates(date from column date )

    ex: count Yes:<value> between 9/11/2013 and 11/11/2013.

    Is there anyway to get it.

    Thanks in Advance.

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

    Re: Count cells depends on date values

    hi there. try:
    =COUNTIFS(A$2:A$21,">="&--"9nov2013",A2:A21,"<="&--"11nov2013",B2:B21,"yes")
    or:
    =COUNTIFS(A$2:A$21,">="&DATE(2013,11,9),A2:A21,"<="&DATE(2013,11,11),B2:B21,"yes")
    or type 9nov2013 in say D1 & 11nov2013 in say E1
    =COUNTIFS(A$2:A$21,">="&D1,A2:A21,"<="&E1,B2:B21,"yes")

    Edit:
    assumption is A2:A21 contains Date & B2:B21 contains Results

    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
    09-21-2013
    Location
    chennai,India
    MS-Off Ver
    Excel 2010
    Posts
    75

    Re: Count cells depends on date values

    Hi benishriyo,

    Wow, its working great..
    Thank you so much for your timely response...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. help on vba how to change code to link closed wb
    By johnodys in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2013, 10:23 PM
  2. SUMIFS statement where the returned value depends on Date
    By Joe O Ceadaigh in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-05-2012, 05:51 PM
  3. value of 1 cell depends on the values of 2 other cells
    By valkie in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-12-2012, 05:38 PM
  4. Excel 2007 : Count non-blanks cells with date values
    By paulhk88 in forum Excel General
    Replies: 2
    Last Post: 11-07-2011, 01:40 AM
  5. How do i count date cells without duplicate values in excel?
    By Vasanth Kumar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-21-2006, 09:05 AM

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