+ Reply to Thread
Results 1 to 5 of 5

CountIfs Formula Help

  1. #1
    Registered User
    Join Date
    09-10-2017
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    63

    CountIfs Formula Help

    Hi All

    I am in need of help with a formula. I am trying to count the number of instances for each of the items in four individual 'Regional' tables and have that amount added up for an 'All Regions' Total.

    Using the category 3rd Party Host Connection Problem' in the below attachment as an exxample, I want to add up the number of times it occurs in each of the Regional tables (columns B, G, L and Q) and input that value into cell W32. A simple sum equation gets the desired result, but that presents a problem when I want to filter the data on that table and reorder from smallest to largest value for the purpose of putting into a chart. The data gets reordered but the category names stay in the same order (column U) distorting my data on the chart.

    The formula I tried (unsuccessfully) is as follows:

    =COUNTIFS($b$31:$b$40, U32, $g$31:$g$40, U32, $l$31:$l$40, U32, $q$31:$q$40, U32)

    Any help would be much appreciated! I hope that my description was clear -- please feel free to reach out with any questions.

    I have attached the spreadsheet below. The tab I am referring to is 'Excel Templates'.
    Attached Files Attached Files

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: CountIfs Formula Help

    is this what you are looking for?
    =SUMIF($A$32:$A$40,U32,$B$32:$B$40)+SUMIF($F$32:$F$40,U32,$G$32:$G$40)+SUMIF($K$32:$K$40,U32,$L$32:$L$40)+SUMIF($P$32:$P$40,U32,$Q$32:$Q$40)
    possibly done with a sumproduct but I didn't try it.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: CountIfs Formula Help

    COUNTIFS is the wrong function for this problem. COUNTIFS will count the number of times a value occurs. It looks like you are trying to get the sum of some numbers that correspond to another value. As near as I can figure you want this:

    =SUMIF($A$32:$A$40,U32,$B$32:$B$40)+SUMIF($F$32:$F$40,U32,$G$32:$G$40)+SUMIF($K$32:$K$40,U32,$L$32:$L$40)+SUMIF($P$32:$P$40,U32,$Q$32:$Q$40)
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: CountIfs Formula Help

    Hi...Wouldn't it be easier if you just create a pivot table from 'All Regions Incident Type'?

    This way, you can have the total of whatever Region (APAC, EMEA etc) you'd like by their categories.

  5. #5
    Registered User
    Join Date
    09-10-2017
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    63

    Re: CountIfs Formula Help

    Thanks to all who replied with help. I appreciate the quick replies and found what I was looking for.

    @6String - The SUMIF was exactly what I needed. Thanks alot!

    Thread is 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. Help with COUNTIFS formula
    By reneeg in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-23-2017, 02:13 AM
  2. [SOLVED] Sumproduct to replace countifs as countifs don't work on external source reference
    By KrishnaSagar in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-02-2017, 02:33 AM
  3. Help with a COUNTIFS formula
    By smkrokan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-16-2016, 04:13 PM
  4. Help with a countifs formula
    By rfatcheric in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-27-2015, 02:04 PM
  5. COUNTIFS Formula
    By spuri78 in forum Excel Formulas & Functions
    Replies: 69
    Last Post: 02-17-2015, 11:43 AM
  6. COUNTIFS OR...multiple countifs without duplication in the numbers
    By HooligaD in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-21-2012, 09:53 AM
  7. Replies: 0
    Last Post: 12-16-2011, 09:01 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