+ Reply to Thread
Results 1 to 6 of 6

help with a countifs statement

  1. #1
    Registered User
    Join Date
    11-19-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    3

    help with a countifs statement

    I have the following formula in a Spreadsheet I am using:

    =COUNTIFS('Incidents & Questions'!$A:$A,">="&'Incident Overview'!$E11,'Incidents & Questions'!$A:$A,"<"&'Incident Overview'!$E12,'Incidents & Questions'!$B:$B,'Incident Overview'!I$3,'Incidents & Questions'!$C:$C,"INCIDENT")

    I didn't write this formula, however I need to amend it due to added variables in the source data and include another count in the selection in addition to "INCIDENT".

    How do I amend the formula to add in the variable "Q UPGRADED TO I" so that the output counts and totals both INCIDENT and Q UPGRADED TO I?

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: help with a countifs statement

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever). Please don't attach a picture of an Excel sheet (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    11-19-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    3

    Re: help with a countifs statement

    Thanks for the reply. Due to the sensitive nature of the data and spreadsheet I am unable to upload an example of it as amending all the sensitive data fields would break the spreadsheet due to the other formatting that is present.

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: help with a countifs statement

    Try

    =SUM(COUNTIFS('Incidents & Questions'!$A:$A,">="&'Incident Overview'!$E11,'Incidents & Questions'!$A:$A,"<"&'Incident Overview'!$E12,'Incidents & Questions'!$B:$B,'Incident Overview'!I$3,'Incidents & Questions'!$C:$C,{"INCIDENT","Q UPGRADED TO I"})

  5. #5
    Registered User
    Join Date
    11-19-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    3

    Re: help with a countifs statement

    Quote Originally Posted by 63falcondude View Post
    Try

    =SUM(COUNTIFS('Incidents & Questions'!$A:$A,">="&'Incident Overview'!$E11,'Incidents & Questions'!$A:$A,"<"&'Incident Overview'!$E12,'Incidents & Questions'!$B:$B,'Incident Overview'!I$3,'Incidents & Questions'!$C:$C,{"INCIDENT","Q UPGRADED TO I"})
    That worked perfectly, thanks

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: help with a countifs statement

    You're welcome. Thanks for the rep!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. countifs and or statement
    By max8719 in forum Excel General
    Replies: 2
    Last Post: 11-05-2018, 09:53 AM
  2. [SOLVED] if statement with countifs statement with two variables
    By quentin5000 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-20-2018, 08:42 PM
  3. [SOLVED] Countifs statement help
    By Alaskan_grunt in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-05-2016, 09:39 PM
  4. Or within Countifs statement
    By blens1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-20-2014, 10:22 PM
  5. [SOLVED] help nesting OR statement into COUNTIFS statement
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-18-2014, 09:31 AM
  6. [SOLVED] =COUNTIFS statement
    By Glen- in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-09-2014, 10:49 AM
  7. Countifs Statement
    By turpink in forum Excel General
    Replies: 1
    Last Post: 09-12-2011, 01:01 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