Formulas: Aging Support tickets Calculation

NeoSez

Board Regular
Joined
Aug 14, 2020
Messages
210
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
I am trying to calculate tickets that are 0-30 days, 31-60, 61-90 etc...
This one is for 30 days, but everything shows as zero, which I know is wrong.
I want to calculate the average age of all tickets combined as well.
Any help would be greatly appreciated.
Excel Formula:
=COUNTIFS(SHEET2!$F:F,$A4,SHEET2!$B:$B,""=IF[B](C2<TODAY(),(IF(TODAY()-C2<=30,D2,0)),0)[/B]
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
I'm a little puzzled about your ranges, but this might give you the right idea:

Book1 (version 1).xlsb
ABCDEFGHIJ
1
2
3# of tickets < 30 daysAverage age of tickets (days)
4X1-Augx926
52-Augx
63-Augx
74-Augx
85-Augx
96-Augx
107-Augx
118-Augx
129-Augx
1310-Augx
1411-Augy
1512-Augy
1613-Augx
17
18
19
20
Sheet2
Cell Formulas
RangeFormula
H4H4=COUNTIFS(F:F,A4,B:B,"<="&TODAY(),B:B,">="&TODAY()-30)
J4J4=SUMPRODUCT((TODAY()-B4:B20),--(B4:B20>0))/COUNT(B4:B20)
 
Upvote 0
Solution
Eric W Thank you.
A little more context. It is counting the data from Sheet2. My chart and calculations are on Sheet1.
 
Upvote 0
I gathered as much. This was an example, you'd need to change the ranges, including sheet names to suit. But in particular, what do you have on Sheet1 in A4, C2, and D2? On Sheet2, what is in columns B and F? If you could use XL2BB (see the link in my signature) to post a sample of your sheet, it would be most helpful. Or at least a screen print.
 
Upvote 0
So I got the first formula to work. Thank you!
To clarify, the formula is for under 30 days? I changed the 30 to 60, but not sure if that means 0-60 days or 30-60 days. How do I do the ranges 31-60 or over 90 days?
However, the average, I could not figure it out. I tried this but it didn't work. Where to add SHEET2!?
=COUNTIFS(SHEET2!$F:F,$A4,SHEET2!$B:$B,""=SUMPRODUCT((TODAY()-SHEET2!$B4:B20),--(SHEET2!$B4:B20>0))/COUNT(SHEET2!$B4:B20)
 
Upvote 0
I gathered as much. This was an example, you'd need to change the ranges, including sheet names to suit. But in particular, what do you have on Sheet1 in A4, C2, and D2? On Sheet2, what is in columns B and F? If you could use XL2BB (see the link in my signature) to post a sample of your sheet, it would be most helpful. Or at least a screen print.
Sheet2 Col B=Status BTW, how do I calculate average days to complete?
Sheet2 Col B=date
Sheet2 Col A=Ticket #
 
Upvote 0

Forum statistics

Threads
1,214,990
Messages
6,122,625
Members
449,093
Latest member
catterz66

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top