A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
Try this
- In sheet2, type the selective headings (of the 27 columns) from cell A1 to the right, say till T1. When typing the headings, please ensure that the spelling of the headings in range A1:T1 (assumption) of sheet2 is the same as the spelling of the heading in range A1:Z1 (assumption) of sheet1
- In cell A2 of sheet2, enter this array formula (Ctrl+Shift+Enter) and then copy down/right
=IFERROR(INDEX(Sheet1!$A$2:$Z$24,SMALL(IF(Sheet1!$C$2:$C$24>0,IF(Sheet1!$E$2:$E$24>0,ROW(Sheet1!$A$2:$A$24)-ROW(Sheet1!$A$1))),ROW(1:1)),MATCH(A$1,$A$1:$Z$1,0)),"")
Change the $A$2:$Z$24 and $A$1:$Z$1 to your actual range.
Hope this helps.