Filter and count unique data with multiple criteria

einna77

New Member
Joined
Aug 3, 2022
Messages
18
Office Version
  1. 2010
Platform
  1. Windows
  2. Mobile
  3. Web
Hi, Please help. I need to know what formula I can use.. In the sample data, there are 2 columns: Qty and Product. I want to filter the unique product with a qty of 1, and at the same time, I want to know the sum of the filtered product. In the sample, there is a column that should be the answer.
1689243765079.png
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
How about
Fluff.xlsm
ABCDE
1
21AA3
3BC3
41CD2
5D  
61A  
7B
81C
91D
101A
11B
121C
131D
Master
Cell Formulas
RangeFormula
D2:D6D2=IFERROR(INDEX(B:B,AGGREGATE(15,6,ROW($B$2:$B$13)/($A$2:$A$13=1)/(ISNA(MATCH($B$2:$B$13,D$1:D1,0))),1)),"")
E2:E6E2=IF(D2<>"",SUMIFS(A:A,B:B,D2),"")
 
Upvote 0
Solution
How about
Fluff.xlsm
ABCDE
1
21AA3
3BC3
41CD2
5D  
61A  
7B
81C
91D
101A
11B
121C
131D
Master
Cell Formulas
RangeFormula
D2:D6D2=IFERROR(INDEX(B:B,AGGREGATE(15,6,ROW($B$2:$B$13)/($A$2:$A$13=1)/(ISNA(MATCH($B$2:$B$13,D$1:D1,0))),1)),"")
E2:E6E2=IF(D2<>"",SUMIFS(A:A,B:B,D2),"")
Yehey. This what i'm looking for.
Thank you so much
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,471
Messages
6,124,999
Members
449,201
Latest member
Lunzwe73

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