Hi All,
I have this formula to count number of incidents within a specified month:
=COUNTIFS(A:A,">=1/1/2012",A:A,"<=1/31/2012")
-----------------------------------------------------
Now, on the following column, I'm trying to find a formula that counts the number of incidents resolved (YES) within that same month.
I've tried using the same formula with the additional argument (I:I,"YES") but it did not work.
Can somebody please help me out?
COUNTIFS, SUMPRODUCTS, DCOUNT..........I could not get any of those to work
I've been trying to figure it out the past few hours, and it's driving me insane
Any help is greatly appreciated. Thank you in advance!
It should be just an extention of what you have, adding the new condition:
e.g
=COUNTIFS(A:A,">=1/1/2012",A:A,"<=1/31/2012",B:B,"Yes")
where column B is the one to count the "Yes" in.
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
It should not give that error if you are in Excel 2007, using COUNTIFS.
What exactly is the formula as you are testing?
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Very strange.
If the first formula worked, then the 2nd should too... COUNTIFS allows many range/condition combinations...
I copy/pasted your formula to my Excel just to see if there was a unseen quirk, and it worked fine.
You sure you didn't enter extra commas anywhere in your formula in the sheet?
You are welcome to post the workbook so we can double-check it.
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
First, I wanted to apologize to you for making a duplicate thread earlier. I'm really sorry about that.
Unfortunately, I cannot post the workbook because it has confidential work data. But I did double-check the formula, and I entered it exactly as I posted it earlier.
=COUNTIFS(A:A,">=2/1/2012",A:A,"<=2/29/2012",I:I,"YES")
Hmmmm....very strange. Are there any other kinds of formulas I can investigate that allow multiple arguments?
You could try SUMPRODUCT... but you would need to make the ranges smaller, because SUMPRODUCT is not that efficient...
=SUMPRODUCT(--(A1:A100>="2/1/2012"+0),--(A1:A100<="2/29/2012"+0),--(I1:I100="YES"))
but your COUNTIFS formula should not give that error....
See attached simple workbook with your COUNTIFS in cell M1. Does it give a result of 2?
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
This not the same question reposted?
Sure i see it before?
jiuk
opps ok Mods have locked it as dup post see here
http://www.excelforum.com/excel-gene...ate-range.html
Please do not duplicate post it will be some rule and mods get all over your back and your get little help.. just wait and post a BUMP and add anything that can help
Its new years day so many having a beer rather that Excel work for free help so might take time
I mean You well, not having a go
Hi NBVC,
I figured out the issue (although not sure why it was causing problems)
Two of my values within the I:I ranges were incorrectly filled in by other employees. After I fixed the values to a simple YES/NO, the issue went away.
Not sure why it came back as an incorrect formula, but alas, the problem is resolved with the first formula you provided me.
Thanks so much!
I already apologized to the mod and the thread was closed a while ago. Are you drunk?![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks