+ Reply to Thread
Results 1 to 12 of 12

Countif: others?

Hybrid View

ansar Countif: others? 08-11-2009, 05:49 AM
zbor Re: Countif: others? 08-11-2009, 05:56 AM
DonkeyOte Re: Countif: others? 08-11-2009, 06:21 AM
ansar Re: Countif: another question 08-11-2009, 08:10 AM
zbor Re: Countif: others? 08-11-2009, 08:14 AM
DonkeyOte Re: Countif: others? 08-11-2009, 08:21 AM
ansar Re: Countif: others? 08-11-2009, 10:21 AM
DonkeyOte Re: Countif: others? 08-11-2009, 10:23 AM
zbor Re: Countif: others? 09-02-2009, 08:13 AM
ansar Re: Countif: others? 09-02-2009, 08:58 AM
  1. #1
    Registered User
    Join Date
    07-21-2009
    Location
    Devon, England
    MS-Off Ver
    Excel 2003
    Posts
    10

    Countif: others?

    Hi: I'm reasonably new to Excel, and have a fairly basic question to check out:
    I have been using the COUNTIF function to count up numbers of items in various categories in a column.
    The formulae I have been using are like this:
    =COUNTIF(F$3:F$201, "Red")

    or where I've wanted to combine various comments
    =SUM(COUNTIF(F$3:F$201,"Yellow")+COUNTIF(F$3:F$201,"Cream"))

    I'm not sure what formulae to use to count up
    1) the total number of entries in that column, so that I can make sure that I haven't missed some (without having to check manually!)

    2) how to count up the values that do not match the other categories that I have specified in the COUNTIFs: this would be a value for finding how many 'other' entries there are in that column, without having to specify those values
    Last edited by NBVC; 09-02-2009 at 09:35 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,037

    Re: Countif: others?

    you can count all minus those that you counted:

    =COUNTA(F$3:F$201)-COUNTIF(F$3:F$201, "Red")- etc

    or, even better to refer to those cells where you already sum it (from your example above):

    =COUNTA(F$3:F$201)-B2
    Never use Merged Cells in Excel

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Countif: others?

    ansar, welcome to the board...

    Quote Originally Posted by ansar View Post
    or where I've wanted to combine various comments
    =SUM(COUNTIF(F$3:F$201,"Yellow")+COUNTIF(F$3:F$201,"Cream"))
    FYI you can also write the above as:

    =SUM(COUNTIF(F$3:F$201,{"Yellow","Cream"}))
    useful if you have lots to add together as it prevents the formula from becoming too unwieldy

  4. #4
    Registered User
    Join Date
    07-21-2009
    Location
    Devon, England
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Countif: another question

    Thanks to both of you for your posts.....
    will input those into the spreadsheet

    I have another question......

    I want to do a bit more analysis, so want to count up number of entries where I have, say "red" in column D and "rough" in column F.
    I only want to count the "red" in column D if I have already satisfied the "rough" condition in column F

    I have tried to use IF AND and LOOKUP.....

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,037

    Re: Countif: others?

    try this (adjust ranges as you like)

    =SUMPRODUCT(--(D1:D999="red"),--(F1:F999="rough"))

    You can also add more conditions

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Countif: others?

    Have you thought of possibly using a Pivot Table(s) for your analysis ? See link in Sig. for general intro.

  7. #7
    Registered User
    Join Date
    07-21-2009
    Location
    Devon, England
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Countif: others?

    Hi thanks for replies again!

    Am having a go at the pivot table report, and have inputted row fields and column fields. Would now like program to count numbers for each of the intersecting fields.....
    or.....how do i choose a count option for the 'drop data items here' bit of the table?

  8. #8
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Countif: others?

    Use one of the fields you used for ROW Field again, you can use a field more than once, once in the DATA Field it's likely to default to Count (if non-numeric data field) - if not simply double click on the field and set to Count rather than Sum.

    If in doubt post a sample to reflect where you are and we can show you the missing pieces.

  9. #9
    Registered User
    Join Date
    07-21-2009
    Location
    Devon, England
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Countif: others?

    thanks again: that's worked well.....

  10. #10
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,037

    Re: Countif: others?

    Is this same problem or new (for new thread)?

  11. #11
    Registered User
    Join Date
    07-21-2009
    Location
    Devon, England
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Countif: others?

    yes it's a new thread....will set it up as such!

+ 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