Thread: [Solved] MS Excel 2010
View Single Post
 
Old 02-08-2016, 11:25 PM
xor xor is offline Windows 10 Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,101
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

Name your data (without any headings) d and the Yes/No range Question and then enter the following array formula to a separate sheet:

=IFERROR(INDEX(d,SMALL(IF(Question="No",ROW(d)-CELL("row",d)+1),ROWS($1:1)),COLUMNS($A:A)),"")

Please note that this (array)formula must be entered by holding down Ctrl and Shift before pressing Enter.
Copy the formula to the right and downwards as required.

The names d and Question are not absolutely required. I have done it because I find it convenient, but you can, if you prefer, use the actual ranges instead. The formula will then be longer.
Reply With Quote