A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Dear jeanneperreault,
Thank you for reaching out to Microsoft Community. My name is Vicky and I'm happy to assist!
I try to test somes and here’s a revised formula that may meet your needs:
=SORT( FILTER( 'Sheet2'!A2:H499, ISNUMBER(SEARCH($E$3,'Sheet2'!A2:A499)) * ISNUMBER(SEARCH($E$4,'Sheet2'!B2:B499)) * ( IF(F3, 'Sheet2'!C2:C499="Type1", FALSE) + IF(G3, 'Sheet2'!C2:C499="Type2", FALSE) + IF(H3, ('Sheet2'!C2:C499="Type1")+('Sheet2'!C2:C499="Type2"), FALSE) ) ), 4, -1 ) What this formula does:
- Filters rows based on the theme and subtheme entered in cells
E3andE4. - Applies additional filtering based on the document type selected via checkboxes or TRUE/FALSE values in
F3,G3, andH3. - Sorts the filtered results by column 4 in descending order.
If none of the document type options are selected, the formula will return no results. You can wrap it in IFERROR(..., "No result") to handle that gracefully.
Please let us know if you have any trouble!
Warm Regards,
Vicky-I - MSFT | Microsoft Community Support Specialist