1

The unique items in D are: 4,3,2.

asd

I wish to extract 3 rows for each D value, For each row, provide the first row that this D value appears.

I tried using =query but it doesn't support grouping or subqueries. I tried to use arrayformula but it doesn't support the query function.

Do you have an idea?

1 Answer 1

1
  • you can try SORTN with 2 as 3rd parameter:

    =SORTN(E1:I, ROWS(E:E), 2, 2, 1)

    0

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.