Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a spreadsheet that is updated daily. I need a macro that will check
data for each record, in columns A,B,C and D, if they are the same, and the data in Column I has a positive and negative amount that are the same, delete both rows. See Example Below: ROOM PATNO PATNAME CNSDAY DAYS F_C HSV QTY AMT ICU1 167 SCHMOE JOE 11 1 M MED 1 953.80 ICU1 167 SCHMOE JOE 12 2 M ICU 1 953.80* ICU1 167 SCHMOE JOE 13 3 M MED 1 1293.00 ICU1 167 SCHMOE JOE 12 2 M ICU 1 953.80* ICU1 167 SCHMOE JOE 12 2 M ICU 1 (953.80)* ICU1 167 SCHMOE JOE 12 2 M MED 1 953.80 (would need it to delete the 2nd and 3rd rows, with everything matching in columns A,B,C and D, and ONE debit and credit for the same amount needs rows deleted....if not same info and amounts, rows not deleted. would end up looking like this: ROOM PATNO PATNAME CNSDAY DAYS F_C HSV QTY AMT ICU1 167 SCHMOE JOE 11 1 M MED 1 953.80 ICU1 167 SCHMOE JOE 13 3 M MED 1 1293.00 Is there any way to do this? I'm currently doing it manually every day using filters, then deleting....is very time consuming! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
macro to delete rows | Excel Discussion (Misc queries) | |||
My Macro Won't Delete Rows?? | New Users to Excel | |||
Macro to delete rows | Excel Programming | |||
macro to delete entire rows when column A is blank ...a quick macro | Excel Programming |