+ Reply to Thread
Results 1 to 10 of 10

What is the maximum number of characters you can concatenate together...

  1. #1
    Registered User
    Join Date
    07-04-2012
    Location
    Portland, Oregon
    MS-Off Ver
    Excel 2003
    Posts
    6

    What is the maximum number of characters you can concatenate together...

    ... in a single cell?

    I'm working in Abiword and Open Office Calc, and I want to know this so my spreadsheets play nice with Excel.

    I have a 40 columns by 512 rows table of data, were each cell has two characters in it.

    Also, does concatenation fail because of a limit on how many things can be concatenated together, or because there's a limit to how many characters can be in a cell?

    One last thing: Is there a way to represent Windows line breaks as a character (or set of characters) in a cell?

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: What is the maximum number of characters you can concatenate together...

    Hello xibalba, and welcome to the forum. And Happy 4th of July!

    I believe the limit for the CONCATENATE() function (for Excel 2003) is 30. But you can avoid that by just joining things with an ampersand - like: =A1&B1&C1. That way you would just be limited to 1024 characters for a formula.

    I'm not sure what you mean by: "Is there a way to represent Windows line breaks as a character (or set of characters) in a cell?"
    If you mean, how do you get one in an Excel cell - you use Alt+Enter
    If you mean, what is the character code - it's CHAR(10) in Excel

  3. #3
    Registered User
    Join Date
    07-04-2012
    Location
    Portland, Oregon
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: What is the maximum number of characters you can concatenate together...

    Can concatenate work with ranges? I'm pretty sure it doesn't in Excel.

    Though I was aware of using ampersand to concatenate things together, I wasn't aware that there's a difference between the ampersand and concatenate. Thank you!

    So, if I wanted to get an massive table concatenated into a single cell, would I do something like this?

    http://imgur.com/opuXX
    http://imgur.com/Q3vIz
    http://imgur.com/7uNqk

    If I sort of stack the concatenation into formulas that are less than 1024 characters, then I can fit as many characters into a cell as I want?
    Last edited by xibalba; 07-04-2012 at 11:40 PM.

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: What is the maximum number of characters you can concatenate together...

    No, CONCATENATE() doesn't work with ranges.

    The CONCATENATE() function is very rarely used because it's just easier to input using the ampersand.

    Here is a link that shows Excel 2003's limitations: http://office.microsoft.com/en-us/ex...005199291.aspx

    Note the: "Length of cell contents (text) - 32,767 characters. Only 1,024 display in a cell; all 32,767 display in the formula bar."

  5. #5
    Registered User
    Join Date
    05-25-2017
    Location
    Columbus, OH, USA
    MS-Off Ver
    2016
    Posts
    2

    Re: What is the maximum number of characters you can concatenate together...

    Excel version 2016 - Cell can hold up to 32,767 characters.
    After that it will not add any characters. So if you use Concatenate or &, your last data may be truncated.

    40 Column, 512 Rows and 2 characters in each = 40 * 512 * 2 = 40960 length ( e.g. LEN(A1) )

    For your case: let's say Cell A1 has data A1, B1 has data B1,....J1 has J1,....AN1 has AN
    For you first row combination will be A1B1C1D1E1F1...AN. So I am guessing you are not adding any comma or anything to separate them.

    So if you concatenate by rows: concatenate 1st row which includes all 40 columns.
    You can combine 409 full rows with all 40 columns. But you will have 23 full columns from 410th row that is total of 32766 characters. So you will have only one character from 24th column.

    If you need to complete this entire thing, you can do in two separate part. 1st part will include 409 rows and 2nd part 103 rows and combined manually which cost you few additional minutes.

    If you have to do this frequently, you can create a macro which inputs this in word or notepad file.

    Hope this helps you.
    Last edited by chiragshelat; 05-25-2017 at 12:05 PM.

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,701

    Re: What is the maximum number of characters you can concatenate together...

    Quote Originally Posted by chiragshelat View Post
    ...Hope this helps you...
    As the thread is nearly 5 years old, I doubt if the contributors are still monitoring it.

    Pete

  7. #7
    Registered User
    Join Date
    05-25-2017
    Location
    Columbus, OH, USA
    MS-Off Ver
    2016
    Posts
    2

    Re: What is the maximum number of characters you can concatenate together...

    You are right Pete_UK, I did not notice this as this is my first reply ever on any site.

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,701

    Re: What is the maximum number of characters you can concatenate together...

    Don't worry about it - quite a few new members search for a thread that they can answer, without noticing the date it was started.

    Welcome to the Forum, by the way.

    Pete

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: What is the maximum number of characters you can concatenate together...

    I have done that myself before too LOL

    But thanks for the input, Im sure members will find it helpful
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  10. #10
    Registered User
    Join Date
    07-04-2012
    Location
    Portland, Oregon
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: What is the maximum number of characters you can concatenate together...

    Quote Originally Posted by Pete_UK View Post
    As the thread is nearly 5 years old, I doubt if the contributors are still monitoring it.
    yC0RGID.png


    Quote Originally Posted by chiragshelat View Post
    Excel version 2016 - Cell can hold up to 32,767 characters.
    After that it will not add any characters. So if you use Concatenate or &, your last data may be truncated.

    40 Column, 512 Rows and 2 characters in each = 40 * 512 * 2 = 40960 length ( e.g. LEN(A1) )

    For your case: let's say Cell A1 has data A1, B1 has data B1,....J1 has J1,....AN1 has AN
    For you first row combination will be A1B1C1D1E1F1...AN. So I am guessing you are not adding any comma or anything to separate them.

    So if you concatenate by rows: concatenate 1st row which includes all 40 columns.
    You can combine 409 full rows with all 40 columns. But you will have 23 full columns from 410th row that is total of 32766 characters. So you will have only one character from 24th column.

    If you need to complete this entire thing, you can do in two separate part. 1st part will include 409 rows and 2nd part 103 rows and combined manually which cost you few additional minutes.

    If you have to do this frequently, you can create a macro which inputs this in word or notepad file.

    Hope this helps you.

    QxdjKCf.gif
    Last edited by xibalba; 05-27-2017 at 03:39 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1