Forum

Notifications
Clear all

How can I combine kids' first names if they have the same parents?

6 Posts
2 Users
0 Reactions
93 Views
(@jycccwjc)
Posts: 64
Estimable Member
Topic starter
 

How can I combine kids' first names using formulas if they have the same parents?

1. If there is only one child, then we lease it as it is.

2. There are two kids, and their first names are A and B, respectively, then we combine their first names as A & B.

3. There are three kids, and their first names are A, B, and C, respectively, then we combine their first names as A & B & C.

Only up to three kids, the most.

 
Posted : 24/08/2022 7:07 pm
Riny van Eekelen
(@riny)
Posts: 1219
Member Moderator
 

Added a formula based solution to the file I uploaded with my answer to the same question, asking for a PQ solution.

How can I combine kids' first names with Power Query if they have the same parents? | Power Query | Excel Forum • My Online Training Hub

 

See attached.

 
Posted : 25/08/2022 1:34 am
(@jycccwjc)
Posts: 64
Estimable Member
Topic starter
 

Riny,

Yes, you have answered my question with the Power Query solution. It worked perfectly. Appreciated.

Now, I am looking if there is any formula (solution) I can apply to the table without resorting to Power Query.

 

Thanks!

 

Jim

 
Posted : 26/08/2022 12:42 pm
Riny van Eekelen
(@riny)
Posts: 1219
Member Moderator
 

The formula based solution is in the file I attached earlier. Or did I miss something?

 
Posted : 26/08/2022 1:05 pm
(@jycccwjc)
Posts: 64
Estimable Member
Topic starter
 

Riny,

I am sorry that I missed it. I checked it again and saw the solution. It is perfect. Thanks!

What would you recommend, formula or Power Query? Do you happen to know Power BI?

 

Appreciated!

 
Posted : 27/08/2022 1:21 pm
Riny van Eekelen
(@riny)
Posts: 1219
Member Moderator
 

Whatever you prefer. PQ is great for big data sets, but formulas work great as well. It may be more work to maintain them when the underlying data changes, but they don't need a Refresh. So, I have no real preference. It depends on the situation.

Regarding Power BI, yes I use it, but I would not call myself a real expert.

 
Posted : 27/08/2022 2:29 pm
Share: