I have an excel sheet where the data is in the following format

id1 abc dghajsgdjh 123
id1 abc uidgiutgcui 245
id2 xyz hqwhdqwq 672

I need to extract only one row from first two rows and the third row. I need only two rows with id1 and id2.
Can anybody help me how to get this output from a large excel sheet?