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.
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.
Last edited by nadimqaisar; 09-18-2019 at 07:17 AM.
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
Thank a lot. I have attached a sample excel file where the data is in sheet1 and the result should reflect in sheet2
Try again!! the attachment didn't attach.
Please check now
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...
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.
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks