本帖最后由 太阳之子 于 2020-1-26 11:08 编辑
- =HLOOKUP(LOOKUP(ROW()-2,SUMIF(OFFSET(F$1,,,ROW($1:4)),">0"),E$2:E5)&"*",A:C,ROW()-LOOKUP(ROW()-2,SUMIF(OFFSET(F$1,,,ROW($1:4)),">0")),)
- =HLOOKUP(LOOKUP(ROW()-2,SUMIF(OFFSET(F1,,,ROW(1:4)),">0"),E2:E5)&"*",A:C,ROW()-LOOKUP(ROW()-2,SUMIF(OFFSET(F1,,,ROW(1:4)),">0")),)
- =HLOOKUP(MID(REPT(E2,F2)&REPT(E3,F3)&REPT(E4,F4),ROW()-1,1)&"*",A:C,ROW()-LOOKUP(ROW()-2,SUMIF(OFFSET(F1,,,ROW(1:4)),">0")),)
- =HLOOKUP(MID(CONCAT(REPT(E2:E4,F2:F4)),ROW()-1,1)&"*",A:C,ROW()-LOOKUP(ROW()-2,SUMIF(OFFSET(F1,,,ROW(1:4)),">0")),)
复制代码
公式1,下拉公式;公式2和公式3,区域数组,假数组。公式4用了2019版函数CONCAT |