+ Reply to Thread
Results 1 to 6 of 6

Multiple COUNTIFS formulas in one cell is not working.

  1. #1
    Registered User
    Join Date
    10-10-2017
    Location
    Manchester
    MS-Off Ver
    2016
    Posts
    6

    Multiple COUNTIFS formulas in one cell is not working.

    Hi guys,

    I've created a formula to find out how many bugs were logged in a system at a given date, the data in question is in a pivot table in a separate sheet.

    The COUNTIFS formulas work perfectly ok independently, however, when I combine them to match a new set of criteria, the first formula appears to be disregarded.

    This is the solution:

    =COUNTIFS(Pivot_Data[Created Date],">"&DATEVALUE("07/10/2017"),Pivot_Data[Created Date],"<"&(DATEVALUE("07/10/2017")+1))+COUNTIFS(Pivot_Data[State],"Active",Pivot_Data[Severity],"*1*")+COUNTIFS(Pivot_Data[State],"Proposed",Pivot_Data[Severity],"*1*")

    I would attach the workbook, but I am at work and unable to do so.

    I've searched everywhere online and I can't find anything that remotely represents this situation.

    If anyone could help or point me in the right direction it would be greatly appreciated.

    Thanks
    Last edited by Jriggerz; 10-10-2017 at 09:21 AM.

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Multiple COUNTIFS formulas in one cell is not working.

    without the data it is difficult. However if created date is a date and not a date/time > 07/10/2107 and < 08/10/2017 will return no dates! and so the count if will be 0

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Multiple COUNTIFS formulas in one cell is not working.

    I would think that needs to be all one countifs, not countifs+countifs+countifs
    And it seems you want an OR criteria on the [State] being Active OR Proposed

    Try
    =SUM(COUNTIFS(Pivot_Data[Created Date],">"&DATEVALUE("07/10/2017"),Pivot_Data[Created Date],"<"&(DATEVALUE("07/10/2017")+1),Pivot_Data[State],{"Active","Proposed"},Pivot_Data[Severity],"*1*"))

  4. #4
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Multiple COUNTIFS formulas in one cell is not working.

    Try this:
    Please Login or Register  to view this content.
    Last edited by leelnich; 10-10-2017 at 09:16 AM.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  5. #5
    Registered User
    Join Date
    10-10-2017
    Location
    Manchester
    MS-Off Ver
    2016
    Posts
    6

    Re: Multiple COUNTIFS formulas in one cell is not working.

    Jonmo1's solution works perfectly, thank you very much for your assistance! I never knew COUNTIFS could be used like this.. so much more simpler! Thanks again
    Last edited by Jriggerz; 10-10-2017 at 09:21 AM.

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Multiple COUNTIFS formulas in one cell is not working.

    You're welcome.

+ 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] COUNTIFS formula keeps counting blank cell with formulas.
    By Big.Moe in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-03-2017, 08:22 PM
  2. [SOLVED] Countifs formulas for multiple criteria
    By Kandy1084 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-11-2014, 10:58 PM
  3. Counts with multiple criteria, COUNTIFS not working
    By IbeforeV in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-01-2014, 01:22 PM
  4. Formulas, working out multiple figures
    By smetcalfeuk in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-04-2014, 07:29 AM
  5. [SOLVED] Working between multiple sheets with formulas and formatting
    By gz3s36 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-07-2014, 12:09 PM
  6. [SOLVED] countifs working on extended ranges and different sheets not working
    By etaf in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-18-2013, 02:23 PM
  7. countifs not working with cell reference
    By Trig79 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-18-2013, 07:07 AM

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