Excel VBA for this task could be over complicated and inefficient for your
task. It can be achieved using manual steps.
First of all, I assume all columns have column headings.
1) Insert a column to your data (e.g. at the front). Give it any heading,
and label your rows 1,2,3,4,5,6,7.... (This will be useful for sorting.)
2) Sort your table by columns B, C, then D.
3) In the column next to the last column, in the second cell (in row 2),
enter the formula:
=IF(AND(B2=B1,C2=C1,D2=D1),TRUE,FALSE)
4) Give the new column in (3) a column heading
5) Select all the cells in the new column, COPY, and PASTE SPECIAL, PASTE
VALUES.
5) Sort the table base on the new column, in Descending order
(Now, you got all the TRUE's on top.)
6) Delete all the TRUE rows.
7) Delete the TRUE/FALSE column
8) Sort the data by column A, in Ascending order
9) Delete column A.
Of course, the above steps can be automated. But it could be too time
consuming. It's always better to do it manually.
Regards,
Edwin Tam
(e-mail address removed)
http://www.vonixx.com