+ Reply to Thread
Results 1 to 5 of 5

If cell length is over 40, take all characters after the 40 and put them in another cell

  1. #1
    Registered User
    Join Date
    01-10-2012
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    62

    If cell length is over 40, take all characters after the 40 and put them in another cell

    Hi all,

    Can I use VBA to accomplish this? If cell length is over 40, take all characters after the 40 and put them in another cell.

    This is what I'm looking for;
    For all rows in Sheet1 if column E has a length over 40 characters then move all additional characters, after the 40, to the same row, but in column F.


    Thanks in advance

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: If cell length is over 40, take all characters after the 40 and put them in another ce

    E.g.
    Please Login or Register  to view this content.
    Last edited by StephenR; 12-15-2014 at 12:02 PM.

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: If cell length is over 40, take all characters after the 40 and put them in another ce

    Maybe:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    01-10-2012
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: If cell length is over 40, take all characters after the 40 and put them in another ce

    Thanks guys! Both are good solutions. i went with John's solution as it was necessary to count the rows. I appreciate all of the help!

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: If cell length is over 40, take all characters after the 40 and put them in another ce

    You're welcome. Glad to help out and thanks for the feedback.

+ 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. Disallow special characters & have cell length
    By kpxxx in forum Excel General
    Replies: 4
    Last Post: 04-23-2014, 02:27 PM
  2. [SOLVED] Shorten string length if exceeds 31 characters (max sheet name length)
    By r2fro in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-03-2014, 05:57 AM
  3. Length of a cell with fixed characters including spaces
    By treboll in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-19-2013, 02:59 PM
  4. [SOLVED] Cell length VBA to add trailing characters until a specified length is reached
    By bkeller83 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-24-2013, 10:43 PM
  5. Replies: 3
    Last Post: 03-08-2012, 03:52 PM

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