+ Reply to Thread
Results 1 to 17 of 17

Excel 2007 : problem with countif and sumif non continuous cells

  1. #1
    Forum Contributor
    Join Date
    11-28-2011
    Location
    puerto rico
    MS-Off Ver
    Excel 2007
    Posts
    113

    problem with countif and sumif non continuous cells

    Hi everyone, i need help please... i have this formula =IF(SUM(F10:F114)=0,"",COUNTIF(F10:F114,">=90")) it works for what i want if the cell are continous but i need it to do the same with not continous cells.... i need to do it with cell f11,14,17,20,23,26 and so on until cell 114

    is it possible?
    Last edited by lizsantiago07; 06-11-2012 at 04:55 PM.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: problem with countif and sumif non continuous cells

    Hi Lizsantiago07,

    What is the difference when cell are continuous or non continuous.. are your referring to blank cells ?

    Upload a sample file...


    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Contributor
    Join Date
    11-28-2011
    Location
    puerto rico
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: problem with countif and sumif non continuous cells

    No they are not blank, the other cells have numbers too but i dont want to include them in the formula so if i use f10:f114 it will sum and count everything and what i need is f11,14,17,20,23,26 and so on until cell 114 basically every 3 cells
    Attached Files Attached Files
    Last edited by lizsantiago07; 06-11-2012 at 01:23 PM.

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: problem with countif and sumif non continuous cells

    Hi lizsantiago07,

    You can use a dynamic name for this kind of range... see the attached file where I have used a dynamic name "data" .. press Ctrl + F3 to see the name and it's definition.. thanks.

    dynamic name example.xlsx
    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  5. #5
    Forum Contributor
    Join Date
    11-28-2011
    Location
    puerto rico
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: problem with countif and sumif non continuous cells

    thaks for your time dilipandey
    I wrote a name for those cells but i need to count the cells if they are more than 90% and it's not working is giving me ####

    here is what i used: =COUNTIF(nota1,">90")

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: problem with countif and sumif non continuous cells

    Remove the quotes from your formula.. and try again. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  7. #7
    Forum Contributor
    Join Date
    11-28-2011
    Location
    puerto rico
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: problem with countif and sumif non continuous cells

    nope that didnt work either

  8. #8
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: problem with countif and sumif non continuous cells

    Okay.. upload the sample workbook having your formula.. also highlight the row and range to be checked. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

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

    Re: problem with countif and sumif non continuous cells

    This will count every 3rd cell starting from F11 to F114, that is greater than 90.

    =SUMPRODUCT((MOD(ROW(F11:F114)-ROW(F11),3)=0)*(F11:F114>90))
    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.

  10. #10
    Forum Contributor
    Join Date
    11-28-2011
    Location
    puerto rico
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: problem with countif and sumif non continuous cells

    here is the wb but it has another formula cuse the one i tried gives an error...please keep in mind that what i want is to count how many grades (is a rollbook i am a teacher) above 90, between 80-89, 70-79, 60-69 and below 59 i have. i will use additional cell with the same formula to count the different grade ranges.
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    11-28-2011
    Location
    puerto rico
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: problem with countif and sumif non continuous cells

    NBVC thaks but that doesnt work because if you see my sample wb i only have 2 grades above 90 and when i tried your formula it says i have 29

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

    Re: problem with countif and sumif non continuous cells

    A couple of reasons...

    1. Your actual numbers are percentages, so you want >=0.90 or >=90%

    2. You have formula nulls in many, and nulls are larger than numbers... so get counted.

    Either you replace the formulas to return 0 instead of null, eg. =IF(OR(F10="",F$4=""),0,(F10/F$4)) and you can format cells as custom: 0;-0;;@ to hide 0's... or use formula:

    =SUMPRODUCT((MOD(ROW(F11:F114)-ROW(F11),3)=0)*((0&F11:F114)+0>=90%))

  13. #13
    Forum Contributor
    Join Date
    11-28-2011
    Location
    puerto rico
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: problem with countif and sumif non continuous cells

    Nbvc great! but what if i want to count grades between 80-89?

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

    Re: problem with countif and sumif non continuous cells

    =sumproduct((mod(row(f11:f114)-row(f11),3)=0)*((0&f11:f114)+0>=80%)*((0&f11:f114)+0<=89%))

  15. #15
    Forum Contributor
    Join Date
    11-28-2011
    Location
    puerto rico
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: problem with countif and sumif non continuous cells

    OMG sorry if i am bothering too much... those formulas work super but when i used it to count the students that have an F (0-59) it counts the cells that are blanks as 0 i tried your formula with a =if(f11:f114="","",(sumproduct((mod(row(f11:f114)-row(f11),3)=0)*((0&f11:f114)+0>=0%)*((0&f11:f114)+0<=59%)) but not luck with this..any suggestions?

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

    Re: problem with countif and sumif non continuous cells

    do you need >=0% or just >0%? that would fix it, otherwise add:

    =SUMPRODUCT((MOD(ROW(F11:F114)-ROW(F11),3)=0)*(F11:F114<>"")*((0&F11:F114)+0>=0%)*((0&F11:F114)+0<=59%))

  17. #17
    Forum Contributor
    Join Date
    11-28-2011
    Location
    puerto rico
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: problem with countif and sumif non continuous cells

    THk you so much!!!!!!!!

+ 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