I have a workbook with two sheets
One sheet has all the data on it
E.g.
Date, Time, Priority, Month
The other sheet is a summary sheet to show
How many tickets were raised in one month
And How many priority tickets were raised in one month (e.g. LOW, MEDIUM, HIGH)
I would like the formula to count how many HIGH priority tickets there were for the month of August, September, etc.
I am using this formula but its counting all the HIGH priority tickets:
"8" being the month (August)=IF(COUNTIF('All Incidents'!$O:$O,"8"),COUNTIF('All Incidents'!$H:$H,"HIGH"),"0")
Am I going about this all wrong?
Hi,
Try this:
=SUMPRODUCT(('All Incidents'!$O1:$O10000,"8")*('All Incidents'!$H1:$H10000,"HIGH"))
Please disregard anything in the above post. It may well have been edited without my consent, as has been the case with several posts and threads recently.
Why not use a Pivot Table?
Hi thanks for the formula - I tried it and it said "The formula you typed contains an error..."
Not sure on how to use pivot tables... Is that quicker and easier?
I think sweep was in COUNTIF mode when putting that together
should read:
=SUMPRODUCT(('All Incidents'!$O1:$O10000="8")*('All Incidents'!$H1:$H10000="HIGH"))
are you sure you need the 8 as a text string ie "8" and not 8 ?
Pivot Tables are easy to get to grips with and much better than lots of expensive formulae - ie if you intend to use the above frequently then use a pivot table - see link in my sig. for a general intro ...
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Sweep was indeed in COUNTIF mode, and apologises for his foolishness.
sorry to reopen an old thread but I have a similar issue except I want to use a cell reference as the Month eg cell "A1" = January
=SUMPRODUCT(('All Incidents'!$O1:$O10000=A1)*('All Incidents'!$H1:$H10000="HIGH")) but I just get a value reading
Welcome to the forum,
Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks