+ Reply to Thread
Results 1 to 4 of 4

Help with Countif formula

  1. #1
    Registered User
    Join Date
    01-18-2019
    Location
    Houston, Texas
    MS-Off Ver
    1812
    Posts
    16

    Help with Countif formula

    Dates are in Row B1:NC1
    Incident Type are in Row B2:NC2

    I want to able to count the number of incidents in the last 7 and last 30 days

    Current equation =COUNTIFS(B1:NC1,">"&TODAY()-7, B2:NC2.NR2)


    Cheers

    Edgar

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Help with Countif formula

    Are the dates consecutive days, or some other series like weekly for instance?
    And are there dates into the future. If so what do you mean by the 'LAST' 7/30 days. The last ones listed or the last counting back from TODAY which would not be the last listed cell.

    If the latter and you want the last 7/30 days up until today then
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    change the -7 to -30 for the last 30 days

    If you just want the last 7/30 days listed then

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    change the -6 & 7 to -29 & 30 for the last 30 days
    Last edited by Richard Buttrey; 02-07-2020 at 01:05 PM.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    01-18-2019
    Location
    Houston, Texas
    MS-Off Ver
    1812
    Posts
    16

    Re: Help with Countif formula

    dates are consecutive full year

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Help with Countif formula

    ...see my last post which I edited to include the formulae.

+ 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] formula to identify the unique code after filtration using countif or other formula
    By felixpanganiban in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-27-2019, 01:25 PM
  2. [SOLVED] COUNTIF formula where part of the range reference needs to use the result of a formula
    By zookeepertx in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 11-09-2018, 05:39 PM
  3. Adding a COUNTIF function to an existing IF AND COUNTIF Formula...
    By Ourkid123uk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-24-2018, 10:09 AM
  4. Assistance with CountIF formula and additional formula conditions
    By solios in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-18-2016, 01:46 PM
  5. Faster if/countif formula for flagging uniques - countif too slow
    By Speshul in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-19-2015, 01:44 PM
  6. [SOLVED] =Subtotal(countif,Range); Subtotal and countif in 1 formula [SOLVED]
    By thomas.mapua in forum Excel General
    Replies: 5
    Last Post: 01-06-2012, 11:33 AM
  7. Adding a CountIF to a formula that is already Countif
    By Cmorgan in forum Excel General
    Replies: 4
    Last Post: 06-01-2011, 09:34 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