M
mark
Hi All,
I've been given at work a file containing a table with over 4,000 rows
and data in 8 columns.
What I have to do is compare each cell in each of the 8 columns per row
with the very next cell below it on the next row.
If all of the 8 cells below are exactly the same as the cells above
then delete that row and then the comparing again with the now new next
row and so on and so on and gradually go through all the 4,000+ rows
It's taking me ages as I'm just eyeballiing as I couldn't see how auto
filter could help or how I could do it with code.
A sample is below
Any help is greatly appreciated as I gave up late on Friday after hours
of doing it manually
Mark
Class Fname Lname Regn Facility other columns.......
ss Charles Pott 1346 Else
vm Charles Pott 1346 Some
vm Charles Pott 1346 Some - this to be deleted
ss Pete Blogg 7890 Else
ss Pete Blogg 7890 Else - this to be deleted
hm PC Blogg 7890 Else
hm Pete Blogg 7890 Some
hm PC Blogg 7890 Some - this NOT to be deleted
I've been given at work a file containing a table with over 4,000 rows
and data in 8 columns.
What I have to do is compare each cell in each of the 8 columns per row
with the very next cell below it on the next row.
If all of the 8 cells below are exactly the same as the cells above
then delete that row and then the comparing again with the now new next
row and so on and so on and gradually go through all the 4,000+ rows
It's taking me ages as I'm just eyeballiing as I couldn't see how auto
filter could help or how I could do it with code.
A sample is below
Any help is greatly appreciated as I gave up late on Friday after hours
of doing it manually
Mark
Class Fname Lname Regn Facility other columns.......
ss Charles Pott 1346 Else
vm Charles Pott 1346 Some
vm Charles Pott 1346 Some - this to be deleted
ss Pete Blogg 7890 Else
ss Pete Blogg 7890 Else - this to be deleted
hm PC Blogg 7890 Else
hm Pete Blogg 7890 Some
hm PC Blogg 7890 Some - this NOT to be deleted