+ Reply to Thread
Results 1 to 4 of 4

Countif

  1. #1
    Registered User
    Join Date
    05-05-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Countif

    Hi guys,

    im using multiple sheets and i need to use complicated criteria...

    1) i need to find the cell in the ranges B4:B11 and K4:K11 that is equal to "Red" and then add the cell to the right of it to the overall sum...

    i.e. if G5 is "Red" then it will add the number in H5 to the overall sum with multiple sheets...

    2) now i need another formula which first finds the cell "Red' again in the same range as in 1)... but now i need it to do an IF statement or something that counts it as 1 if the number of one cell to the right of "Red" is greater than the number in another column.... Very bad explanation...

    Basically.. if G5 is "Red" and H5>L5 then count it as "1"... or if K6 is "Red" and L6>H6 then count it as "1"

    Very sorry for the bad explanations.. hope you can understand what i want to achieve...


    thanks again in advanced

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    re: COUNTIF

    Maybe a SUMPRODUCT formula..you don't say how far a range to count in, so here it is for G5:G100 -

    =SUMPRODUCT(--(G5:G100="red"),--(H5:H100>L5:L100))
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor mubashir aziz's Avatar
    Join Date
    03-18-2009
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2013
    Posts
    533

    re: COUNTIF

    if you are confused with your formula's or explanations then it always good to attached sample file with some sample data and examples ........
    If this post helps, Please don't 4get to click the star icon located at the bottom left of my Post.

  4. #4
    Registered User
    Join Date
    01-18-2009
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    3

    re: COUNTIF

    Just a quick thank you, I did a search and this resolved a data summation I was trying to do for a server list by OS and then by active/retired/planned.

+ 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