This can easily be achieve with the help of a VBA code. But as far as the formula is concerned, you need several steps to achieve this. Lets take a simple and small example of this.
Lets say you have values in the range B1:K1 from 1 to 10.
Step 1. Type the following formula in the formula cell but don't press Enter.
Step 2. Now without pressing Enter, click in the formula bar and select the red colored range in the formula bar
Step 3. After selecting the red range, press F9 (Function Key) and your formula will become like this in the formula bar.
Step 4. Now delete the curly brackets (shown above in red)from the formula in the formula bar and your formula will look like this...
Step 5. Now press Enter to confirm the formula and you will get the following concatenated string in the formula cell.
If you want to use , (comma) as a separator, you may start with the following formula in step 1.
and select everything inside the brackets (shown below) before going to the step 3.
You may also use the key combination Ctrl + Shift + Right Arrow Key to select the data in a row i.e. select B1 and then use this key combination to select last cell with data in row1.
Does this help?
Bookmarks