+ Reply to Thread
Results 1 to 7 of 7

Letter count in each word of text

  1. #1
    Registered User
    Join Date
    11-08-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    22

    Letter count in each word of text

    Hi There,

    I am trying to find a formula that will count and return a breakdown of the letters in each word of a cell.

    ie. If A1 had text "The Hunchback of Notre Dame" then cell A2 should return "3 9 2 5 4" (3 letters in "The" 9 letters in "Hunchback" etc).

    This needs to continue to count for however many works are in A1 and provide the breakdown of letters in each word.

    Any thoughts would be helpful.

    Thanks in advance for your time.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Letter count in each word of text

    Power Query

    words list cnt
    The Hunchback of Notre Dame. The Hunchback of Notre Dame. 3,9,2,5,4
    Letter count in each word of text Letter count in each word of text 6,5,2,4,4,2,4
    HOW TO ATTACH YOUR
    SAMPLE WORKBOOK
    HOW TO ATTACH YOUR
    SAMPLE WORKBOOK
    3,2,6,4,6,8
    I am trying to find a formula, that will count and
    return a breakdown of the letters
    in each word of a cell
    I am trying to find a formula, that will count and
    return a breakdown of the letters
    in each word of a cell
    1,2,6,2,4,1,7,4,4,5,3,6,1,9,2,3,7,2,4,4,2,1,4


    or

    Result
    I am trying to find a formula, that will count and return a breakdown of the letters in each word of a cell
    1,2,6,2,4,1,7,4,4,5,3,6,1,9,2,3,7,2,4,4,2,1,4


    is that what you want?

    Edit:
    XL2010 require Power Query add-in to use Power Query (free add-in from MS site)
    Last edited by sandy666; 12-01-2022 at 10:25 PM.

  3. #3
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Letter count in each word of text

    what is the result if

    semi-final

    or full stop at the end of sentences or paragraph.

    Regards.

    Note: I'm just wonder , can't find the solution yet.

  4. #4
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    3,198

    Re: Letter count in each word of text

    Are you still using Excel 2010? If you are using 365 or 2021, you could use this:

    =TEXTJOIN(" ",,LEN(TEXTSPLIT(A1," ")))

  5. #5
    Registered User
    Join Date
    11-08-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Letter count in each word of text

    Quote Originally Posted by Gregb11 View Post
    Are you still using Excel 2010? If you are using 365 or 2021, you could use this:

    =TEXTJOIN(" ",,LEN(TEXTSPLIT(A1," ")))
    Thank-you all for your time - this formula has worked perfectly!

  6. #6
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    3,198

    Re: Letter count in each word of text

    Glad it worked, but if it did, your Version is incorrect in your profile. Please update it. Many folks may not have answered because of your version.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Letter count in each word of text

    Benlinus, pleasde take a moment to bring your profile up to date! You are NOT using Excel 2010.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

+ 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. count if a text has a letter in the second position
    By Optimuswicked in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-25-2022, 12:31 AM
  2. [SOLVED] Count of most frequent letter in each text string within an array
    By chris01395 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-28-2022, 08:14 AM
  3. Count the number of times a letter appears next to a word.
    By Turfgreen in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-29-2020, 10:05 PM
  4. [SOLVED] Extract Two Letter Word from Text in Cell
    By alyon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-02-2018, 11:30 AM
  5. [SOLVED] IF number/text in a cell begins with specific letter, then return desired word
    By BPSJACK in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-28-2013, 06:02 AM
  6. Replies: 6
    Last Post: 07-03-2011, 08:08 PM
  7. Count text that ends in certain letter
    By desk.doc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-22-2007, 10:45 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