Closed Thread
Results 1 to 11 of 11

COUNTIF? (Count number of date values in a column more than 30 days old)

Hybrid View

kaeroku COUNTIF? (Count number of... 05-03-2012, 02:43 PM
NBVC Re: COUNTIF? (Count number... 05-03-2012, 03:10 PM
kaeroku Re: COUNTIF? (Count number... 05-03-2012, 03:16 PM
Bob Phillips Re: COUNTIF? (Count number... 05-03-2012, 03:13 PM
kaeroku Re: COUNTIF? (Count number... 05-03-2012, 03:24 PM
NBVC Re: COUNTIF? (Count number... 05-03-2012, 03:28 PM
kaeroku Re: COUNTIF? (Count number... 05-03-2012, 03:32 PM
Bob Phillips Re: COUNTIF? (Count number... 05-03-2012, 05:48 PM
kaeroku Re: COUNTIF? (Count number... 05-04-2012, 07:02 AM
Joe.Mintsa Re: COUNTIF? (Count number... 01-03-2021, 06:22 PM
AliGW Re: COUNTIF? (Count number... 01-03-2021, 06:24 PM
  1. #1
    Registered User
    Join Date
    04-26-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: COUNTIF? (Count number of date values in a column more than 30 days old)

    Quote Originally Posted by NBVC View Post
    Maybe these?

    =SUMPRODUCT(--(TODAY()-$F2:$F$100>=30))

    =SUMPRODUCT(--(TODAY()-$F1:$F$100<=3),--(TODAY()-$F1:$F$100>=1))

    using defined ranges instead of whole ranges is more effiecient....
    When I copy your formulas into a cell in my sheet, the first one returns the value "99" and does not change when I add date values within the intended range. However, when I add FUTURE dates, it starts counting down from 99... not the desired functionality here.

    The second formula gives a #value! error, which I can't debug.

    In any case, I see two probable issues: one, I'm using $F:$F because my data fluctuates between 0 and 1000 values, but can exceed that number... in theory I could have hundreds of thousands of values, though if that ever happens someone else will be doing my job.
    Secondly, I'm not sure what Sumproduct actually does. I'm using countif because I want to determine how many tasks there are, and I know CountIF counts cells with numeric values within the range specified (and I thought, based on conditions set for it.) I don't want it to SUM my dates within the range, I want it to count the number of cells containing date values.


    Quote Originally Posted by Bob Phillips View Post
    2. =countif($f:$f,"<="&today()-30)

    3. =countif($f:$f,today()-if(weekday(today())=2,3,1))
    Your 2. works great, thank you.

    Your 3. Returns 0 no matter what values I put in the cells. I changed weekday(today())=5, so that it would accurately reflect the conditions of today (actual) for testing purposes, rather than the intended use of the formula (which would detect Mondays and count incoming tasks since Friday)
    Last edited by kaeroku; 05-03-2012 at 03:19 PM.

Closed Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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