• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Dulpicate Postive & Negative Values Needs to be removed in Excel sheet - Based On Unique Order & Rep

Unique Order & where Rep email ID's are same & One Positive & One negative values netting out Zero

  • Excel

    Votes: 1 100.0%
  • VBA

    Votes: 0 0.0%

  • Total voters
    1

chechi_navi

New Member
Order Salesrep Email Allocation % Amount **
9071442 XX@MM.com 100 34,200 Don't
9071442 XX@MM.com 100 7,524 Don't
9071442 yy@MM.com 100 34,200 Delete
9071442 yy@MM.com -100 (34,200) Delete
9071442 yy@MM.com 100 7,524 Delete
9071442 yy@MM.com -100 (7,524) Delete


A Col is Unique with Order Number
B Col has Sale Rep Email ID's which can be different for 1 Order which is there in current case
C Col Allocation of Amount "100" Refers full allocation "-100" Refers reversal of that allocation to particular Rep
E Col Amount "100" Refers full allocation "-100" Refers reversal of that allocation to particular Rep
In E col I need result for Unique Order & where Rep email ID's are same & One Positive & One negative values netting out Zero should be removed
 
Hi,

Welcome to the forum :)

Maybe using SUMIFS?
See attached

PS: @Raviprmr, just to add that, although I think your solution may work, I also believe it needs to be tweaked... as it is, it will highlight (to remove) rows even if both are positive (or both negative)... net result of sum should be "0" if I understood correctly.
 

Attachments

  • Chandoo.xlsx
    8.9 KB · Views: 10
Hi,

Welcome to the forum :)

Maybe using SUMIFS?
See attached

PS: @Raviprmr, just to add that, although I think your solution may work, I also believe it needs to be tweaked... as it is, it will highlight (to remove) rows even if both are positive (or both negative)... net result of sum should be "0" if I understood correctly.

Great, Thanks it worked very well in this case :)
 
Back
Top