Sum of a column defined by the text of another column, without duplicates

Estimator_J

New Member
Joined
Nov 23, 2016
Messages
4
Hello all,

I have one column in which state abbreviations are entered.

The second column has dollar amounts entered.

I want to add the sum of the dollar amount column, determined by the text of the state abbreviation column. i.e. total dollar value for each state.

Further, I only want unique dollar values summed. If the exact same (duplicate) value exists, I want it omitted from the sum.

Is this possible? Any assistance would be greatly appreciated!
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Estimator_J,

Maybe like the below Array formula.
Excel Workbook
ABCDE
1State$*State$
2A13*A49
3E1***
4A5***
5A1***
6A22***
7C1***
8A13***
9A1***
10D5***
11F1***
12A1***
13A6***
14A2***
Sheet1


Adjust to suit your ranges.

Hope that helps.
 
Upvote 0
Estimator_J,

Maybe like the below Array formula.
Sheet1

*ABCDE
1State$*State$
2A13*A49
3E1***
4A5***
5A1***
6A22***
7C1***
8A13***
9A1***
10D5***
11F1***
12A1***
13A6***
14A2***

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:87px;"><col style="width:80px;"><col style="width:82px;"><col style="width:75px;"><col style="width:75px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
E2{=SUMPRODUCT(($A$2:$A$30=$D$2)*$B$2:$B$30*IFERROR(MATCH($A$2:$A$30&$B$2:$B$30,$A$1:$A$30&B1:$B$30,0)=ROW($A$2:$A$30),0))}

<tbody>
</tbody>
Formula Array:
Produce enclosing
{ } by entering
formula with CTRL+SHIFT+ENTER!

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4

Adjust to suit your ranges.

Hope that helps.

It worked perfect! Thank you!
 
Upvote 0

Forum statistics

Threads
1,215,446
Messages
6,124,900
Members
449,194
Latest member
JayEggleton

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