Hi talan, welcome to the forum.
This is called concatenation and is simple with just a few cells. STRING CONCATENATION is not really a built-in function of Excel (stringing together an entire range) so has to be added as a UserDefinedFunction (UDF).
Your needs are pretty simple. Here is a very basic UDF that will string together any range you list:
How to install the User Defined Function:
1. Open up your workbook
2. Get into VB Editor (Press Alt+F11)
3. Insert a new module (Insert > Module)
4. Copy and Paste in your code (given above)
5. Get out of VBA (Press Alt+Q)
6. Save your sheet
The function is installed and ready to use.
========
In a nutshell, the function is used like so:
=CONCATRANGE(A1:A100,"|")
The first parameter is the range
The second parameter is the delimiting character you want.
Since you want the PIPE to appear before and after your formula, insert those manually, like so:
="|" & CONCATRANGE(A1:A100, "|") & "|"
Bookmarks