Find multiple duplicate ID and sum up other column

Megat91

New Member
Joined
Jul 9, 2020
Messages
12
Office Version
  1. 2010
Platform
  1. Windows
Hello,

im new here, i need to find a formula that might ease my data review.

i want to find a duplicate value in column A, and sum up the value in column C, if the sum up value in column C become "0" then it meet my condition to remark "contra".
The problem is, some of the duplicate value sum up value is not "0" and i want to ignore it.

for example as attach,
Cell A6 & A7 is duplicate, hence i need to sum up cell C6 & C7, and if it become "0" qty, hence it will remark "CONTRA" in cell D6 & D7

unlike

Cell A19 & A20, even it also duplicate, but the total sum up of cell C19 & C20 is not "0", so it will leave it blank in cell D19 & D20


is there any formula to write? because now i just manually filter "duplicate value" then sum up the column C manually and put the remark also manually.

Thanks for the help, really help me as the data is quite big
 

Attachments

  • Excel Problem.JPG
    Excel Problem.JPG
    41.3 KB · Views: 85

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Welcome to the forum, try

=IF(SUMIFS($C$2:$C$21,$A$2:$A$21,A2)=0,"CONTRA","")

1594287189469.png
 
Upvote 0
You're welcome, thanks for the feedback.
Hey mate,

sorry..i found problem like this..is there any SUBTITUTE formula can be use to replace those "^" with blank or ignore those "^"

because i just figure out that some of my column A data just got that "^" at the end of the cell data but it represent the same thing as it without "^" sign at the end.

*those in yellow highlight as attached
 

Attachments

  • Excel Problem.JPG
    Excel Problem.JPG
    60.5 KB · Views: 13
Upvote 0
Try

=IF(SUMPRODUCT((SUBSTITUTE($A$2:$A$21,"^","")=SUBSTITUTE(A6,"^",""))*($C$2:$C$21))=0,"CONTRA","")

1594364614606.png
 
Upvote 0

Forum statistics

Threads
1,214,822
Messages
6,121,767
Members
449,049
Latest member
greyangel23

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