How to sum values in one column excluding cells with duplicate text values in two different columns?

kakehavata

New Member
Joined
Mar 29, 2021
Messages
24
Office Version
  1. 2019
  2. 2016
  3. 2013
Platform
  1. Windows
Hello, forum! I'm new here.

I have the following basic problem. In this table I have three variables:
1617038043441.png


I am using the SUMPRODUCT formula to calculate the sum of all numbers in column C that have a particular index in column A. For example, C13 =SUMPRODUCT(($A1:$A7="A")*(C1:C7))
I would like to exclude all duplicates in terms of all columns, that is C1 and C3, for example, should be counted only once (C13 would then = 7).

What should I add to the formula?

Thank you!
 
I assume that you are following all the instructions described here.
What are the symptoms of the bug?
At what point in those instructions does the bug occur?

When I click on the Mini-sheet button the whole program freezes for some reason. I am using Excel 2016 at the moment.

EDIT: Now that I tried to work with the settings, it seems that the when "Named Ranges" is checked is when the bug occurs. Otherwise it seems to be working fine!
 
Last edited:
Upvote 0

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
One more question: what if I want to add other variables using the COUNTIFS function?
So, for example, if we consider columns D and E:
In that example, are columns D and E part of the sum, or are they just criteria for identifying duplicate rows?
 
Upvote 0
In that example, are columns D and E part of the sum, or are they just criteria for identifying duplicate rows?
they are just criteria for identifying duplicate rows.

I have also presented a more elaborate and accurate version of the chart I am trying to make here: How to exclude duplicate rows when summing values in columns

I found that, although I make the formulas work on a small scale, I can't seem to be able to transpose them to the actual project I am working on. So, if it's all the same to you, you can write your comment there.

I appreciate the help!
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
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