I also am having trouble writing a similar macro

I have values in Column H that start with 1000000000, of which there are at least 11 rows, i.e. there are at least 11 rows with id = 1000000000. After the 11 rows with id = 1000000000, it continues with at least 11 rows with id = 1000000001, at least 11 rows with id = 1000000002, etc.

I am trying to keep the first 11 rows for each 'id' and want to delete the rest. How do I go about this? I have attached a screenshot, if this is not clear. If you look at the screenshot, there is a 'Time' column, which I think could also be used in helping to write the macro. Although this specific file has 'Time' starting with '1', this is not always the case. Depending on the excel file, it could also start with other numbers. In this specific excel file, I would like to keep 'Time' values between 1-11, but if the first 'id' has its first 'Time' value = 4, then I would like to
keep 'Time' between 4-14.

Thanks for the help.