Sum : Filter with Unique Condition

chandrashekar

Well-known Member
Joined
Jul 15, 2005
Messages
517
Office Version
  1. 365
Platform
  1. Windows
Hello,

How to get sum of Hours on below attached sample data.

Sample data: Sample Data
Formula used to get unique count: =IFERROR(ROWS(UNIQUE(FILTER(Sheet1!B2:B20,(Sheet1!A2:A20<>"HD")*(Sheet1!C2:C20=1)*(Sheet1!E2:E20="CH")*(IFERROR(Sheet1!D2:D20="First",0)+IFERROR(Sheet1!D2:D20="Second",0))))),0)

Regards,
Chandrashekar B
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
How about
Excel Formula:
=SUM(FILTER(Sheet1!F2:F20,(Sheet1!A2:A20<>"HD")*(Sheet1!C2:C20=1)*(Sheet1!E2:E20="CH")*(IFERROR(Sheet1!D2:D20="First",0)+IFERROR(Sheet1!D2:D20="Second",0)),0))
 
Upvote 0
How about
Excel Formula:
=SUM(FILTER(Sheet1!F2:F20,(Sheet1!A2:A20<>"HD")*(Sheet1!C2:C20=1)*(Sheet1!E2:E20="CH")*(IFERROR(Sheet1!D2:D20="First",0)+IFERROR(Sheet1!D2:D20="Second",0)),0))
Hello,

Thanks it is working.

Regards,
Chandrashekar B
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
Wondering what did "unique" in you thread heading have to do with this question? Wasn't this related to your previous question about unique count with similar data?
 
Upvote 0

Forum statistics

Threads
1,215,425
Messages
6,124,822
Members
449,190
Latest member
rscraig11

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