Remove Opposite Values

greekblogosfaira

New Member
Joined
Aug 18, 2016
Messages
1
I have the following data and I would like to remove opposite values "rows".

For example using the following data, rows 1 and 2 should be removed since they have the same description and exactly the same but opposite values.

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Num[/TD]
[TD]Reference[/TD]
[TD]Description[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1[/TD]
[TD]Test[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]2[/TD]
[TD]Test[/TD]
[TD]-50[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]3[/TD]
[TD]Test[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]4[/TD]
[TD]Test[/TD]
[TD]50[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi,

In your sample data and stated criteria, rows 2 & 3 could be removed instead of rows 1 & 2. Could you provide a better explanation of what your requirements are.

igold
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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