How to split a spreadsheet into multiple new spreadsheets each containing a subset of the original data?

前端 未结 2 658
故里飘歌
故里飘歌 2021-01-17 09:16

My excel spreadsheet contains

Name   Grade   Status
Paul   3       M
Paul   3       P
Paul   4       P
Steve  5       O
Steve  5       O
Nick   6       O
 .         


        
2条回答
  •  萌比男神i
    2021-01-17 10:07

    Assuming that you have names in cells A1:A4 in Data worksheet, the formula for Paul worksheet will be:

    =IFERROR(OFFSET(INDEX(Data!$A$1:$A$4,SMALL(IF(Data!$A$1:$A$4="Paul",ROW(Data!$A$1:$A$4),""),ROW(1:1))),0,COLUMN(A:A)-1),"")
    

    Mind you, this is an array formula, which means that you have to enter it with the combination: Ctrl+Shift+Enter.

    Now you have to just fill down and to the right to as many cells as you want.

提交回复
热议问题