+ Reply to Thread
Results 1 to 9 of 9

countif??? Struggling!!! (Now with file attached)

  1. #1
    Forum Contributor
    Join Date
    12-18-2013
    Location
    Kings Lynn, England
    MS-Off Ver
    Excel 2019
    Posts
    234

    Exclamation countif??? Struggling!!! (Now with file attached)

    Good morning All,
    I have a problem I am looking for some help with:
    I have a sheet that has a list of initials, target dates, and actual dates. (Column E,F,G)

    SC 09-Mar-16 09-Mar-16
    SF 09-Mar-16 09-Mar-16
    SF 10-Apr-16 22-Mar-16
    AW 10-Mar-16 11-Mar-16
    JM 10-Mar-16 11-Mar-16
    SF 10-Mar-16 11-Mar-16
    JM Monitor 21-Mar-16
    JK 11 Ma 16 11-Mar-16

    What I want to do, is have another column that will count the amount of occasions (by month), that each set of initials goes over the target date. on sheet 2
    I have tried things like =COUNTIF(Sheet1!G$5:G$700>F$5:F$700,"*Mar-16",E5) but it does not work. First attempt returns an error saying too many arguments. Next attempt returns a value of zero.

    Any help on this one please??
    Thanks in advance.
    Last edited by Johnny247; 10-08-2016 at 03:43 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: countif??? Struggling!!!

    Countif works with one criterion. You need COUNTIFS. If you need more help, please attach an Excel sheet, not a poorly formatted list.


    Will you please attach a sample Excel workbook? Please don't attach a picture of one.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Contributor
    Join Date
    12-18-2013
    Location
    Kings Lynn, England
    MS-Off Ver
    Excel 2019
    Posts
    234

    Re: countif??? Struggling!!!

    Thanks for your reply. I have now attached a sample of the file. I have tried COUNTIFS, and that did not seem to work either...

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: countif??? Struggling!!! (Now with file attached)

    Changes the dates in E4 and across to 01/03/2016 etc and format as mmmm (so you just see the month name as now).

    Use this formula in E5, copied across and down:

    =COUNTIFS(Sheet1!H:H,Sheet2!$A5,Sheet1!G:G,">="&Sheet2!E$4,Sheet1!G:G,"<="&EOMONTH(Sheet2!E$4,0))

    If the sight of all those zeros annoys you, use this instead:

    =IFERROR(1/(1/COUNTIFS(Sheet1!H:H,Sheet2!$A5,Sheet1!G:G,">="&Sheet2!E$4,Sheet1!G:G,"<="&EOMONTH(Sheet2!E$4,0))),"")

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: countif??? Struggling!!! (Now with file attached)

    I forgot the file

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: countif??? Struggling!!! (Now with file attached)

    I've just noticed that your thread title is pretty poor. can you go to the first post, select thread tools (near top) and amend it to soemthing that you might expect to find following a google search (e.g. COUNTIF syntax)

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: countif??? Struggling!!! (Now with file attached)

    Did you spot my (deliberate??!!) mistake. i forgot to $ soem of the columns:

    =COUNTIFS(Sheet1!$H:$H,Sheet2!$A5,Sheet1!$G:$G,">="&Sheet2!E$4,Sheet1!$G:$G,"<="&EOMONTH(Sheet2!E$4,0))
    Last edited by Glenn Kennedy; 10-08-2016 at 04:31 AM.

  8. #8
    Forum Contributor
    Join Date
    12-18-2013
    Location
    Kings Lynn, England
    MS-Off Ver
    Excel 2019
    Posts
    234

    Re: countif??? Struggling!!! (Now with file attached)

    That seems to have done it! Thank you very much for the help!

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: countif??? Struggling!!! (Now with file attached)

    Thanks for the Rep and apologies for my goof-up!!

+ 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] Struggling to build count/countif/countifs formula with various comparative criteria!
    By dropanddrive03 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-16-2014, 03:04 AM
  2. Struggling using countif
    By SumeetPuri in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-12-2013, 09:45 AM
  3. [SOLVED] Struggling with dates and COUNTIF
    By kguerrero in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-29-2012, 12:52 PM
  4. Struggling with IF
    By KClark in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-10-2011, 04:37 AM
  5. struggling
    By Tomas mcD in forum Excel General
    Replies: 1
    Last Post: 03-07-2011, 08:25 AM
  6. [SOLVED] Struggling IF value
    By Rebecca in forum Excel General
    Replies: 5
    Last Post: 04-06-2006, 04:55 PM
  7. [SOLVED] Help, I'm Struggling!
    By Fybo in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 03-04-2005, 04:06 PM
  8. Struggling with a macro
    By toolpusher in forum Excel General
    Replies: 7
    Last Post: 02-16-2005, 03:20 PM

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