Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to delete rows with repeating values and leaving only one with highest value on the next column?
Hi,
I really need a macro that will delete all the rows with repeating values leaving only the last row that has the highest value on the column next to it. Basically my data has 2 columns, the one on the right has repeating values while the one on the left is increasing in values. So I need a macro that would delete both rows right up to the pair where the column on the left has the highest value. Please help me! Thanks heaps! |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to delete rows with repeating values and leaving only one with highest value on the next column?
Hi
lets assume your repeating value is in column A and the oncreasing value in column B Enter the following array formula ain C1 (entered with CTRL+sHIFT+ENTER): =IF(B1<MAX(IF($A$1:$A$100=A1,$B$1:$B$100)),"X","" ) and copy this down for all rows. Now filter with column C and delete the filtered rows -- Regards Frank Kabel Frankfurt, Germany Justin wrote: Hi, I really need a macro that will delete all the rows with repeating values leaving only the last row that has the highest value on the column next to it. Basically my data has 2 columns, the one on the right has repeating values while the one on the left is increasing in values. So I need a macro that would delete both rows right up to the pair where the column on the left has the highest value. Please help me! Thanks heaps! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
delete all dulplicate rows leaving no record of the duplicates | Excel Discussion (Misc queries) | |||
delete duplicate values - leaving unique records only i.e. recordspresent once only | Excel Worksheet Functions | |||
delete a duplicate in column while leaving other duplicates | Excel Worksheet Functions | |||
2 rows, highest No in row 1, then highest number in row 2 relating to that column, possible duplicates | Excel Worksheet Functions | |||
How to delete values in each row leaving only last value ? | Excel Discussion (Misc queries) |