merging rows

Copper Contributor

hi,

i have a table like this:

numberdogcatfish
123ab  
123  cd
123   
456jh  
456 ef 

 

and i want result look like this?

 

numberdogcatfish
123ab cd
456jhef 

 

there is any formula?

TY

 

 

6 Replies

@Eladnoam2 Perhaps you find the attached solution with Power Query useful.

Riny_van_Eekelen_0-1647331317869.png

 

@Eladnoam2 

The proposed solution with PQ is actually the most elegant, but here is an additional solution with VBA if you are not familiar with PQ.

 

NikolinoDE

I know I don't know anything (Socrates)

@Eladnoam2 

@Riny_van_Eekelen @NikolinoDE 

I think Riny has the edge but, just to show it is possible, here is a 365 formula.  

It all goes so well until you get the message that arrays of arrays are not supported.  Why?

Why have two dimensions on the sheet at all if you are not allowed arrays of arrays; here one row for each distinct number?

ty all!!!
@Peter Bartholomew
i cant copy ur formula.
@Riny_van_Eekelen
there is any simple guide that i can lear how to do it by my self to my data?
ty again!

@Eladnoam2 Power Query isn't simple, but it isn't all that difficult either. The link below is a good starting point, but you have to invest some time to learn it.

https://exceloffthegrid.com/power-query-introduction/