Error: "The text string you entered is too long. Reduce the number of characters used or cancel this entry.

mattu1990

Board Regular
Joined
Mar 9, 2013
Messages
52
Hi Everyone,

I have a bit of a strange one here in Excel 2010. Basically I have a list of coordinates across from column B to column AWU and I need to concatenate them all into one cell with a space between each. In column AWV I am trying the following formula as an example.

<code>
=ConcatenateRange=(B4304:AWU4304)
</code>

The formula runs on this VBA (which adds a space between the coordinates in each cell.)

<code>
Function ConcatenateRange(rCells As Range)


'This function makes a concatenate range add a space between the contents of each cell
'in a selected range.


Dim vTemp As Variant
Application.Volatile


For Each vTemp In rCells
ConcatenateRange = ConcatenateRange & vTemp & " "
Next vTemp
End Function
</code>

the formula works fine and concatenates the contents. The problem however is when I then try copy and pasting the results somewhere else as "Paste Values"

I get the error as show in the title of this thread. The contents show in the cell but not in the formula bar. Every time that cell is then selected, the error shows.

The total cell contents does not exceed the 32,767 limit. It contains 25,000 or less.

Anyone know why this would happen?

Cheers,
 
OK do you think there is a way to solve my problem. Maybe even a VBA script could be used to tell Excel to ignore the first minus, but not actually take it out of the cell.
 
Upvote 0

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
So simple why didn't I think of that. Cheers Andrew works great.

It's a long and boring story as to why I need them in once cell.

Matt
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,334
Members
449,077
Latest member
Jocksteriom

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