array processing?

Danny54

Active Member
Joined
Jul 3, 2019
Messages
295
Office Version
  1. 365
Platform
  1. Windows
Can I get some ideas on how to process the following data? I have data in sheet 1 that contains two columns. (Make Assigned)
What I'm trying to do is process this data in sheet1 and create the output in sheet2.
In short, find all the unique Make and attach all the unique Assigned names delimited by a ";" to that make
Not certain if excel vba provides a function to handle this or not.
Any help would be appreciated

Thanks



Sheet1
MakeAssigned
chevyJohn
fordjohn1
buickjohn2
chevyjoe
buicksam
buicksally
Sheet2
MakeAssigned
chevyjohn; joe
fordjohn1
buickjohn2;sam;sally
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Any reason you want a macro, this can be easily done with formulae.
+Fluff 1.xlsm
AB
1MakeAssigned
2chevyJohn
3fordjohn1
4buickjohn2
5chevyjoe
6buicksam
7buicksally
8
Sheet1


+Fluff 1.xlsm
AB
1MakeAssigned
2chevyJohn; joe
3fordjohn1
4buickjohn2; sam; sally
5
Sheet2
Cell Formulas
RangeFormula
A2:A4A2=UNIQUE(FILTER(Sheet1!A2:A100,Sheet1!A2:A100<>""))
B2:B4B2=TEXTJOIN("; ",,FILTER(Sheet1!$B$2:$B$100,Sheet1!$A$2:$A$100=A2))
Dynamic array formulas.
 
Upvote 0
Solution
Thanks for the quick response. I took the formulas and inserted them into the vb code to achieve my new sheet.

Great solution!!

Have a good day and a great weekend
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,003
Messages
6,122,655
Members
449,091
Latest member
peppernaut

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