Extract distinct values from a column based on specific criteria using the UNIQUE and FILTER functions in Excel.