+ Reply to Thread
Results 1 to 5 of 5

Countif / Counta

  1. #1
    Registered User
    Join Date
    11-28-2011
    Location
    Houston, TX
    MS-Off Ver
    Excel 2010
    Posts
    73

    Countif / Counta

    I have a worksheet with company names, due dates, and mail dates. There is a column that produces a simple "Yes", "No", depending on whether or not the product shipped in the estimated time. From here I use a simple countif(range,"Yes")/Counta(range) to get the percentage of Yes and one for No.

    One particular company is more important than the rest so I would like to do this based on the company's name. The company's are listed in column E.

    I want to know "company A's" Yes, No stats???

    I usually wind up with True / False answers

    Any help is appreciated.

  2. #2
    Registered User
    Join Date
    12-16-2012
    Location
    the dfairgar
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Countif / Counta

    You can use Countifs and sumifs to allow you to set a tighter criteria based off of the company name.

    =countifs(A1:A20,"Company Name",B1:B20,"yes") This will tell you all the Yes's for that specific company. Then you can divide it using the same formula for the no's.

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Countif / Counta

    Use pivot table for that kind of work.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Countif / Counta

    Assuming Company A doesn't appear on the list without a Yes or No, building on ScoGeosan's formula:

    =COUNTIFS(A1:A20,"Company A",D1:D20,"Yes")/COUNTIF(A1:A20,"Company A") will give you the percentage
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  5. #5
    Registered User
    Join Date
    11-28-2011
    Location
    Houston, TX
    MS-Off Ver
    Excel 2010
    Posts
    73

    Re: Countif / Counta

    Quote Originally Posted by gak67 View Post
    Assuming Company A doesn't appear on the list without a Yes or No, building on ScoGeosan's formula:

    =COUNTIFS(A1:A20,"Company A",D1:D20,"Yes")/COUNTIF(A1:A20,"Company A") will give you the percentage
    Yes, a pivot table would have worked but gak67 gave me what I was looking for.

    Thank you all for your help!

+ 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 2007 : CountIF or CountA
    By bjohnsonac in forum Excel General
    Replies: 3
    Last Post: 01-24-2011, 12:46 PM
  2. Excel 2007 : CountA and CountIF
    By DentonHTHS in forum Excel General
    Replies: 3
    Last Post: 04-05-2010, 12:44 AM
  3. [SOLVED] CountIF, CountA,Which one? or neither?
    By amy in forum Excel General
    Replies: 2
    Last Post: 07-20-2005, 04:05 PM
  4. [SOLVED] COUNTA, COUNTIF?
    By Newbie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-18-2005, 08:06 AM
  5. Counta + Countif
    By maswinney in forum Excel General
    Replies: 0
    Last Post: 02-23-2005, 04:54 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