• Have you had a look at the FILTER function?

    ----------------------------------------------------