SUM, SUMPRODUCT or COUNTIF

jasonjack

New Member
Joined
Apr 30, 2014
Messages
26
Office Version
  1. 365
Platform
  1. MacOS
HI,

I am trying to present some data based on the table below.

I'd like to report for APAC (A) region only 1 instance and a single total of Minutes (C) for SUPPLIER (D).

At the moment using SUMIF and COUNTIFS I get 4 instances of the APAC and 144 Minutes.

Region (G4) Formula is: =COUNTIFS(A:A,"APAC",D:D,"ABC1")

Total Minutes (G5) Formula is: =SUMIFS(C:C,A:A,"APAC",D:D,"ABC1")

Any help would be greatly appreciated.

1621587516068.png
 

Attachments

  • 1621586804668.png
    1621586804668.png
    13 KB · Views: 10
It looks to me that for the APAC Region, you want a count of the UNIQUE values in column C, and a total of those unique values.
So even though 36 appears multiple times, you only want one instance of that, and one of 74 minutes.
Is that correct?
 
Upvote 0

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
It's my sample data I'm looking for a solution to. Post #18
I understand that, but to establish the logic of how to achieve that, I wanted my questions answered. If you are not able to do that then I will have to leave it to others to assist.
 
Upvote 0
It looks to me that for the APAC Region, you want a count of the UNIQUE values in column C, and a total of those unique values.
So even though 36 appears multiple times, you only want one instance of that, and one of 74 minutes.
Is that correct?
Thanks Peter, yes that is correct.
 
Upvote 0
It looks to me that for the APAC Region, you want a count of the UNIQUE values in column C, and a total of those unique values.
So even though 36 appears multiple times, you only want one instance of that, and one of 74 minutes.
Is that correct?
Yes this is correct.
 
Upvote 0
Upvote 0
Thanks Joe + Peter....looks like it worked on the example sheet.....will now test on real data.
So, the SUM Unique values appears to have work.

However, the COUNT Unique numbers is proving a bit tricky.

Can I have more that 2 criteria? Formula is below with current 2. I really could do with 3!

=ArrayFormula(SUM(IF(FREQUENCY(IF('FS - P1 & P2 - Import Data'!AA2:AA600=M4,IF('FS - P1 & P2 - Import Data'!Q2:Q600="Critical (P1)",MATCH('FS - P1 & P2 - Import Data'!J2:J600,'FS - P1 & P2 - Import Data'!J2:J600,0))),ROW('FS - P1 & P2 - Import Data'!J2:J600)-ROW('FS - P1 & P2 - Import Data'!J2)+1),'FS - P1 & P2 - Import Data'!J2:J600)))

Thanks
 
Upvote 0
So, the SUM Unique values appears to have work.

However, the COUNT Unique numbers is proving a bit tricky.

Can I have more that 2 criteria? Formula is below with current 2. I really could do with 3!

=ArrayFormula(SUM(IF(FREQUENCY(IF('FS - P1 & P2 - Import Data'!AA2:AA600=M4,IF('FS - P1 & P2 - Import Data'!Q2:Q600="Critical (P1)",MATCH('FS - P1 & P2 - Import Data'!J2:J600,'FS - P1 & P2 - Import Data'!J2:J600,0))),ROW('FS - P1 & P2 - Import Data'!J2:J600)-ROW('FS - P1 & P2 - Import Data'!J2)+1),'FS - P1 & P2 - Import Data'!J2:J600)))

Thanks
Excellent!
Glad we were able to help you out.
sorry the ask the wrong way around:

So, the COUNT Unique values appears to have work.

However, the SUM Unique numbers is proving a bit tricky.

Can I have more that 2 criteria? Formula is below with current 2. I really could do with 3!

=ArrayFormula(SUM(IF(FREQUENCY(IF('FS - P1 & P2 - Import Data'!AA2:AA600=M4,IF('FS - P1 & P2 - Import Data'!Q2:Q600="Critical (P1)",MATCH('FS - P1 & P2 - Import Data'!J2:J600,'FS - P1 & P2 - Import Data'!J2:J600,0))),ROW('FS - P1 & P2 - Import Data'!J2:J600)-ROW('FS - P1 & P2 - Import Data'!J2)+1),'FS - P1 & P2 - Import Data'!J2:J600)))
 
Upvote 0

Forum statistics

Threads
1,224,002
Messages
6,175,899
Members
452,681
Latest member
jlcm0924

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top