Hi,
Ok so I am finding this a bit complicated to say the least.
I've got this sheet (example attached) where the are a few sections of data.
The first, highlighted in blue is of a variable number of rows.
The rows highlighted in yellow have values in column A, which other macros work off so these cannot be changed.
I've written a macro that goes through the sections marked 'Add Additional Accurals here' and 'Add Additional Open Trades here', and it clears the contents of a cell in the Fund_Group_id and Asset_Id colums if the value column L (End_Market_Value) is equal to zero. Thats why there are some blank rows in the data.
What I need is a macro that will look at all the remaining data in the range in the macro on the attached sheet (where I got stuck), and will count the number of times the values in Fund_Group_id, Asset_Id and End_Market_Value (column L) are the same. If there is more than one line for each, then the values in Fund_Group_id and Asset_Id for all but the first occurance need to be cleared.
I hope that makes sense! If you check what I've written so far in the attached sheet, hopefully that will give you a better idea of what I'm trying to explain.
Thanks very much in advance.
example sheet 1.xls
Bookmarks