答案 0 :(得分:3)
你可以用公式
来做 从你上面的图片你可以写在E2单元格
=INDEX($B:$B,COLUMN(H:H)-COLUMN($E:$E)) 'DRAG FORMULA ACROSS AS NEEDED
在单元格D3中使用
=A3 'DRAG FORMULA DOWN AS NEEDED
并在单元格E3中使用
=IF($B3=E$2,1,0) 'DRAG FORMULA ACROSS AND DOWN AS NEEDED