+ Reply to Thread
Results 1 to 5 of 5

Countifs between dates

  1. #1
    Registered User
    Join Date
    03-07-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    1

    Countifs between dates

    The diffent items I have are as follow:
    -F-Phase the item falls under
    -K-Phase Item must fall under
    -AX-Approval Report Number
    -AY-Approval Report Date


    =COUNTIFS('Proj Data'!$F$9:$F$4123,'Proj Data'!$K$1,'Proj Data'!AX9:AX4123,"<>",'Proj Data'!AY9:AY4123,">="&DATE(2012,3,1))

    Currently the formula only count the items after the listed date.

    I need to update the formula to count the approvals between two different dates as I need to report p/quarter.

    Quarter 1: 1 March - 31 May
    Quarter 2: 1 June - 31 August
    Quarter 3: 1 September - 31 November
    Quarter 4: 1 December - 29 February

    A solution to my problem or a new formula will be much appreciated!

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Countifs between dates

    You can add a new criterion for the end date, e.g. for quarter 1

    =COUNTIFS('Proj Data'!$F$9:$F$4123,'Proj Data'!$K$1,'Proj Data'!AX9:AX4123,"<>",'Proj Data'!AY9:AY4123,">="&DATE(2012,3,1),'Proj Data'!AY9:AY4123,"<"&DATE(2012,6,1))
    Audere est facere

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,458

    Re: Countifs between dates

    =COUNTIFS('Proj Data'!$F$9:$F$4123,'Proj Data'!$K$1,'Proj Data'!AX9:AX4123,"<>",'Proj Data'!AY9:AY4123,">="&DATE(2012,3,1),'Proj Data'!AY9:AY4123,"<"&DATE(2012,6,1))

    What does the highlighted part mean?

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Countifs between dates

    In my suggested formula I just replicated that from Hleroux's original....but using "<>" includes rows that are not blank in column AX

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,458

    Re: Countifs between dates

    Never seen that syntax before - I'll give it a try

+ 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