+ Reply to Thread
Results 1 to 8 of 8

Countifs for specific Nth day of current month

  1. #1
    Registered User
    Join Date
    08-25-2015
    Location
    Kolkata, India
    MS-Off Ver
    2013
    Posts
    59

    Countifs for specific Nth day of current month

    I need a countifs formula for counting the specific Nth day in the current month. E.g. The date format I am using is mm/dd/yyyy.
    Attached Files Attached Files
    Last edited by nadimqaisar; 09-18-2019 at 07:17 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,036

    Re: Countifs for specific Nth day of current month

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever). Please don't attach a picture of an Excel sheet (no-one will want to re-type all your stuff before starting).

    1. It does NOT have to be your real sheet - mock up a SAMPLE if you need to. But not 1000's of rows!!! It makes manual checking so tedious. Whatever you do... make sure that all confidential information is removed first!!

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

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

    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    08-25-2015
    Location
    Kolkata, India
    MS-Off Ver
    2013
    Posts
    59

    Re: Countifs for specific Nth day of current month

    Thank a lot. I have attached a sample excel file where the data is in sheet1 and the result should reflect in sheet2

  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,036

    Re: Countifs for specific Nth day of current month

    Try again!! the attachment didn't attach.

  5. #5
    Registered User
    Join Date
    08-25-2015
    Location
    Kolkata, India
    MS-Off Ver
    2013
    Posts
    59

    Re: Countifs for specific Nth day of current month

    Please check now

  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,036

    Re: Countifs for specific Nth day of current month

    With a minor change to the layout:

    =COUNTIFS(Sheet1!$A:$A,DATE($B$2,MONTH($B$1&1),$A4),Sheet1!$B:$B,B$3)

    copied across and dnown...
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-25-2015
    Location
    Kolkata, India
    MS-Off Ver
    2013
    Posts
    59

    Re: Countifs for specific Nth day of current month

    Thanks Glenn. But I don't have to add any extra things like you have added. I can only use what exactly I have provided. I was trying to use the formula =COUNTIFS(Sheet1!$A:$A,"=DATE(YEAR(TODAY()),MONTH(TODAY()),2)",Sheet1!$B:$B,"Medium") for 2nd September but it returning a value "0" whereas there must be some count.

    Now I got where I went wrong. The formula that I am using needed once correction. I had to remove "=" sign appearing before "DATE". That's it. Now it's working. So the correct formula is

    =COUNTIFS(Sheet1!$A:$A,DATE(YEAR(TODAY()),MONTH(TODAY()),2),Sheet1!$B:$B,"Medium")
    Last edited by nadimqaisar; 09-18-2019 at 08:35 AM.

  8. #8
    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,036

    Re: Countifs for specific Nth day of current month

    Fair enough... but you didn't say that you couldn't change the layout. Be aware, that today() is voltile and will recalculate every time ANYTHING changes on your sheet. This can cause performance issues.

    However... You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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. Replies: 2
    Last Post: 01-06-2019, 12:16 AM
  2. Selecting specific range of cells based on current month
    By sohshak in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-26-2016, 11:14 AM
  3. Trying to use COUNTIFS to count prior year orders in a current month
    By NiceTxn in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-05-2016, 10:40 AM
  4. [SOLVED] Set PivotTable Filter to Current Day, Current Week, Current Month, or Current Year
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-30-2014, 08:31 AM
  5. Replies: 2
    Last Post: 06-25-2014, 11:17 PM
  6. How to return the current month given a specific value
    By SweetLD215 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-14-2014, 10:41 AM
  7. Count specific dates in cell range for current month
    By rboggio1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-22-2009, 10:21 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