Delete duplicate rows from a single column and overwrite that excel file

Hey,

I’m working on a project where every 5 minutes this robot will run. It will filter through unread emails by subject line, then save the excel attachment to a folder. It will use that path to open the excel files from that folder. The file will have 5 columns: PO Number, Part Number, Serial Number, PO Line, and Morgan Part Number. I want to delete any duplicate rows from the Serial Number column and overwrite the file with the new filtered data. So far, I have been able to do everything up until delete duplicates. Could anyone tell me what activities to use or explain a workflow? (I am fairly new to UiPath)

Thank You


This is what I have so far.

@dev.patel

just use write datatable to excel activity to write the filtered data back to excel.

The problem I am getting with that is that it doesn’t delete the original data. It just adds the filtered data to the original data.

@dev.patel

have you tried this, If not can you try this once

I think no need to read the excel you can use remove duplicates activity

Seems to work, thank you!

1 Like

Hey, after I delete the duplicates I want to copy the data from the excel file and paste into a website. How would I do that?
Thank You

1 Like

Hi @dev.patel ,

If you are copying the data row wise then use for each activity.

Thanks

I am copying the whole sheet, excluding the headers in row 1.