+ Reply to Thread
Results 1 to 18 of 18

Count number of different words in a list

  1. #1
    Registered User
    Join Date
    03-31-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    35

    Count number of different words in a list

    Hi Excel People

    I have a large list of names in my excel in just one column! I want to count how many these names are different, and I would like to use a formula....any suggestions?

    To be clear is basically to count the number of different names in a column,

    Thank you so much for your help!

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Count number of different words in a list

    =sum(--(match(diap,diap,)=row(diap))) as CSE
    diap's first row is 1

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

    Re: Count number of different words in a list

    How large is the list?

    Try something like this...

    =SUMPRODUCT(1/COUNTIF(A1:A100,A1:A100))

    Assumes no empty cells within the list.

    If the list is 1000's of rows then a better formula can be created.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    03-31-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Count number of different words in a list

    this is not working can anyone help me please?

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Count number of different words in a list

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

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

    Re: Count number of different words in a list

    Quote Originally Posted by pedro90 View Post
    this is not working
    Can you be more specific about what does "not working" mean?

    Do you get an error? An incorrect result? Something else?

    Can you post a SMALL sample file and show us what result you expect?

    A SMALL file will have about 20 rows worth of data.

  7. #7
    Registered User
    Join Date
    03-31-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Count number of different words in a list

    Here you have a template of the excel I would like to work on.... I would like to count how many different countries are in that list...
    Attached Files Attached Files

  8. #8
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Count number of different words in a list

    Hi.

    I can't seem to see your attempt at using the solution provided by Tony Valko in this file (?)

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  9. #9
    Registered User
    Join Date
    03-31-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Count number of different words in a list

    Hi XOR LX,

    I tried but unfortunately it gives me an error type !NAME...i guess that his formula would only result with number...not with words...
    Attached Files Attached Files

  10. #10
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Count number of different words in a list

    If your version of Excel is using a language other than English, then you'll need to translate the formula accordingly.

    For example, in Portuguese:

    =SOMARPRODUTO(1/CONTAR.SE(D5:D36;D5:D36))

    (And your end reference should be 36, not 37, otherwise you'll have a circular reference.)

    Regards

  11. #11
    Registered User
    Join Date
    03-31-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Count number of different words in a list

    Hello XOR LX,

    I tried this right now and unfortunately did not work as well I really think that's something to do with the fact of the list is composed by words instead of number...but I don't know how to figger this out...

  12. #12
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Count number of different words in a list

    Please be more specific than "did not work". What result did you get?

    Are you using a Portuguese-language version of Excel or not? If not, which language?

    If you are using a Portuguese-language version, please re-upload your workbook with the Portuguese formula I gave you added.

    Regards

  13. #13
    Registered User
    Join Date
    03-31-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Count number of different words in a list

    Yes yes I'm using Portuguese version! Here it is the file ...thanks for the help
    Attached Files Attached Files

  14. #14
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Count number of different words in a list

    I don't understand.

    The formula in there is:

    =SUMPRODUCT(1/CONTAR.SE(D5:D36,D5:D36))

    That's not at all what I gave in post #10.

    Regards

  15. #15
    Registered User
    Join Date
    03-31-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Count number of different words in a list

    Thank you so much for being so pacient with me!

    I used this formula that you suggested but maybe I did not save before I show you...
    Attached Files Attached Files

  16. #16
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Count number of different words in a list

    Hmmm.

    Did you get a #NAME? error again? Maybe your language version is actually "Brazilian" Portuguese, not "Portuguese" Portuguese?

    Perhaps this works for you?

    =SOMARPRODUTO(1/CONT.SE(D5:D36;D5:D36))

    Regards

  17. #17
    Registered User
    Join Date
    03-31-2014
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Count number of different words in a list

    It worked Thanks a lot

  18. #18
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Count number of different words in a list

    You're welcome!

+ 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. Replies: 5
    Last Post: 09-02-2014, 03:49 PM
  2. [SOLVED] How to count the number of cells that contain a number of words?
    By Michad95 in forum Excel General
    Replies: 4
    Last Post: 11-16-2013, 07:18 AM
  3. [SOLVED] number count two different words
    By m_789 in forum Excel General
    Replies: 3
    Last Post: 09-19-2013, 10:15 AM
  4. [SOLVED] How can we count the number of words in Excel
    By otterandrews in forum Excel General
    Replies: 7
    Last Post: 06-13-2012, 04:00 AM
  5. How do I count the number of words in a cell?
    By Phil in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-02-2006, 02:20 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