Removing duplicates

kicassrt

New Member
Joined
Feb 18, 2013
Messages
9
Hey Guys

I am trying to remove the below row if the condition exists where a payment was issued and then cancelled. The cancelled payment will show a "off" in the type and the negative number.

AMOUNT TRANSACTION ISSUED START END
1973.38 Loss 4/27/2011 4/14/2011 4/27/2011
-1973.38 Loss Off 4/27/2011 4/14/2011 4/27/2011

Sometimes we will reissue the check and I will then have a + - then + again. I would like to keep the one with the most recent issue date and wipe the others away
1973.38 Loss 1/21/2012 1/9/2012 1/22/2012
-1973.38 Loss Off 1/21/2012 1/9/2012 1/22/2012
1973.38 Loss 2/3/2012 1/23/2012 2/5/2012

What this is stopping me from doing is getting an accurate total of the days between start and end dates as my calculation in VBA does the subtraction based on Cells(r, 10) = (Cells(r, 8) - Cells(r, 7)) + 1

Anythoughts?
 
Last edited:

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,214,932
Messages
6,122,323
Members
449,077
Latest member
jmsotelo

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