Forum Discussion
Carlo74
Feb 16, 2020Copper Contributor
Excel formula similiar to texjoin
hy all I need help if is possible. I need formula to read a complete row and when find data combine it with cell name where data is found, and to skip blanks and zeroes, and move on to next tnx...
SergeiBaklan
Feb 17, 2020Diamond Contributor
I didn't catch you'd like to join result in one string or keep in separate cells as in your screenshot. If the latest like
I'd add helper column as here in Column G (could be in any other place). In A10
=IFERROR(INDEX($A$3:$A$7,AGGREGATE(15,6,1/($G$3:$G$7>0)*(ROW($A$3:$A$7)-ROW($A$2)),ROW()-ROW($A$9))),"")
and drag it down till empty cells appear.
In B10
=IFERROR(
INDEX($B$2:$F$2,
AGGREGATE(15,6,1/(INDEX($B$3:$F$7,MATCH($A10,$A$3:$A$7,0),0)>0)*
(COLUMN(INDEX($B$3:$F$7,MATCH($A10,$A$3:$A$7,0),0))-COLUMN($A$2)),
COLUMN()-COLUMN($A$2)
)
) & " " &
INDEX(INDEX($B$3:$F$7,MATCH($A10,$A$3:$A$7,0),0),
AGGREGATE(15,6,1/(INDEX($B$3:$F$7,MATCH($A10,$A$3:$A$7,0),0)>0)*
(COLUMN(INDEX($B$3:$F$7,MATCH($A10,$A$3:$A$7,0),0))-COLUMN($A$2)),
COLUMN()-COLUMN($A$2)
)
),
"")
and drag it down and to the right.
- Carlo74Feb 17, 2020Copper Contributor
here's my original file on second sheet SergeiBaklan
tnx again
- SergeiBaklanFeb 17, 2020Diamond Contributor
Please check adjusted to your ranges formulas in attached file.
- Carlo74Feb 17, 2020Copper Contributor
- Carlo74Feb 17, 2020Copper Contributor
SergeiBaklan thank you,
doen't work for me yet, but I'll figure it out.
could you just explain what is in formula last part, two empty rows for A2 and A9?
=IFERROR(INDEX($A$3:$A$7,AGGREGATE(15,6,1/($G$3:$G$7>0)*(ROW($A$3:$A$7)-ROW($A$2)),ROW()-ROW($A$9))),"") - Carlo74Feb 17, 2020Copper ContributorThank you