+ Reply to Thread
Results 1 to 6 of 6

basic count if formula help

  1. #1
    Forum Contributor
    Join Date
    04-23-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    107

    basic count if formula help

    Hi

    I would be very grateful if someone could help with with the following problem.

    if you look at the attachment, I need to have a countif formula in cell f4. The formula will need to 'if the contents of cell f2 exists in the range of data from A3 to B15, then count the number of times that 0 occurs in column B... So in this instance the value returned would be 3. Then you you typed 'yellow' into cell f2 the result would change to 2.

    I hope this makes sense I haven't described it brilliantly.
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: basic count if formula help

    use countifs
    =COUNTIFS(A3:A15, F2, B3:B15, 0)
    Last edited by martindwilson; 08-28-2012 at 11:48 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Contributor
    Join Date
    04-23-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    107

    Re: basic count if formula help

    im trying to, but im struggling to make it work, as its been years since i had to write any proper formulas... im not sure how to tell it to count the zeroes.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: basic count if formula help

    see above, i put the formula

  5. #5
    Forum Contributor
    Join Date
    04-23-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    107

    Re: basic count if formula help

    lovely stuff thanks

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: basic count if formula help

    @ Backroomgeeza

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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