# SUIMIFS only unique values

#### quiqueperez

##### New Member
Hi,

I'm trying to add the values in column A based on certain criteria in other columns using a SUMIFS formula.
However, some of the rows can be classed as duplicates for my purpose and I need to exclude them.

IN the attached example, I need to add the length of the ducts in column A. However, some ducts are duplicated (duct A is listed twice) and they need to be added only once.

If I wanted to add the length of the ducts in region HH, I would be expecting 25+12=37m

Is there any SUMIFS formula I can use for this.

Something like SUMIFS(Column A, Region, HH, only when the values in column Duct are unique)

 Column values to add Duct Cable Region 25 Duct A Cable 1 HH 25 Duct A Cable 2 HH 12 Duct B Cable 1 HH 8 Duct C Cable 2 HV

<tbody>
</tbody>

Many thanks!
Enrique

### 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.
maybe...

Excel 2012
ABCDE
225Duct ACable 1HH37
325Duct ACable 2HH
412Duct BCable 1HH
58Duct CCable 2HV

<tbody>
</tbody>
Sheet4

Array Formulas
CellFormula
E2{=SUM(IF(FREQUENCY(IF((B2:B5<>"")*(D2:D5="HH"),MATCH(A2:A5,A2:A5,0)),ROW(A2:A5)-ROW(A2)+1),A2:A5))}

<tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>

Replies
7
Views
202
Replies
1
Views
294
Replies
8
Views
741
Replies
13
Views
659
Replies
6
Views
298

### Forum statistics

1,221,053
Messages
6,157,640
Members
451,426
Latest member
VinnyDoesntKnowExcelCode

### 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.

### Which adblocker are you using?

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

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