Transpose and group data

邮差的信 提交于 2019-12-06 00:44:17

You better use VBA, but if you really need formula solution:

First, you need to create Unique list: D2=IFERROR(INDEX($A$1:$A$19, MATCH(0, COUNTIF($D$1:D1, $A$1:$A$19), 0)),0) And drag it down to copy.

Then, we need to lookup for 1st, 2nd, 3rd, etc match: E2=IFERROR(INDEX($B$1:$B$19, SMALL(IF($D2=$A$1:$A$19, ROW($A$1:$A$19)-MIN(ROW($A$1:$A$19))+1, ""), E$1)),0) Again drag it down, drag it to the right to fill in all cells on E2:N12

Note: Rememeber to enter both formulas with CTRL+SHIFT+ENTER as they are both array formulas. Update ranges according to your data ranges.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!