+ Reply to Thread
Results 1 to 14 of 14

Sum and Countifs with multiple Criteria problem

  1. #1
    Registered User
    Join Date
    04-08-2020
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    7

    Sum and Countifs with multiple Criteria problem

    Hi All,

    Can anyone to help me to check what is wrong with my formula, I want to get the exact count of tested to the Step Counter Tab (column Total per Resource). Unfortunately, I am not getting the same total count in total per resource and tested. I am using below formula

    Please see the screenshots the results from excel.

    =SUM(COUNTIFS('MDD_Activity v.02'!$O:$O,'Step Counter'!$A2,'MDD_Activity v.02'!$P:$P,'Step Counter'!B$1,'MDD_Activity v.02'!$K:$K,{"Passed";"Failed";"Blocked"}),COUNTIFS(MCIv3.1!$O:$O,'Step Counter'!$A2,MCIv3.1!$P:$P,'Step Counter'!B$1,MCIv3.1!$K:$K,{"Passed";"Failed";"Blocked"}),COUNTIFS('General Features'!$O:$O,'Step Counter'!$A2,'General Features'!$P:$P,'Step Counter'!B$1,'General Features'!$K:$K,{"Passed";"Failed";"Blocked"}), COUNTIFS('MDD_Dining v.01'!$O:$O,'Step Counter'!$A2,'MDD_Dining v.01'!$P:$P,'Step Counter'!B$1,'MDD_Dining v.01'!$K:$K,{"Passed";"Failed";"Blocked"}),COUNTIFS('Web Check-in'!$N:$N,'Step Counter'!$A2,'Web Check-in'!$O:$O,'Step Counter'!B$1,'Web Check-in'!$J:$J,{"Passed";"Failed";"Blocked"}),COUNTIFS('MDD_BarAndLounge v.01'!$O:$O,'Step Counter'!$A2,'MDD_BarAndLounge v.01'!$P:$P,'Step Counter'!B$1,'MDD_BarAndLounge v.01'!$K:$K,{"Passed";"Failed";"Blocked"}),COUNTIFS('Login v2.1'!$O:$O,'Step Counter'!$A2,'Login v2.1'!$P:$P,'Step Counter'!B$1,'Login v2.1'!$K:$K,{"Passed";"Failed";"Blocked"}),COUNTIFS('DreamElite v3.1'!$O:$O,'Step Counter'!$A2,'DreamElite v3.1'!$P:$P,'Step Counter'!B$1,'DreamElite v3.1'!$K:$K,{"Passed";"Failed";"Blocked"}),COUNTIFS('MMB v.01'!$O:$O,'Step Counter'!$A2,'MMB v.01'!$P:$P,'Step Counter'!B$1,'MMB v.01'!$K:$K,{"Passed";"Failed";"Blocked"}),COUNTIFS('Admin Portal'!$O:$O,'Step Counter'!$A2,'Admin Portal'!$P:$P,'Step Counter'!B$1,'Admin Portal'!$K:$K,{"Passed";"Failed";"Blocked"}),COUNTIFS('VC VK vTest Summary Tab.jpg2.3'!$O:$O,'Step Counter'!$A2,'VC VK v2.3'!$P:$P,'Step Counter'!B$1,'VC VK v2.3'!$K:$K,{"Passed";"Failed";"Blocked"}), COUNTIFS('MDD_Facilities v.02'!$O:$O,'Step Counter'!$A2,'MDD_Facilities v.02'!$P:$P,'Step Counter'!B$1,'MDD_Facilities v.02'!$K:$K,{"Passed";"Failed";"Blocked"}),COUNTIFS('MDD_iCafe v.01'!$O:$O,'Step Counter'!$A2,'MDD_iCafe v.01'!$P:$P,'Step Counter'!B$1,'MDD_iCafe v.01'!$K:$K,{"Passed";"Failed";"Blocked"}),COUNTIFS('MDD_Shorex v.01'!$O:$O,'Step Counter'!$A2,'MDD_Shorex v.01'!$P:$P,'Step Counter'!B$1,'MDD_Shorex v.01'!$K:$K,{"Passed";"Failed";"Blocked"}),COUNTIFS('MDD_Casino v.01'!$O:$O,'Step Counter'!$A2,'MDD_Casino v.01'!$P:$P,'Step Counter'!B$1,'MDD_Casino v.01'!$K:$K,{"Passed";"Failed";"Blocked"}),COUNTIFS('MDD_MyWallet v.01'!$O:$O,'Step Counter'!$A2,'MDD_MyWallet v.01'!$P:$P,'Step Counter'!B$1,'MDD_MyWallet v.01'!$K:$K,{"Passed";"Failed";"Blocked"}))Step Counter Tab.jpg

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

    Re: Sum and Countifs with multiple Criteria problem

    Administrative note

    Welcome to the forum

    in your haste to solve your problem, you probably missed the yellow banner advising how to get answers faster by posting a sheet ?

    Please take a moment to read it and attach a sheet accordingly.

    Thanks you for helping us help you

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

    Re: Sum and Countifs with multiple Criteria problem

    Administrative note
    Please update your profile as necessary to properly reflect the exact version(s) of Excel your question relates to. Members tailor answers based on your Excel version. Your profile does not indicate your version.
    Thanks

  4. #4
    Registered User
    Join Date
    04-08-2020
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    7

    Re: Sum and Countifs with multiple Criteria problem

    Hi Admin,

    Sorry, I already updated my excel version and please see attached my sample worksheet.

    My issue with the sample worksheet is the count of total tested in Step Counter tab was not the same Total Tested in the Summary tab. I used the below formula.

    =SUM(COUNTIFS(Value!$B:$B,'Step Counter'!$A2,Value!$C:$C,'Step Counter'!B$1,Value!$A:$A,{"Passed","Failed","Blocked"}),COUNTIFS('Value 2'!$B:$B,'Step Counter'!$A2,'Value 2'!$C:$C,'Step Counter'!B$1,'Value 2'!$A:$A,{"Passed";"Failed";"Blocked"}),COUNTIFS('Value 3'!$B:$B,'Step Counter'!$A2,'Value 3'!$C:$C,'Step Counter'!B$1,'Value 3'!$A:$A,{"Passed";"Failed";"Blocked"}),COUNTIFS('Value 5'!$B:$B,'Step Counter'!$A2,'Value 5'!$C:$C,'Step Counter'!B$1,'Value 5'!$A:$A,{"Passed";"Failed";"Blocked"}))
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-08-2020
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    7
    Hi all,

    Can anyone to check my formula please?

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Sum and Countifs with multiple Criteria problem

    Hi,

    Some of the formulas in your Summary sheet are incorrect. They should all be checking column A of the various sheets, but some are checking column B or C.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

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

    Re: Sum and Countifs with multiple Criteria problem

    Quote Originally Posted by escalryan View Post
    Hi all,

    Can anyone to check my formula please?
    Administrative Note:

    We don't expect you to bump threads sooner than 24 hours after your last post or more than once a day. Please remember that those who help here do so voluntarily and of their own goodwill. They live in many different time zones and many will be out at work right now if they are not asleep on the other side of the globe. This is not a paid 'service': members will help when they are ready and able to do so, and not 'on demand'. Please do not try to put pressure of time on anyone here: if you get the help you need today, that's fine, but you really should not count on it. Thanks for your understanding and patience.

  8. #8
    Registered User
    Join Date
    04-08-2020
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    7

    Re: Sum and Countifs with multiple Criteria problem

    Hi Sir,

    I already corrected the checking column in the Summary tab, but the total count of tested in the Step Counter is still not the same in the Summary Tab.
    I really don't know what is the problem to my formula.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    04-08-2020
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    7

    Re: Sum and Countifs with multiple Criteria problem

    Hi Pepe,

    Sorry for being impatient and yes I understand this will not happen again. Thanks!

  10. #10
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Sum and Countifs with multiple Criteria problem

    Your formula in cell B3 of the Step Counter sheet is referencing cell B2 instead of cell B1.

    Regards

  11. #11
    Registered User
    Join Date
    04-08-2020
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    7

    Re: Sum and Countifs with multiple Criteria problem

    Quote Originally Posted by XOR LX View Post
    Your formula in cell B3 of the Step Counter sheet is referencing cell B2 instead of cell B1.

    Regards
    Thanks, Xor! I got the same count in my sample sheet, however, in my actual file, I am still not getting the same count. is it okay for you if I can share my actual file to you?

  12. #12
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Sum and Countifs with multiple Criteria problem

    I don't mind. It's more whether you would mind sharing potentially confidential information. You can always replace the actual data with dummy data before sharing, of course.

    Regards

  13. #13
    Registered User
    Join Date
    04-08-2020
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    7

    Re: Sum and Countifs with multiple Criteria problem

    Hi Sir Xor,

    I created a dummy file and data, but the content its almost the same in my actual file. As you can see in the Step Counter tab, the total counted (Total Per Resource) is 7038, while in the Test Summary Tab, the total tested is 6461. I really don't know what is the problem in my formula.
    I am hoping you will find the cause of error in my formula
    Attached Files Attached Files

  14. #14
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Sum and Countifs with multiple Criteria problem

    Hi,

    1) Two of the worksheets which are being referenced in the formulas within the Step Counter sheet - Admin Portal and Web Check-in - do not appear within the Test Summary (Multi-Module) sheet

    2) The Login v2.1 sheet contains 17 entries in column E of 08/04/2020, yet your table in the Step Counter sheet only goes up to 07/04/2020

    3) There are some blank entries in the Tester columns: 5 in the MDD_Activity v.02 sheet, 3 in the MDD_MyWallet v.01 sheet and 1 in each of the Login v2.1, Web Check-in and MCIv3.1 sheets

    4) There is one entry in the Login v2.1 sheet with a non-blank entry (Resource 8) in the Tester column but with a blank in the Test Date column

    Apologies, but next time I'll have to invoice you for such an afternoon's auditing! Goes slightly beyond the remit of free Excel-forum help, in my opinion!

    Regards

+ 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 Formula Criteria Problem
    By hammer2 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-12-2018, 10:58 PM
  2. [SOLVED] Countifs multiple criteria- criteria if cell is greater than another i adjacent column
    By Sircool1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-26-2018, 11:23 AM
  3. [SOLVED] Problem with countifs formula using two text criteria
    By adam_d_john in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-04-2017, 12:44 PM
  4. Countifs with multiple criteria in single criteria range
    By MCP313 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-01-2016, 03:51 AM
  5. [SOLVED] countifs statement with multiple criteria for multiple criteria ranges
    By mcdermott2 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-07-2015, 11:48 AM
  6. [SOLVED] COUNTIFS Problem when selecting multiple criteria
    By Losguapos1 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-17-2014, 09:01 AM
  7. Problem with Countifs with 3 criteria (one being date)
    By Akbhat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-31-2013, 08:42 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