+ Reply to Thread
Results 1 to 5 of 5

Count occurrences of text with various criteria

  1. #1
    Registered User
    Join Date
    12-18-2012
    Location
    São Paulo, Brasil
    MS-Off Ver
    Excel 2007
    Posts
    2

    Count occurrences of text with various criteria

    Hello everyone,

    I need to count occurrences of text in relation to two columns, ie:

    Column A has the names of all companies present in the municipalities of column B, but the criterion should be the column C, with counties already filtered.

    The result I seek is: how many companies there are in each municipality (count only once each company in each city).

    I uploaded the table here: http://www.sendspace.com/file/nfennx

    I do not know what function to use, help!

    Best to all
    Ludmila

  2. #2
    Forum Contributor dogberry's Avatar
    Join Date
    07-15-2012
    Location
    Wales, UK
    MS-Off Ver
    Excel 2010
    Posts
    624

    Re: Count occurrences of text with various criteria

    Hi

    Your file is a bit to large 4.51MB can you upload a sample file to this site, the response will be a lot better.

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.



    Chris
    Click my star if I helped Thanks

  3. #3
    Registered User
    Join Date
    12-18-2012
    Location
    São Paulo, Brasil
    MS-Off Ver
    Excel 2007
    Posts
    2

    Red face Re: Count occurrences of text with various criteria

    Hello Chris

    Thanks for the tip and explanation.. I've reduced a lot the file, so maybe you or someone else could give me a hand on this one!!

    Best to you

    Ludmila
    Attached Files Attached Files

  4. #4
    Forum Contributor dogberry's Avatar
    Join Date
    07-15-2012
    Location
    Wales, UK
    MS-Off Ver
    Excel 2010
    Posts
    624

    Re: Count occurrences of text with various criteria

    Hi

    Best way for me anyway. What I did was highlight columns 1 and 2. Advanced filter copy to new location unique values only. Ensure that copied is a range not a table. Click anywhere in the new range go to the data tab outline select subtotal change sum to count and that will give you the answers you need.


    Chris

  5. #5
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Count occurrences of text with various criteria

    Hi ludgirardi

    Would COUNTIF not do that!

    in D2 & copy down: =COUNTIF($B$2:$B$1316,C2)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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