+ Reply to Thread
Results 1 to 12 of 12

Which function do i have to use for counting only the names in one column ?

  1. #1
    Registered User
    Join Date
    05-22-2018
    Location
    Greece
    MS-Off Ver
    2007
    Posts
    12

    Cool Which function do i have to use for counting only the names in one column ?

    Hello everyone!

    Good morning! So, here is my question that i need your help.

    1) Which function do i have to use to count names of, for example companies? i have for example the name of that companies: Seaways,SharkWays,MonkeyWays,Universe,etc I found that i can do that with pivot table or the function counta, although counta, count the number of cells in a range that are not empty .
    Last edited by detektiv; 06-10-2018 at 07:34 AM.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: Which functios do i have to use ;

    look at countif like =countif(range,name of company)
    AND, depending on your computer settings it may be =countif(range to be counted; name of company)
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    05-22-2018
    Location
    Greece
    MS-Off Ver
    2007
    Posts
    12

    Re: Which functios do i have to use ;

    Thank you for the answer Sambo kid!

    I got your point for the countif but if i have unique companies , i mean that if it shows only 1 time how can i count them.

    Ive the companies A B C D E F G and want to count them , obviously there are 7 companies but with which function ?

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: Which functios do i have to use ;

    I'm not really sure of you question. If you create a distinct list of the companies and point to them, say the list begins in cell C2 of the seven companies and the company list is in A2 through A100, then =COUNTIF($A$2:$A$100,C2) will count the number of times the company in C2 appears in your list.
    to get a better, more complete answer you might have to post a sample workbook with sensitive/proprietary data removed and your expected results.
    to post a sheet, use the "go advanced" button at the bottom right of this window, then midway down use the "manage attachments" then upload the sheet, hint it is easiest if you simply save the sample sheet to your desktop as that is the quickest way to get to it to attach it.

  5. #5
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: Which functios do i have to use ;

    please provide an example file.. counting unique company names (also distinct count) is not that easy in excel and cannot be explained only on wrtiting a message.
    In an example file it wull be possible to build a formula to match your needs.
    So make sure the example is a good representation of your original file.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Which functios do i have to use ;

    Welcome to the forum! Please take a moment to re-read forum rule #1 and then amend your thread title to something that better explains your problem. Changing your thread title is not optional, which means you must change it. Thanks!

    • Use concise, accurate thread titles.
    • Your post title should describe your problem, not your anticipated solution.
    • Use terms appropriate to a Google search - poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice tell us nothing.
    • Responding to a request to change your thread title by doing so is mandatory.

    To change a title go to your first post, click EDIT then Go Advanced and change your title.

    No help to be offered, please, until the OP complies with this request.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Registered User
    Join Date
    05-22-2018
    Location
    Greece
    MS-Off Ver
    2007
    Posts
    12

    Re: Which function do i have to use for counting only the names in one column ?

    companies.png Here are a print screen

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Which function do i have to use for counting only the names in one column ?

    Firstly, thank you for updating the title.

    Try this:

    =COUNTA(A2:A6)

    If you want unique values:

    =SUMPRODUCT(1/COUNTIF(A2:A6,A2:A6))

  9. #9
    Registered User
    Join Date
    05-22-2018
    Location
    Greece
    MS-Off Ver
    2007
    Posts
    12

    Re: Which functios do i have to use ;

    Thank you! i'll try next time to be more specific with my question and details as well.
    Last edited by AliGW; 06-10-2018 at 07:47 AM. Reason: Unnecessary quotation removed.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Which function do i have to use for counting only the names in one column ?

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  11. #11
    Registered User
    Join Date
    05-22-2018
    Location
    Greece
    MS-Off Ver
    2007
    Posts
    12

    Re: Which function do i have to use for counting only the names in one column ?

    Ok i got this! I ll use the counta , sumproduct didnt help.

    Thank you and thank you all for the answers. Next time i ll just upload print screens to be more specific for what iam asking for.

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Which function do i have to use for counting only the names in one column ?

    The SUMPRODUCT solution is for when you have a list of duplicates, but you wish to count unique values. If there are blanks in the range, you will need this:

    =SUMPRODUCT(1/COUNTIF(A2:A6,A2:A6&""))

+ 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. Excel Functios
    By mario069 in forum Excel General
    Replies: 0
    Last Post: 05-21-2005, 01:33 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