Concatenate Text with Same Seq No

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
I think you'll need a custom function.

Try this custom function:


Code:
Function ConTex(Seq, SeqRng, TypRng)

    Dim i As Long
    
    ConTex = Seq
    For i = 1 To SeqRng.Count
        If SeqRng(i) = Seq Then
            ConTex = ConTex & " " & TypRng(i)
        End If
    Next i

End Function


Then you can use the function in your table using one of these formulas:

=ConTex([@SeqNo],[SeqNo],[Type])

=ConTex(Table1[@SeqNo],Table1[SeqNo],Table1[Type])

=ConTex($A2,$A$2:$A$9,$B$2:$B$9)
 
Upvote 0
gpeacock, you stumbled into the power pivot forum, that probably won't help xlbob :)

Bob, I am hesitant to say... "not possible", but... I'm scared. If you have any way to massage that data BEFORE you get into Power Pivot... do that, cuz i have no idea how to pull this one off.
 
Upvote 0
I talked with Rob and he agrees... without a ConcatenateX function, you are kinda stuck.

If you have a fixed (and relatively small) number of Types per SeqNo... we can probably pull of something incredibly hacky with huge nested if's, dogs and cats living together, etc...
 
Upvote 0

Forum statistics

Threads
1,224,041
Messages
6,176,026
Members
452,697
Latest member
CuriousSpreadsheet

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top