Concatenating rows

SaladProblems

Active Member
Joined
Apr 9, 2010
Messages
279
Hi, I'm not sure of the best order to list everything, but here's the query I'm working with and its result:

bHGkQ.jpg

lEx25.jpg


What I would like to do is generate a query that will list each company once and then concatenate all of the descriptors the next field with tildes. In this example it would be:

1170 BROADCASTRADIO INC, PUBLIC RELATIONS~COMMUNICATIONS CONSULTANTS~ADVER....

The data is coming from http://www.nylovesmwbe.ny.gov/cf/search.cfm - the DB I'm using can be downloaded directly from there, and the reason why I want to concatenate it like that is our own database which I don't want to risk damaging by running queries takes information on an Excel sheet in that format.

It's not a big deal for me personally to export it as-is and then clean it up in Excel, but I would like to cut this down to one step for the people who will actually be using it - it'll be done at least once a month indefinitely so I'm aiming for a repeatable solution.

There aren't enough descriptors per company to reach 255 characters, and I'm using Access 2010 - I converted the mdb they have to an ACCDB, and the key field ID_num is set to text in the first table and is numeric in the others in case you download it and mess around with it at all.

I apologize if this problem is a dead horse - I've tried a few solution with limited results, and found a couple of threads on this site with expired links, but a consistent solution has been elusive for me.
 
Last edited:

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Forum statistics

Threads
1,224,520
Messages
6,179,267
Members
452,902
Latest member
Knuddeluff

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