excel中a列为股票代码b列为金额,如何将a列中各个代码股票金额合并显示
假设数据在sheet1,在sheet2生成新表,a2输入公式:=index(sheet1!a$2:a$1000,small(if(match(sheet1!a$2:a$1000,sheet1!a$2:a$1000,0)=row($1:$999),row($1:$999),9^9),row(a1)))数组公式,按ctrl+shift+enter完成公式,下拉;b2公式:=sumif(sheet1!a$2:a$1000,a2,sheet1!b$2:b$1000)下拉。 20210311