SUIMIFS only unique values

quiqueperez

New Member
Joined
Sep 10, 2014
Messages
12
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 addDuctCableRegion
25Duct ACable 1HH
25Duct ACable 2HH
12Duct BCable 1HH
8Duct CCable 2HV

<tbody>
</tbody>


Many thanks!
Enrique
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
maybe...

Excel 2012
ABCDE
1Column values to addDuctCableRegion
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>
 
Upvote 0

Forum statistics

Threads
1,214,798
Messages
6,121,630
Members
449,041
Latest member
Postman24

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