Help WITH SUMPRODUCT

PhBarreto

New Member
Joined
Aug 9, 2016
Messages
25
Office Version
  1. 365
Platform
  1. Windows
Hey guys!

I would like to create a formula that counts the unique values in column G of the TB_incident_task tab with the formula below, which is my current formula.

Excel Formula:
=SUMPRODUCT((TB_incident_task!$E$2:$E$8571=Dashboard!C14) * (TB_incident_task!$K$2:$K$8571=Dashboard!$B$5))

I tried to create it in the following way (and a thousand other ways :D), but it returns the value 1 which is incorrect, because I have 3 records. I checked using the filters to validate if the formula below is correct.

Excel Formula:
=SUMPRODUCT((TB_incident_task!$E$2:$E$8571=Painel!C13) * (TB_incident_task!$K$2:$K$8571=Painel!$B$5) / (COUNTIF(TB_incident_task!$G$2:$G$8571, TB_incident_task!$G$2:$G$8571) + (TB_incident_task!$G$2:$G$8571="")))

Could you help me?
Thank you in advance!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
How about
Excel Formula:
=ROWS(UNIQUE(FILTER(TB_incident_task!$G$2:$G$8571,(TB_incident_task!$E$2:$E$8571=C14)*(TB_incident_task!$K$2:$K$8571=$B$5))))
 
Upvote 0
Solution
How about
Excel Formula:
=ROWS(UNIQUE(FILTER(TB_incident_task!$G$2:$G$8571,(TB_incident_task!$E$2:$E$8571=C14)*(TB_incident_task!$K$2:$K$8571=$B$5))))

Thanks Fluff!

It worked great!

I tried to check the values using the formula below, applying the concept you indicated. When adding the result of each row, I got a sum of 1639 unique items. However, by following the concept applied in the formula, I believe I made a mistake, as the result returned was 1444. What am I doing wrong?

Excel Formula:
=IFERROR(ROWS(UNIQUE(FILTER(TB_incident_task!$G$2:$G$8571, (TB_incident_task!$K$2:$K$8571=$B$5)))); 0)
 
Last edited:
Upvote 0
Thanks Fluff!

It worked great!

I tried to check the values using the formula below, applying the concept you indicated. When adding the result of each row, I got a sum of 1639 unique items. However, by following the concept applied in the formula, I believe I made a mistake, as the result returned was 1444. What am I doing wrong?

Excel Formula:
=IFERROR(ROWS(UNIQUE(FILTER(TB_incident_task!$G$2:$G$8571, (TB_incident_task!$K$2:$K$8571=$B$5)))); 0)


One more piece of information:

The value 1444 is correct. It contains the data without repetition from column G. In column K, the values are repeated and the result is 1639.
 
Upvote 0
If the correct value is 1444 & that is what the formula returned, what's the problem?
 
Upvote 0
If the correct value is 1444 & that is what the formula returned, what's the problem?
I used the formula below in the range C12:C53, and the sum is 1639. However, it should be 1444.

Excel Formula:
=IFERROR(ROWS(UNIQUE(FILTER(TB_incident_task!$G$2:$G$8571, (TB_incident_task!$E$2:$E$8571=C12)*(TB_incident_task!$K$2:$K$8571=$B$5)))), 0)
 
Upvote 0
That sounds as though of the values might not be exactly the same. Are they text or numbers?
 
Upvote 0
That sounds as though of the values might not be exactly the same. Are they text or numbers?
They are text.


Examples:
Column E - Name1, Name2, Name3, Name4, Name5 etc. (TB_incident_task!$E$2:$E$8571=C12)
Column G - ABC123456 (TB_incident_task!$G$2:$G$8571 - should only count unique data from that column)
Column K - Info about incident (TB_incident_task!$K$2:$K$8571=$B$5)
 
Upvote 0
Check that none of those columns have any leading/trailing spaces and/or typos
 
Upvote 0

Forum statistics

Threads
1,223,104
Messages
6,170,125
Members
452,303
Latest member
c4cstore

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