Forum Discussion

Carlo74's avatar
Carlo74
Copper Contributor
Feb 16, 2020

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

11 Replies

  • Patrick2788's avatar
    Patrick2788
    Silver Contributor

    Carlo74 

    Dynamic array solution:

    =IFERROR(FILTER(FILTER($C$3:$Z$3&$C$3:$Z$27,$B$3:$B$27=$B30),LEFT(FILTER($C$3:$Z$27&$C$3:$Z$3,$B$3:$B$27=$B30))<>"0"),"")

    • Carlo74's avatar
      Carlo74
      Copper Contributor

      Patrick2788 ,

      Thanks

      this solution also works great, but I can't use dynamic formulas because it cant be inserted into a table.

      I need table because flow cannot rad data outside a table.

      but tnx, this is great solution, I hope I will learn to write similiar formulas one day 🙂

       

  • SergeiBaklan's avatar
    SergeiBaklan
    Diamond Contributor

    Carlo74 

    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.

  • drvikasbhardwaj's avatar
    drvikasbhardwaj
    Copper Contributor

    Carlo74  are you use the "& "or not because this is use as  jointed before that & also good from Concatenate_Range

Resources