+ Reply to Thread
Results 1 to 4 of 4

How to count values depending on date data

  1. #1
    Forum Contributor juntjoo's Avatar
    Join Date
    02-29-2008
    Location
    Cape Coral, FL
    MS-Off Ver
    Excel 2010 14.04.4760.1000
    Posts
    468

    How to count values depending on date data

    So as you can see in the first column I have a count of things(mailings) that have an associated entry date and to the right I'm trying to create an ongoing count of the numbers under column A BUT dependent on the entry date (i.e. since last 7, 30, 90 days). Obviously SUM is the obvious solution for the "all time" count but now throwing in relative(to the associated entry date) conditions is where I'm stuck. How would we do this? Something along the lines of 'count column value under A so long as cell to right is within so many days of today'. Thanks
    Last edited by juntjoo; 01-03-2017 at 07:27 AM.

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: How to count values depending on date data

    Hi
    Replace D1 E1 and F1 by 7 30 and 90.
    Try this in D2 and copy forward
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor juntjoo's Avatar
    Join Date
    02-29-2008
    Location
    Cape Coral, FL
    MS-Off Ver
    Excel 2010 14.04.4760.1000
    Posts
    468

    Re: How to count values depending on date data

    Thanks. I'm trying to backwards engineer this now. How did you figure out the table number to put i front of its name like that? Or didn't you and when you selected the table/range excel put that i there? Thanks!


    Actually, I found this elsewhere =SUMIF($B:$B,">="&TODAY()-7,$A:$A) which also works but is much shorter. What is the extra code in yours for?
    Last edited by juntjoo; 01-04-2017 at 07:49 AM.
    Excel 1.0.1 (16.0.14326.20140) (Android)
    Excel 2010 14.04.4760.1000

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: How to count values depending on date data

    Hi

    There is no extra code. My formula is valid to 7, 30 and 90 days.
    Short? A:A has 1048576 rows.

+ 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. [SOLVED] Count consecutive values above or below 50 depending on the last value in the column
    By rainman01 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-08-2015, 03:13 PM
  2. count no. different values depending on another value
    By roseypinky in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-19-2012, 02:51 AM
  3. Count a cell depending on other values
    By budvegas in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-20-2012, 08:57 AM
  4. Replies: 16
    Last Post: 01-11-2012, 10:51 AM
  5. how to count cells depending on date ranges?
    By jgomez in forum Excel General
    Replies: 1
    Last Post: 07-20-2011, 04:40 PM
  6. Count values in one column depending on value in a second
    By genus in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-28-2008, 09:07 AM
  7. [SOLVED] Count values in rows depending on dates.
    By Qaspec in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-24-2005, 06:06 PM

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