+ Reply to Thread
Results 1 to 10 of 10

Countif not calculating correct value

  1. #1
    Registered User
    Join Date
    07-11-2014
    Location
    Bangalore, India
    MS-Off Ver
    2010
    Posts
    13

    Countif not calculating correct value

    Hi All,

    need a bit of help. I have a data set below in table 1 which i want to populate table 2 based on if and condition of AND but for some reason I am not able to get the correct countif data. Can anyone please verify where I am going wrong? Thanks a lot in advance.


    table 1
    Sl No. Quarter Month JIRA Nos Story Point Hrs/JIRA
    1 Q1 2017 Jan-17 abcd 1 2
    2 Q4 2017 Feb-17 bahb 2 2
    3 Q4 2017 Feb-17 bahb 3 2
    4 Q2 2017 Feb-17 bahb 2 2
    5 Q2 2018 Feb-17 bahb 5 2
    6 Q3 2017 Feb-17 bahb 2 2
    7 Q1 2017 Feb-17 bahb 2 2
    8 Q4 2017 Feb-17 bahb 4 2
    9 Q1 2017 Feb-17 bahb 3 2
    10 Q1 2017 Feb-17 bahb 2 2
    11 Q1 2017 Feb-17 bahb 2 2
    12 Q1 2017 Feb-17 bahb 5 2

    table 2
    Story Point Q1 2017 Q2 2017 Q3 2017 Q4 2017
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12


    the formula i'm trying to use is as below to populate the countif data in table 2 is as example -

    =IF((AND($B$3:$B$998=$I$2,$E$3:$E$998=$H3)), COUNTIFS($E$3:$E$998,$H3),"")

    I am not getting the correct count for all story points in table2, example its showing me data for 1,2,4 only with the above formula rest is not counting. Can anyone please help me out.

    thanks a lot in advance

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Countif not calculating correct value

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    07-11-2014
    Location
    Bangalore, India
    MS-Off Ver
    2010
    Posts
    13

    Re: Countif not calculating correct value

    i have the file ready to upload but when i try to via go advanced the applet is not giving error but neither a drop down where I can select the file. Any other option? I tried in IE, chrome and firefox same issue
    Last edited by abhradipchoudhuri; 01-11-2017 at 03:12 AM.

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Countif not calculating correct value

    try other methods mentioned in here
    http://www.excelforum.com/showthread.php?t=1128657

  5. #5
    Registered User
    Join Date
    07-11-2014
    Location
    Bangalore, India
    MS-Off Ver
    2010
    Posts
    13

    Re: Countif not calculating correct value

    Attachment added
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Countif not calculating correct value

    Put this in i3 and filldown/right
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    i have differences in r4 and r5 but based on data i believe your manual mock up is incorrect
    Attached Files Attached Files

  7. #7
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Countif not calculating correct value

    Try in "I3"
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  8. #8
    Registered User
    Join Date
    07-11-2014
    Location
    Bangalore, India
    MS-Off Ver
    2010
    Posts
    13

    Re: Countif not calculating correct value

    Thanks for the help, this seems to work. One question though - what was my mistake if you don't mind sharing.

  9. #9
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Countif not calculating correct value

    Please note, IF function returns one value if the condition is TRUE, or another value if the condition is FALSE.
    AND function returns TRUE if all conditions are TRUE. It returns FALSE if any of the conditions are FALSE.
    COUNTIF, one of the statistical functions, to count the number of cells that meet a one criteria & for two or more criteria use Countifs.

    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  10. #10
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Countif not calculating correct value

    at the core
    if you take the If statement out,

    this is the formula you had
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    this only checks one criteria - H3 which is story point only

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    notice the difference with the new formula
    it checks against I$2 as well, which is your quarter

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Month formula not calculating correct
    By hkyomha in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-13-2014, 03:04 PM
  2. [SOLVED] Correct Syntax for Countif between values.
    By JO505 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-09-2013, 03:37 PM
  3. Looking for a correct COUNTIF function
    By Smit22 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-26-2012, 02:02 PM
  4. [SOLVED] Calculating GST and Checking that the GST is correct
    By becca26031993 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2012, 11:34 PM
  5. Query - is COUNTIF correct here?
    By AndyTH in forum Excel General
    Replies: 7
    Last Post: 01-25-2010, 10:05 AM
  6. sumproduct not calculating the correct dates
    By Lman in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-17-2009, 02:01 PM
  7. Calculating correct pecentages with negative values
    By Sue in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-22-2006, 02:12 PM
  8. Which formula is correct for calculating times?
    By djm in forum Excel General
    Replies: 3
    Last Post: 05-07-2006, 07:58 PM

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