+ Reply to Thread
Results 1 to 4 of 4

Percentage of cells that meet certain criteria (logical test)

  1. #1
    Registered User
    Join Date
    12-10-2010
    Location
    San Diego, California
    MS-Off Ver
    Excel 2007
    Posts
    4

    Percentage of cells that meet certain criteria (logical test)

    From a list of dates, I am trying to determine from the list of dates, what percentage are true based on the logical test

    The logical test is (with D100 representing only one of the MANY cells that I need counted)

    =(IF($D100<DATE(YEAR(TODAY())-(1+(MONTH(TODAY())<10)),9,30),"TRUE","FALSE"))

    I have tried

    =COUNTIF(D88:D115,"(IF<DATE(YEAR(TODAY())-(1+MONTH(TODAY())<10)),9,30"))

    I'm not sure how to plug in a logical test into COUNTIF. If somebody has the answer, that would be great. Thank you.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Percentage of cells that meet certain criteria (logical test)

    Do you mean?

    =SUMPRODUCT(--(D88:D115<DATE(YEAR(TODAY())-(1+MONTH(TODAY())<10),9,30)))

    or if some of D88:D115 could contain blanks, then:

    =SUMPRODUCT(--(D88:D115<DATE(YEAR(TODAY())-(1+MONTH(TODAY())<10),9,30)),--(D88:D115<>""))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    12-10-2010
    Location
    San Diego, California
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Percentage of cells that meet certain criteria (logical test)

    For some reason it is adding all the dates up instead of just those prior to the date of the formula. Any ideas?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Percentage of cells that meet certain criteria (logical test)

    Are you sure the dates in column D are actual dates and not text strings looking like dates?

    Perhaps post your sample workbook, devoid of confidential info.

+ 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