Ageing Analysis

%3CLINGO-SUB%20id%3D%22lingo-sub-3511375%22%20slang%3D%22en-US%22%3EAgeing%20Analysis%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3511375%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EHello%20Mentors%20%2C%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EIn%20my%20attached%20sheet%20I%20am%20trying%20to%20do%20ageing%20analysis.%20Please%20help%20me%20to%20get%20result%20under%20mentioned%20bucket%20in%20the%20sheet.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3Eageing%20wise%20for%20Open%20cases%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E-%26gt%3B%20how%20many%20are%20under%200-30%20days%20%2C%2031-60%20days%20%2C%2061-90%20days%20and%20%26gt%3B90%20days.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3Eageing%20wise%20for%20Closed%20cases%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E-%26nbsp%3B%20how%20long%20it%20took%20to%20close%20the%20incident.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E-%26gt%3Bhow%20many%20are%20under%200-30%20days%20%2C%2031-60%20days%20%2C%2061-90%20days%20and%20%26gt%3B90%20days%20(%20took%20to%20close).%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EAverage%20number%20of%20incident%20raised%20every%20month.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EIs%20there%20any%20way%20to%20identify%20or%20mention%20or%20count%20the%20common%20description%20among%20all.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3Eplease%20help%20me%20to%20get%20the%20result.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3511375%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECharting%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3528957%22%20slang%3D%22en-US%22%3ERe%3A%20Ageing%20Analysis%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3528957%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1247178%22%20target%3D%22_blank%22%3E%40Maddy29%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20attached%20my%20file%20with%20some%20formulas%20that%20should%20answer%20most%20of%20your%20questions.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3531554%22%20slang%3D%22en-US%22%3ERe%3A%20Ageing%20Analysis%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3531554%22%20slang%3D%22en-US%22%3Ethank%20you%20sir%2C%20it%20really%20helped%20me.%20just%20for%20clarification%20on%20average%20number%20of%20incidents%20raised.%20-%20how%20will%20it%20work.%20In%20my%20long%20data%20set%20when%20I%20apply%20this%20formula%20it%20doesn't%20give%20me%20the%20right%20picture.%20if%20you%20help%20me%20to%20understand%20would%20be%20great%20sir.%20Thanks.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3533976%22%20slang%3D%22en-US%22%3ERe%3A%20Ageing%20Analysis%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3533976%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1247178%22%20target%3D%22_blank%22%3E%40Maddy29%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethis%20was%20my%20formula%20example%3A%3C%2FP%3E%3CP%3E%3DCOUNT(C2%3AC20)%2F((MONTH(MAX(C2%3AC20))-MONTH(MIN(C2%3AC20))%2B1))%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20COUNT%20part%20should%20be%20clear%2C%20it%20just%20counts%20all%20entries%20in%20the%20range%20C2%3AC20%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENext%2C%20I%20calculated%20the%20latest%20month%20of%20the%20dates%20in%20range%20C2%3AC20%3C%2FP%3E%3CP%3EMONTH(MAX(C2%3AC20))%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThen%2C%20I%20calculated%20the%20earliest%20month%20of%20the%20dates%20in%20range%20C2%3AC20%26nbsp%3B%3C%2FP%3E%3CP%3EMONTH(MIN(C2%3AC20))%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20you%20subtract%20the%20earliest%20month%20from%20the%20latest%20month%20and%20add%201%2C%20you%20should%20get%20the%20number%20of%20months%20in%20your%20range.%3C%2FP%3E%3CP%3EAnd%20last%2C%20I%20divided%20the%20count%20by%20the%20number%20of%20months.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20solution%20assumes%20that%20all%20dates%20are%20within%20the%20same%20calender%20year.%20It%20would%20not%20work%20properly%20if%20you%20have%20dates%20in%20different%20years.%20Maybe%20this%20is%20the%20reason%20why%20it%20does%20not%20work%20on%20your%20side.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EA%20more%20robust%20solution%20would%20be%20this%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DCOUNT(C2%3AC20)%2FDATEDIF(MIN(C2%3AC20)%2CMAX(C2%3AC20)%2C%22M%22)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETry%20this%20one%20instead%20of%20my%20first%20proposal.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20information%3A%3C%2FP%3E%3CP%3EDATEDIF%20is%20an%20undocumented%20function%20that%20calculates%20date%20differences%20in%20years%20(%22Y%22)%2C%20months%20(%22M%22)%20or%20days%20(%22D%22)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3537001%22%20slang%3D%22en-US%22%3ERe%3A%20Ageing%20Analysis%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3537001%22%20slang%3D%22en-US%22%3Ethank%20you%20so%20much%20sir%20for%20your%20help%20and%20explanation%20would%20surely%20guide%20me.%3CBR%20%2F%3Eappreciate%20that.%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello Mentors ,
In my attached sheet I am trying to do ageing analysis. Please help me to get result under mentioned bucket in the sheet.

ageing wise for Open cases
-> how many are under 0-30 days , 31-60 days , 61-90 days and >90 days.
ageing wise for Closed cases
-  how long it took to close the incident.
->how many are under 0-30 days , 31-60 days , 61-90 days and >90 days ( took to close).
Average number of incident raised every month.
Is there any way to identify or mention or count the common description among all.
please help me to get the result.

4 Replies

Hi @Maddy29 

 

I have attached my file with some formulas that should answer most of your questions.

thank you sir, it really helped me. just for clarification on average number of incidents raised. - how will it work. In my long data set when I apply this formula it doesn't give me the right picture. if you help me to understand would be great sir. Thanks.

Hi @Maddy29 

 

this was my formula example:

=COUNT(C2:C20)/((MONTH(MAX(C2:C20))-MONTH(MIN(C2:C20))+1))

 

The COUNT part should be clear, it just counts all entries in the range C2:C20

 

Next, I calculated the latest month of the dates in range C2:C20

MONTH(MAX(C2:C20))

 

Then, I calculated the earliest month of the dates in range C2:C20 

MONTH(MIN(C2:C20))

 

When you subtract the earliest month from the latest month and add 1, you should get the number of months in your range.

And last, I divided the count by the number of months.

 

This solution assumes that all dates are within the same calender year. It would not work properly if you have dates in different years. Maybe this is the reason why it does not work on your side.

 

A more robust solution would be this:

 

=COUNT(C2:C20)/DATEDIF(MIN(C2:C20),MAX(C2:C20),"M")

 

Try this one instead of my first proposal.

 

For information:

DATEDIF is an undocumented function that calculates date differences in years ("Y"), months ("M") or days ("D")

thank you so much sir for your help and explanation would surely guide me.
appreciate that.