Epsilon101
Programmer
Hi,
This is in Excel.
I have got some rows of transactions.
There is an ID number for the accounts in column A and a code for the transaction type in column C.
I am trying to do something in vba or with formulae, but its proving difficult.
The idea is to check column C, if the transaction type = 'OUT'. Get the Account ID in column A and delete all rows with that account ID.
Something like below for deleting the row, just not A:A.
I was thinking maybe using an array to hold the account ID's and loop through each section in the array and deleting the rows that match.
Array would have to be the same length as the amount of rows.
Im not exactly sure how to accomplish this and there is probably a better way to do it.
Any help would be appreciated
Thanks
---------------------------------------
Neil
This is in Excel.
I have got some rows of transactions.
There is an ID number for the accounts in column A and a code for the transaction type in column C.
I am trying to do something in vba or with formulae, but its proving difficult.
The idea is to check column C, if the transaction type = 'OUT'. Get the Account ID in column A and delete all rows with that account ID.
Something like below for deleting the row, just not A:A.
Code:
Columns("A:A").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
I was thinking maybe using an array to hold the account ID's and loop through each section in the array and deleting the rows that match.
Array would have to be the same length as the amount of rows.
Im not exactly sure how to accomplish this and there is probably a better way to do it.
Any help would be appreciated
Thanks
---------------------------------------
Neil