sum but ignore existing concatenated criteria

btardo01

Board Regular
Joined
Oct 6, 2009
Messages
169
Office Version
  1. 2016
Platform
  1. Windows
I have client in column A. Coverage in column B. Location in column C and Income in column D. I'm hoping someone can help with the formula for column E. In column E, I want to sum everything for Client A as long as the combination of Client&Coverage&Location doesn't already exist. If that combination already exists then I would want to leave blank.


[TABLE="width: 300, align: left"]
<tbody>[TR]
[TD]Client A[/TD]
[TD]Coverage 1[/TD]
[TD]South[/TD]
[TD]10.00[/TD]
[TD]45.00[/TD]
[/TR]
[TR]
[TD]Client A[/TD]
[TD]Coverage 2[/TD]
[TD]South[/TD]
[TD]15.00[/TD]
[TD]45.00[/TD]
[/TR]
[TR]
[TD]Client A[/TD]
[TD]Coverage 3[/TD]
[TD]South[/TD]
[TD]12.00[/TD]
[TD]45.00[/TD]
[/TR]
[TR]
[TD]Client A[/TD]
[TD]Coverage 4[/TD]
[TD]South[/TD]
[TD]8.00[/TD]
[TD]45.00[/TD]
[/TR]
[TR]
[TD]Client A[/TD]
[TD]Coverage 1[/TD]
[TD]South[/TD]
[TD]10.00[/TD]
[TD](blank)[/TD]
[/TR]
[TR]
[TD]Client A[/TD]
[TD]Coverage 2[/TD]
[TD]South[/TD]
[TD]15.00[/TD]
[TD](blank)[/TD]
[/TR]
[TR]
[TD]Client A[/TD]
[TD]Coverage 3[/TD]
[TD]South[/TD]
[TD]12.00[/TD]
[TD](blank)[/TD]
[/TR]
[TR]
[TD]Client B[/TD]
[TD]Coverage 1[/TD]
[TD]South[/TD]
[TD]5.00[/TD]
[TD]12.00[/TD]
[/TR]
[TR]
[TD]Client B[/TD]
[TD]Coverage 2[/TD]
[TD]South[/TD]
[TD]7.00[/TD]
[TD]12.00[/TD]
[/TR]
[TR]
[TD]Client B[/TD]
[TD]Coverage 1[/TD]
[TD][/TD]
[TD]5.00[/TD]
[TD](blank)[/TD]
[/TR]
[TR]
[TD]Client A[/TD]
[TD]Coverage 1[/TD]
[TD]North[/TD]
[TD]13.00[/TD]
[TD]20.00[/TD]
[/TR]
[TR]
[TD]Client A[/TD]
[TD]Coverage 2[/TD]
[TD]North[/TD]
[TD]7.00[/TD]
[TD]20.00[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
I forgot to mention, If possible to do without an array, that would be best.
 
Upvote 0
You could do it all in one formula but it would be computationally expensive.

Why not just do the concatenation directly in the sheet and work off that. So, e.g., if you added the concatenated string to new column F, something like:

=IF(COUNTIF($F$2:F2,F2)=1,SUMIF($F$2:$F$10,F2,$E$2:$E$10),"")

...in g2 copied down
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,154
Members
453,021
Latest member
Justyna P

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