SUMIFS exclude duplicate rows

Talal T7

New Member
Joined
Aug 6, 2017
Messages
1
Hello everyone,

I have the below table :

[TABLE="width: 337"]
<tbody>[TR]
[TD="align: left"]Client ID[/TD]
[TD="align: left"]Policy Number[/TD]
[TD="align: left"]Number of Employees[/TD]
[TD="align: left"]Gross[/TD]
[/TR]
[TR]
[TD]1100[/TD]
[TD]1001[/TD]
[TD]10[/TD]
[TD="align: right"]50000[/TD]
[/TR]
[TR]
[TD]1100[/TD]
[TD]1001[/TD]
[TD]10[/TD]
[TD="align: right"]50000[/TD]
[/TR]
[TR]
[TD]1100[/TD]
[TD]1001[/TD]
[TD]10[/TD]
[TD="align: right"]50000[/TD]
[/TR]
[TR]
[TD]1100[/TD]
[TD]1001[/TD]
[TD]10[/TD]
[TD="align: right"]50000[/TD]
[/TR]
[TR]
[TD]1100[/TD]
[TD]1002[/TD]
[TD]20[/TD]
[TD="align: right"]100000[/TD]
[/TR]
[TR]
[TD]1100[/TD]
[TD]1002[/TD]
[TD]20[/TD]
[TD="align: right"]100000[/TD]
[/TR]
[TR]
[TD]1100[/TD]
[TD]1003[/TD]
[TD]30[/TD]
[TD="align: right"]150000[/TD]
[/TR]
[TR]
[TD]1100[/TD]
[TD]1003[/TD]
[TD]30[/TD]
[TD="align: right"]150000[/TD]
[/TR]
[TR]
[TD]1100[/TD]
[TD]1003[/TD]
[TD]30[/TD]
[TD="align: right"]150000[/TD]
[/TR]
[TR]
[TD]2100[/TD]
[TD]2001[/TD]
[TD]10[/TD]
[TD="align: right"]50000[/TD]
[/TR]
[TR]
[TD]2100[/TD]
[TD]2001[/TD]
[TD]10[/TD]
[TD="align: right"]50000[/TD]
[/TR]
[TR]
[TD]2100[/TD]
[TD]2002[/TD]
[TD]10[/TD]
[TD="align: right"]50000[/TD]
[/TR]
[TR]
[TD]2100[/TD]
[TD]2002[/TD]
[TD]10[/TD]
[TD="align: right"]50000[/TD]
[/TR]
</tbody>[/TABLE]

and I want to know the total of employees per client code exclude duplicate policy number ( not summing number of employees under same policy number)
For example,

[TABLE="width: 255"]
<tbody>[TR]
[TD="align: left"]Client ID[/TD]
[TD="align: left"] Total Employees[/TD]
[TD="align: left"][/TD]
[/TR]
[TR]
[TD="align: right"]1100[/TD]
[TD] =10 for policy number 1001 + 20 for policy number 1002 + 30 for policy number 1003 = 60[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]Thanks ,
Talal[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Welcome to the MrExcel board!

Is this what you want?

Excel Workbook
ABCDEFG
1Client IDPolicy NumberNumber of EmployeesGrossClient ID1100
2110010011050000Total60
3110010011050000
4110010011050000
5110010011050000
61100100220100000
71100100220100000
81100100330150000
91100100330150000
101100100330150000
11210020011050000
12210020011050000
13210020021050000
14210020021050000
SUMPRODUCT
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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