+ Reply to Thread
Results 1 to 8 of 8

Count words with a specific length

  1. #1
    Forum Contributor
    Join Date
    12-25-2012
    Location
    gent,belgium
    MS-Off Ver
    Excel 2021
    Posts
    146

    Count words with a specific length

    Hi
    The problem is want count the number of word that have to character.
    a part of the table is

    I have the following values and text in a colum

    11
    KD
    12
    CO
    13
    V
    14
    KDNM

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Count words with a specific length

    Try this, where your range is A1:A8:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Forum Contributor
    Join Date
    12-25-2012
    Location
    gent,belgium
    MS-Off Ver
    Excel 2021
    Posts
    146

    Re: Count words with a specific length

    The formule count also the numbers that is not what i need i have to count only the text that have len <=2

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count words with a specific length

    Quote Originally Posted by glda19 View Post
    The formule count also the numbers that is not what i need i have to count only the text that have len <=2
    Maybe this...

    =SUMPRODUCT(--(LEN(A1:A8)<=2),--ISTEXT(A1:A8))

    You may have to replace the comma with a semi-colon.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Contributor
    Join Date
    12-25-2012
    Location
    gent,belgium
    MS-Off Ver
    Excel 2021
    Posts
    146

    Re: Count words with a specific length

    what means -- in the formula

  6. #6
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Count words with a specific length

    -- forces a true/false into a 1/0, to be multiplied against the other 1/0 in the LEN formula. Only if both values are 1 will the value add, (1 X 0 = 0)


    try it out in excel by typing =true() then =--true()
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  7. #7
    Forum Contributor
    Join Date
    12-25-2012
    Location
    gent,belgium
    MS-Off Ver
    Excel 2021
    Posts
    146

    Re: Count words with a specific length

    thx for your help

    What is better to do it so or to count the bacground collor

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count words with a specific length

    Quote Originally Posted by glda19 View Post
    What is better to do it so or to count the bacground collor
    It is not a good practice to base calculations on cell formats.

    Base the calculation on the cell data.

+ 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 number of specific words in a spreadsheet
    By Idler in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 11
    Last Post: 12-06-2015, 07:18 PM
  2. Replies: 2
    Last Post: 12-06-2015, 11:49 AM
  3. how to count specific words in a cell range
    By 1.zer0 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 10-08-2015, 12:02 PM
  4. [SOLVED] Finding a formula that will consider length of cell and length of words
    By Mariah B in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-07-2013, 05:39 PM
  5. Count if specific words in cell
    By este994 in forum Excel General
    Replies: 2
    Last Post: 04-05-2012, 10:07 AM
  6. Recognise and count specific words
    By BBoyAl in forum Excel General
    Replies: 2
    Last Post: 03-23-2012, 05:15 PM
  7. Replies: 1
    Last Post: 06-15-2006, 04:29 AM

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