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.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.