i have a spreadsheet with 7 columns, i want delete duplicate rows. But i need compare col C and D values with the others rows. if there are another row with the same value (col C and D) just deletes it, i tried use the "unique function", but this compare all cols values.
| colA | colB | colC | colD | colE | colF | colG | |
|---|---|---|---|---|---|---|---|
| row1 | short | walter | **white | size2** | 2019 | enero | 0002 |
| row2 | pants | Carlos | green | size3 | 2019 | julio | 0003 |
| row3 | boxer | Felipe | **white | size2** | 2020 | marzo | 0005 |
| row4 | tshirt | walter | **yellow | size1 | ** 2019 | junio | 0002 |
| row5 | sock | Martin | **yellow | size1 | ** 2021 | mayo | 0005 |
In the example before (just comparing Col C and col D) i need delete row 3 (the same value in row1) and row 5 (the same valueS row 4)
I need google script code to do that.
any can help me?