Hello!
Re this thread http://www.excelforum.com/showthread.php?t=1165124
I too, am trying to do something similar and all the coding I know is trial and error. I am struggling terribly with these array formulas.
I have a Data Entry worksheet from which I am trying to get monthly data into an Incident worksheet. The Data Entry worksheet will be dynamic and will be queried by year, by month, by location, by incident type. On the Data Entry worksheet,
Column D has the record number (person identifier; same record number may show up multiple times)
Column F has the incident date
Column K has the Incident type
Column AB has the duration of the incident
Column AC has the month
Column AE has the year
Column AF has the location
Column AQ is a concatenation of D and F. Unique records are those where the combination is unique
In the Incident worksheet I need to put formulas that will pull:
1) Total incidents (Data Entry Sheet Column $AQ) for the particular year (Incident Report $B$1), for a particular month (Incident Report $A$3), for a particular location (Incident Report $B$3) by type of Incident (Escalated; Non Escalated found in Data Entry Sheet Column K).
2) Average duration of incidents with same qualifiers as above
3) Median Duration of incidents with same qualifiers as above
My formulas are as follows:
=COUNTIFS('Data Entry'!$K:$K,"Non Escalated",'Data Entry'!$AC:$AC,Incident Report!$A$3,'Data Entry'!$AE:$AE,Incident Report!$B$1,'Data Entry'!$AF:$AF,Incident Report!$B$3)
=AVERAGEIFS('Data Entry'!$AB:$AB, 'Data Entry'!$AC:$AC,Incident Report!$A$3, 'Data Entry'!$AF:$AF,Incident Report!$B$3,'Data Entry'!$K:$K,"Non Escalated",'Data Entry'!$AE:$AE,Incident Report!$B$1)
=MEDIAN(IF('Data Entry'!$AF:$AF = Incident Report!$B$3,IF('Data Entry'!$AC:$AC = Incident Report!$A$3,IF('Data Entry'!$K:$K ="Non Escalated",IF('Data Entry'!$AE:$AE = Incident Report!$B$1, 'Data Entry'!$AB:$AB)))))
I need to do the same formulas, but this time only for the unique values in Data Entry AQ. Also, any help with my existing formulas will be appreciated-the code takes a few moments to execute even though I have the following at the beginning of my code:
This is my first post, and I read the rules, but please educate me about anything that needs to be changed in my post/approach.![]()
Application.ScreenUpdating = False Application.Calculation = xlManual Application.EnableEvents = False
Bookmarks