+ Reply to Thread
Results 1 to 9 of 9

Concatenate max cell limit issue

  1. #1
    Registered User
    Join Date
    11-15-2012
    Location
    NY, USA
    MS-Off Ver
    Excel 2010
    Posts
    44

    Concatenate max cell limit issue

    Hi, I have a macro that concatenates everything in column A as long as A<>"" and in between cell values it inserts a ",".
    The issue I am running into is exceeding the max char length of a cell (32767). What I am trying to do is to include in the macro the following step.
    If char length is greater than 32767, find the last "," and move the remaining rows that couldn't fit in the first cell into the next cell below and this would be a loop.
    So values start from A2, goes up to A9000, and in B2 the concatenated values populate when the macro is done. Since B2 cant hold more than 32767 I would like the rest to go in B3 and so on.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Concatenate max cell limit issue

    Nope

    you should be testing the potential length before adding the next cell.

    then your code would be quite simple.

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Concatenate max cell limit issue

    Something like this.


    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    11-15-2012
    Location
    NY, USA
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Concatenate max cell limit issue

    Thanks for the prompt response and solution. The macro is only running successfully if I exceed the max len. Can you please advise what I need to do if it does not exceed the max len?

  5. #5
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Concatenate max cell limit issue

    Given mehmetcik suggestion, perhaps this could work if the output does not exceed the max len:

    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Concatenate max cell limit issue

    N8237 - glad to see the thread is solved. The rep increase you gave me were very much appreciated.
    Last edited by berlan; 11-21-2013 at 09:56 PM.

  7. #7
    Registered User
    Join Date
    11-15-2012
    Location
    NY, USA
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Concatenate max cell limit issue

    Sorry 1 last question, when this creates the second line, the first 2 values in the second output cell get concatenated without "," and I would also like to remove the last "," from the last cell.

  8. #8
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Concatenate max cell limit issue

    Try this:

    Please Login or Register  to view this content.

  9. #9
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Concatenate max cell limit issue

    Minor change:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Excel calculation Limit Issue
    By JayReina in forum Excel General
    Replies: 3
    Last Post: 08-07-2013, 01:15 PM
  2. Excel calculation Limit Issue
    By JayReina in forum Excel General
    Replies: 1
    Last Post: 08-07-2013, 01:08 PM
  3. CONCATENATE function - I am running into the limit in excel 2010
    By James C in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-01-2013, 12:48 PM
  4. Issue With Lookup 255 Character Limit
    By Greenal in forum Excel General
    Replies: 37
    Last Post: 09-09-2011, 03:33 PM
  5. Concatenate and then limit # of characters
    By SP in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-31-2005, 09:06 PM

Tags for this Thread

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