+ Reply to Thread
Results 1 to 4 of 4

Countif multiple conditions

  1. #1
    Registered User
    Join Date
    01-20-2008
    Location
    Sevenoaks, Kent Great Britain
    MS-Off Ver
    2010
    Posts
    54

    Countif multiple conditions

    Hi I want to be able to look at two columns and set a criteria to count. I want to look at column A and if its blank then look at column B and if it has a value of more than 0 then count.

    A B
    1 1.00
    2 Yes 4.78
    3
    4 5.00
    5 Yes 4.89
    6 11.99

    So this example would count 3

    If that all makes sense.

    David
    Last edited by EXCELNEWCOMER; 01-15-2010 at 02:22 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Help with Countif

    Try

    =Sumproduct(--(A1:A100=""),--(B1:B100>0))

    adjust ranges to suit
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    01-20-2008
    Location
    Sevenoaks, Kent Great Britain
    MS-Off Ver
    2010
    Posts
    54

    Re: Help with Countif

    Many thanks for your help. If you have time could you explain how each bit works ?

    David

    Quote Originally Posted by NBVC View Post
    Try

    =Sumproduct(--(A1:A100=""),--(B1:B100>0))

    adjust ranges to suit

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Countif multiple conditions

    Check out this site for a good read: http://www.xldynamic.com/source/xld.SUMPRODUCT.html

+ 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