Assuming the data is in A1:B11
, in C1
:
=TEXTJOIN(" ",1,IF(LOOKUP(ROW(A$1:A$11),ROW(A$1:A$11)/(A$1:A$11<>""),A$1:A$11)=A1,B$1:B$11,""))
and copied down.
It goes without saying that the last row referenced within the ranges passed (11 here) should be kept to a minimum.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.