I have data consisting of over 5000 rows in Excel. I want to get the first 3 rows from each group into a different sheet. If that is not possible, I would like to delete all rows except the first 3 rows of each group of data.
PS: I have searched for this question on multiple forums, and I did not get the answer. If you think this is a duplicate question, lacking the technical terms, please share the links to the discussions politely.
Another way of doing it in Excel 365:
=LET(seq,SEQUENCE(ROWS(A2:A21)),FILTER(A2:E21,seq-XLOOKUP(A2:A21,A2:A21,seq)<=2))