+ Reply to Thread
Results 1 to 8 of 8

Thread: Countif

  1. #1
    Registered User
    Join Date
    12-29-2008
    Location
    united, states
    MS-Off Ver
    Excel 2003
    Posts
    18

    Countif

    i need to count based on 2 seperate sets of criteria in the same row.

    column G houses the total number of hits as a number,
    Column E holds the division
    Column B holds the job title,

    rows 2 through 222

    i need to sum up the numbers in each G field, where the G and E field match a specific text criteria.

    is this possible with sum if or count if?
    Last edited by NBVC; 04-03-2009 at 10:29 AM.

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

    Re: Countif

    You need Sumproduct()

    e.g.

    =Sumproduct(--(B2:B100="B_Criteria"),--(E2:E100="E_Criteria),G2:G100)
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    12-29-2008
    Location
    united, states
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Countif

    thank you, i will try sum product,
    i was trying to use this as suggested elsewhere, but have not gotten it to work.
    IF((E$2:E$222="New Business"),SUMIF(B$2:B$222,"Account Relations Executive",G$2:G$222),"0" )

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

    Re: Countif

    Not show who suggested that but I don't think it will work for what I think you are wanting to accomplish....

    Note: If you post same question in multiple forums, you need to provide the links as per our forum rules.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  5. #5
    Registered User
    Join Date
    12-29-2008
    Location
    united, states
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Countif

    Quote Originally Posted by NBVC View Post
    Not show who suggested that but I don't think it will work for what I think you are wanting to accomplish....

    Note: If you post same question in multiple forums, you need to provide the links as per our forum rules.
    i read it on another forum, from another post.

  6. #6
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Countif

    Quote Originally Posted by trixxnixon View Post
    i read it on another forum, from another post.
    Ok thanks...

    Let us know how it works out.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  7. #7
    Registered User
    Join Date
    12-29-2008
    Location
    united, states
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Countif

    Quote Originally Posted by NBVC View Post
    Ok thanks...

    Let us know how it works out.
    i ended up using the concentrate function, and then using a sum if function.
    i couldnt figure out for the life of me how to get the other to work


    Thanks for all of your help

  8. #8
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Countif

    This should do what you need...

    =Sumproduct(--(B$2:B$222,"Account Relations Executive"),--(E$2:E$222="New Business"),G2:G100)
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

+ 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.2.0