+ Reply to Thread
Results 1 to 20 of 20

Countifs and sumproduct with two criteria

  1. #1
    Forum Contributor
    Join Date
    10-26-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2010
    Posts
    138

    Countifs and sumproduct with two criteria

    My problem is that I use countifs and sumproduct function with 2 criteria <range and >range. But it always return to zero.. Please help.. Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Countifs and sumproduct with two criteria

    hi jewellove, welcome to the forum. i did both the SUMPRODUCT & COUNTIFS solution in the file
    Attached Files Attached Files

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor
    Join Date
    10-26-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2010
    Posts
    138

    Re: Countifs and sumproduct with two criteria

    OMG! I so happy to find this thread. My problem for 2 days is now solved. Thank Benishiryo!!!

  4. #4
    Forum Contributor
    Join Date
    10-26-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2010
    Posts
    138

    Re: Countifs and sumproduct with two criteria

    Thanks to Vlady as well..

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Countifs and sumproduct with two criteria

    just additional from beneshiryo, hope you don't mind borrowing your uploaded file -> just an option for the OP


    drop down with the formula of beneshiryo.

    Student Scores (1) drop down.xlsx
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  6. #6
    Forum Contributor
    Join Date
    10-26-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2010
    Posts
    138

    Re: Countifs and sumproduct with two criteria

    Hi, Here my updated spread sheet. I got a few issues tho.. Thanks in advance..
    Attached Files Attached Files

  7. #7
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Countifs and sumproduct with two criteria

    It's array formula: You have to commit with Ctrl+Shift+Enter, not just Enter.

  8. #8
    Forum Contributor
    Join Date
    10-26-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2010
    Posts
    138

    Re: Countifs and sumproduct with two criteria

    Hi guys, Just wonder if you can look into the attached updated worksheet.
    1. Cell 5 does not tally with the list in range e11 to e58. It counts only 47..
    2. Why c67 and some cells does not have conditioning formatting.
    Thank you again..
    Attached Files Attached Files
    Last edited by jewellove; 10-27-2012 at 03:21 AM. Reason: wrong placement of attachment

  9. #9
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    869

    Re: Countifs and sumproduct with two criteria

    Good morning fella,

    C67 did not have conditional formatting because you asked for the conditional format to look for values between 25 - 49 -> what about 49.1, 49.5, 49.9?
    To change this Highlight C12 down to C301, go to conditional formatting and select 'Manage Rules' then you need to edit rule for the Orange & Yellow ones, and change the value from 49 to 49.99 and on the yellow one, change the value from 74 to 74.99.
    That will sort the conditional format issue.

  10. #10
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    869

    Re: Countifs and sumproduct with two criteria

    And the same can be said for your formula not displaying the correct result, In C4 the formula should read -
    Please Login or Register  to view this content.
    and in C5 the formula should read
    Please Login or Register  to view this content.
    Last edited by galvinpaddy; 10-27-2012 at 05:46 AM.

  11. #11
    Forum Contributor
    Join Date
    10-26-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2010
    Posts
    138

    Thumbs up Re: Countifs and sumproduct with two criteria

    Hi galvin,
    Solved the conditional formatting. OMG! You guys are awesome.
    Just wondering if you can check the formula for C3:C6.. This counts the number of student in the range. It does not tally with the column . Column E starting from E13 is supposed to give the list of student that meet the criteria.. Please note there is a drop button in cell 10....Thanks in advance..

  12. #12
    Forum Contributor
    Join Date
    10-26-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2010
    Posts
    138

    Re: Countifs and sumproduct with two criteria

    Hi galvin,
    Gonna look to your formula now. Please disregard the above post.

  13. #13
    Forum Contributor
    Join Date
    10-26-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2010
    Posts
    138

    Re: Countifs and sumproduct with two criteria

    Excellent! The problem in the countif cell C3:c6 are solved.. I'm learning a lot here. Thank you so very much...

  14. #14
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    869

    Re: Countifs and sumproduct with two criteria

    No worries!
    You should also work through your entire sheet and make sure all formulas are correct, i have found mulitple errors with the formulas entered.
    For example,
    C3 reads - C11:C302, C4 reads - C11:C301, C6 reads - C12:C303.
    E12 contains a seriously long formula, that in all fairness is out of my league, BUT it contains a static range (signified by the $ sign) and is looking at C12:C96, for a start, you have data inside cell C97, and the range goes as far down as C301
    The same can be said for F12, that contains a static range (again signified by the $ sign) and is only looking at B12:C96, yet the range goes down as far as C301.

    I have a smaple of your sheet on my desktop and am looking at sorting it for you, but its worth you knowing the issues found so far

  15. #15
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    869

    Re: Countifs and sumproduct with two criteria

    ok my friend, another change you need to make is
    I15:I18 -> these values must also reflect the changes in conditional formatting - 24 must become 24.99, 49 must become 49.99, 74 must become 74.99

  16. #16
    Forum Contributor
    Join Date
    10-26-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2010
    Posts
    138

    Re: Countifs and sumproduct with two criteria

    Hi Garvin,
    The reason I have made the range for c3 to c11:c303 is because I will be adding 200 more entries. I want that the countifs formula updates when I add students and their score.

  17. #17
    Forum Contributor
    Join Date
    10-26-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2010
    Posts
    138

    Re: Countifs and sumproduct with two criteria

    Hi Garvin,
    I actually tried earlier to update the droplist in h15:h18 but it didn't work.. I love the idea of Vlady of droplist. It's cool - It's out of my comprehension as it's so complicated tho.. I just hope that it will yield the right result. I must have ruined it because I inserted some rows.

  18. #18
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    869

    Re: Countifs and sumproduct with two criteria

    Hhhhmmmm, im not sure why, but i cant get the table to show the full qty.
    Even when i change all marks to 90.79%, it wont show Student 1-9 in E:E.

    ggrr

  19. #19
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    869

    Re: Countifs and sumproduct with two criteria

    Guru's - Could i ask for a lil help lol?

  20. #20
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Countifs and sumproduct with two criteria


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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