+ Reply to Thread
Results 1 to 15 of 15

Countifs or Index Match? Trying to Count how many times it happen in a date

  1. #1
    Registered User
    Join Date
    10-16-2016
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    10

    Countifs or Index Match? Trying to Count how many times it happen in a date

    What I am trying to Achieve is something like Q2, Obviously the formula is wrong cause all I got was zero.

    I want to know the formula for Counting how many passes/Fails In that certain Date.

    And is it possible if I typed in a new date like 09-10-16 ( Highlighted Blue ) to be automatically updated In that empty High lighted Blue Cell?

    Could someone reply with the lines for it?
    Attached Images Attached Images

  2. #2
    Registered User
    Join Date
    10-16-2016
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    10

    Re: Countifs or Index Match? Trying to Count how many times it happen in a date

    All i know is to count the number of times it appeared regardless of pass/fail.

    =countif($M2:$M18, O2)
    Last edited by InternSeekingHelp; 10-17-2016 at 03:09 AM.

  3. #3
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    424

    Re: Countifs or Index Match? Trying to Count how many times it happen in a date

    Quote Originally Posted by InternSeekingHelp View Post
    All i know is to count the number of times it appeared regardless of pass/fail.

    =countif($M2:$M18, O2)
    Hi,

    Use COUNTIFS

  4. #4
    Registered User
    Join Date
    10-16-2016
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    10
    Quote Originally Posted by chullan88 View Post
    Hi,

    Use COUNTIFS
    Countifs for? I tried Countifs for searching the number of passes on a certain date. But i dont really know how to use the function properly. ( Keeps giving me Error )

    If it isnt too much trouble, could you type out the line?
    Last edited by InternSeekingHelp; 10-17-2016 at 05:04 AM.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,728

    Re: Countifs or Index Match? Trying to Count how many times it happen in a date

    We can't work with images. Please 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.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Registered User
    Join Date
    10-16-2016
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    10
    Quote Originally Posted by AliGW View Post
    We can't work with images. Please 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.
    There you go
    Attached Files Attached Files

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,728

    Re: Countifs or Index Match? Trying to Count how many times it happen in a date

    Try this in E2 copied down:

    =IFERROR(IF(YEAR(INDEX($C$2:$C$100,MATCH(0,INDEX(COUNTIF($E$1:E1,$C$2:$C$100),0,0),0)))=1900,"",INDEX($C$2:$C$100,MATCH(0,INDEX(COUNTIF($E$1:E1,$C$2:$C$100),0,0),0))),"")

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Countifs or Index Match? Trying to Count how many times it happen in a date

    Put this formula in G2:

    =COUNTIFS($C:$C,$E2,$B:$B,G$1)

    Copy it into H2, then copy both formulae down as far as you need to.

    Hope this helps.

    Pete

    EDIT: I was not able to open your After file.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,728

    Re: Countifs or Index Match? Trying to Count how many times it happen in a date

    EDIT: I was not able to open your After sheet.
    Me neither, Pete.

  10. #10
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    424

    Re: Countifs or Index Match? Trying to Count how many times it happen in a date

    Quote Originally Posted by InternSeekingHelp View Post
    Countifs for? I tried Countifs for searching the number of passes on a certain date. But i dont really know how to use the function properly. ( Keeps giving me Error )

    If it isnt too much trouble, could you type out the line?
    Hi,

    I hope Pete_UK's solution worked for your counting issue..
    I've modified the file for showing the random date in the list ( Using a helper column)
    This solution was actually posted by Pete_UK in another thread.All credit goes to him.

    In D2, =IF(COUNTIF($C$1:C2,C2)=1,MAX($D$1:D1)+1,"") and drag down
    And in E2, =IFERROR(INDEX($C$2:$C$17,MATCH((ROW(2:2)-1),$D$2:$D$17,0)),"") and drag down.


    Great solution Pete_UK!! Couldn't acknowledge in that thread!!
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    10-16-2016
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    10
    Quote Originally Posted by Pete_UK View Post
    Put this formula in G2:

    =COUNTIFS($C:$C,$E2,$B:$B,G$1)

    Copy it into H2, then copy both formulae down as far as you need to.

    Hope this helps.

    Pete

    EDIT: I was not able to open your After file.

    Thanks Pete! i manage to Get exactly what i wanted with a tiny bit of altering in the formula, but i wouldn't even get this far without your help!

  12. #12
    Registered User
    Join Date
    10-16-2016
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    10
    Quote Originally Posted by chullan88 View Post
    Hi,

    I hope Pete_UK's solution worked for your counting issue..
    I've modified the file for showing the random date in the list ( Using a helper column)
    This solution was actually posted by Pete_UK in another thread.All credit goes to him.

    In D2, =IF(COUNTIF($C$1:C2,C2)=1,MAX($D$1:D1)+1,"") and drag down
    And in E2, =IFERROR(INDEX($C$2:$C$17,MATCH((ROW(2:2)-1),$D$2:$D$17,0)),"") and drag down.


    Great solution Pete_UK!! Couldn't acknowledge in that thread!!
    My biggest Gratitude to you sir.

    'Not sure why the file is unable to be opened... i use Excel 2007'

  13. #13
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    424
    Quote Originally Posted by InternSeekingHelp View Post
    My biggest Gratitude to you sir.

    'Not sure why the file is unable to be opened... i use Excel 2007'
    Hi,
    Happy that I could be of some help
    If your problem is solved,please add Rep for all the members who've helped you.

    Thanks!!

  14. #14
    Registered User
    Join Date
    10-16-2016
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    10
    Quote Originally Posted by chullan88 View Post
    Hi,
    Happy that I could be of some help
    If your problem is solved,please add Rep for all the members who've helped you.

    Thanks!!
    Will do.

    Again sorry for the trouble but i still have two more Issues.

    Under Column F ( Times Conducted ) those Cells without a date tend to show weird numbers instead of showing Zero

    And is it possible to link the data from one workbook to another? Because the file i sent is just a sample.

    The real thing is something Like Columns B & C in another seperate Workbook. I am not sure if Paste Link will work on a Cell with compicated Formulas
    Attached Files Attached Files

  15. #15
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    424

    Re: Countifs or Index Match? Trying to Count how many times it happen in a date

    Quote Originally Posted by InternSeekingHelp View Post
    Will do.

    Again sorry for the trouble but i still have two more Issues.

    Under Column F ( Times Conducted ) those Cells without a date tend to show weird numbers instead of showing Zero

    And is it possible to link the data from one workbook to another? Because the file i sent is just a sample.

    The real thing is something Like Columns B & C in another seperate Workbook. I am not sure if Paste Link will work on a Cell with compicated Formulas


    Hi,

    Its showing the count of blanks in the whole range.

    Try to use the following formula so that blanks would be avoided:

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


    And I've no idea about linking data between workbooks.Maybe other experts would be able to help.

+ 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] Using Countifs/Match/Index formula to count data in different columns
    By satania in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-09-2023, 04:00 AM
  2. Complex function using Index, Match, Countifs, Closest Date -HELP!-
    By Vend1301 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-17-2015, 08:57 PM
  3. Countifs, index, match help wanted
    By DawitX in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-18-2015, 12:45 PM
  4. Countifs, Index and match is not working together
    By vinod2802 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-03-2015, 08:06 AM
  5. Count how many times two occurances happen in a pair
    By thackett114 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-12-2015, 11:30 AM
  6. Countifs Index Match
    By Keelin in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-16-2014, 08:38 AM
  7. Countifs to count rows with a date which match a range of dates
    By pharmerjoe7 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-07-2013, 06:19 AM

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