A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
Say, your "Items" table is in cells A4:D10. Try this formula with Ctrl+Shift+Enter:
=INDEX(INDEX($A$5:$A$10,SMALL(IF($D$5:$D$10="Y",IF($C$5:$C$10="Y",ROW($A$5:$A$10)-ROW($A$4),""),""),ROW(INDIRECT("A1:A"&COUNTA($A$5:$A$10))))),RANDBETWEEN(1,SUMPRODUCT(--($C$5:$C$10="Y")*($D$5:$D$10="Y"))))
This works in Office 365, but I can't test if this runs in Excel 2016.