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
  • you can try SORTN with 2 as 3rd parameter:

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

    0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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