tags:

views:

74

answers:

1

I have an excel sheet where I have duplicate values for many rows. How can I make it have unique values? I'm looking for some code which will remove duplicates from this excel sheet and store it back in the same file.

+1  A: 

If you want to play around with Excel Spreadsheets you need a Java library like Apache POI or docx4j. I'm afraid I do not have any code samples for you but look at the project web sites.

You could also look into converting the spreadsheet to CSV format and then parse that to remove duplicates etc.

willcodejavaforfood