+ Reply to Thread
Results 1 to 2 of 2

Is it possible to count the length of the text in the second line in a cell?

  1. #1
    Registered User
    Join Date
    01-27-2009
    Location
    Australia
    MS-Off Ver
    Excel 2002, 2010
    Posts
    42

    Is it possible to count the length of the text in the second line in a cell?

    Hello,

    In a single cell, there are two lines of texts:

    Hello
    World

    I had used Len((Sheets("arbitrary").cell(1,1).value), and Excel told me that it was 11.

    I want to know the length of the word, World, in the second line in the cell.

    Could you help please?

    Thank you.

  2. #2
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: Is it possible to count the length of the text in the second line in a cell?

    Hi,
    Basically you need to find character position where new line starts and ends.
    In case cell A1 contans text (two line cell):
    "ABC
    World"

    Find new line symbol within this cell:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This should give you 4.
    Then just use
    Formula: copy to clipboard
    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. How to count the length in a cell
    By marcmade in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-24-2016, 09:52 AM
  2. Replies: 4
    Last Post: 08-13-2014, 11:03 PM
  3. [SOLVED] for every line I browse make a count and post this count in a cell (fiouuu)
    By historic777 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-30-2013, 06:41 AM
  4. [SOLVED] count the length of each cell in a row and change color if greater than 24
    By mshirley15 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-09-2012, 04:21 PM
  5. Count the length of a text string in a cell
    By salvatore_m in forum Excel General
    Replies: 2
    Last Post: 08-13-2007, 11:57 AM
  6. count length for each line in one cell
    By christopheb in forum Excel General
    Replies: 16
    Last Post: 11-07-2006, 12:26 PM
  7. Replies: 6
    Last Post: 07-12-2005, 04:05 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