+ Reply to Thread
Results 1 to 16 of 16

Compute single daily average in and single daily average out

  1. #1
    Registered User
    Join Date
    11-05-2019
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    9

    Compute single daily average in and single daily average out

    I maintain a trouble ticket report... each new ticket gets it's own row containing, among other things, the date opened, the ticket type, and ultimately a date closed (blank means its still open).

    I'm trying to create a formula that will show me the average number of new tickets that arrive on any given day and the average number of tickets that are closed on any given day.

    I want to display a stat that looks like this...


    TYPE | Avg New per Day | Avg Closed per day

    --------------------------------------------------------------------

    SW | 5 | 4

    --------------------------------------------------------------------

    HW | 8 | 3

    --------------------------------------------------------------------


    So, essentially, for the Avg New column on the SW row, I need to subtotal the number or rows in my worksheet by Open Date, where type=SW, and then take the average of the subtotals. Then do the same for the HW row/type.

    And, for the Avg Closed column on the SW row, I need to subtotal only the rows that have an entry in the date closed column and type=SW, then average those subtotals. And, again, do the same for the HW row/type.

    Can this be done with a formula?

    Thank you!

  2. #2
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Compute single daily average in and single daily average out

    If you can write down a 'calculation steps' like above, it's possible. ^_^

    Regards.

  3. #3
    Registered User
    Join Date
    11-05-2019
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    9

    Re: Compute single daily average in and single daily average out

    Hi menem,

    Each row represents a new trouble ticket and the essential info is the Open Date (when the issue was reported), the ticket Type (e.g. SW, HW, User Error, etc.),
    and the Closed Date (which is blank if the ticket is not resolved).

    Every row is included in the first calculation, which is the overall average number of new tickets received each day...

    1) To get that we'd need to first filter on a Type, let's say SW for now.

    2) Then get subtotals of how many rows have the same Open Date.

    3) Then take an average of the Subtotals.

    4) The result is the average number of SW Type tickets opened on a typical day.

    The steps for the other calculation, the average number of tickets closed on a given day, are similar...

    1) To get that we'd need to first filter on a Type, let's say SW again, but also rows where Closed Date is not blank.

    2) Then get subtotals of how many rows have the same Closed Date.

    3) Then take an average of the Subtotals.

    4) The result is the average number of SW Type tickets closed on a typical day.

    Let me know if that helps.

    Thank you so much for looking at this!

    Frank

  4. #4
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Compute single daily average in and single daily average out

    It will be clear for me if you can provide a sample file with data and output that you want.
    My English is not so well, so I may not understand your request correctly. >_<

    Regards.

  5. #5
    Registered User
    Join Date
    11-05-2019
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    9

    Re: Compute single daily average in and single daily average out

    I can't seem to get the file uploaded, menem; nothing happens when I click the attachment icon.

  6. #6
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Compute single daily average in and single daily average out

    follow the yellow/orange bar at the top of the screen, the attachment icon doesn't work

    Also what will you be counting as days? do you work weekends? you will need to give the expected result

  7. #7
    Registered User
    Join Date
    11-05-2019
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    9

    Re: Compute single daily average in and single daily average out

    Got it, davsth; thank you.
    Counting calendars days including weekends... Open Friday, closed Monday = 3 days.

    The Excel file has two worksheets; the stats page, where the calculation will go, and the individual ticket info, from whence the stats are derived.

    The column in red on the stats page, Avg New Per Day, is the one I need a formula to compute. I also need one for the column next to it, Avg. Closed per day, but
    if you give me the first column formula, I'm pretty sure I can modify it to work on the second.

    To get the values that you see in red, I manually counted the occurrences per day, for each service, averaged them, and then populated the Stats (col J)... that's what
    I need a formula to do.

    I show the manually counted data in red on the Ticket sheet... just temporary entries to help explain.

    Let me know if this helps. Thanks again!
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    11-05-2019
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    9

    Re: Compute single daily average in and single daily average out

    davsth - just by way of clarification, the number of days elapsed is irrelevant for the calculation I need.

    I'm trying to find the average number of tickets opened on a typical day, by each type.

    e.g. for type AS, if there were 5 tickets opened 11/1, 10 on 11/2, and 15 on 11/3. The Avg/Day calculation would result in 10 for that type.
    Hope that helps!

    Thank you to you and menem for the assistance!

  9. #9
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Compute single daily average in and single daily average out

    Please try

    At J3

    Please Login or Register  to view this content.
    Press Ctrl-Shift-Enter for ARRAY formula.

    PS: I doubt how to count 'days' ? Above formula is count everyday even no ticket was open in some type.

    Regards.

  10. #10
    Registered User
    Join Date
    11-05-2019
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    9

    Re: Compute single daily average in and single daily average out

    I put that formula into J3 and the result was 22, which is the total number or tickets opened for Type=AV.

    That's a good start but what I need is the average per day, which in this case is 3.7.... In the sample spreadsheet, 22 AV tickets were opened on 6 days... 22/6=3.7 the average per day.

    So this is where it started to get confusing for me... the formula needs to compute the total number of days in which AV tickets were opened AND the total number of tickets that were opened (which you computed); and then it needs to divide the ticket count by the number of days to get the average.

  11. #11
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Compute single daily average in and single daily average out

    Sorry, I've forget a formula in M1 >_<"

    M1
    Please Login or Register  to view this content.

    Regards.

  12. #12
    Registered User
    Join Date
    11-05-2019
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    9

    Re: Compute single daily average in and single daily average out

    Ah, I was wondering why M1 was involved!

    I'll give that a shot now but, after I wrote that last reply I had a bit of insight and came up with a formula that worked...
    =COUNTIF(Tickets!D2:D37,"AV")/SUM(IF(FREQUENCY(Tickets!A2:A37,Tickets!A2:A37)>0,1))

    Thanks for playing around with this menem; your willingness to help a total stranger is so very much appreciated! There may be hope for this world after all.

  13. #13
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Compute single daily average in and single daily average out

    I never use FREQUENCY function >_<"
    I think I can use less than 1% of Excel feature.

    Regards.

  14. #14
    Registered User
    Join Date
    11-05-2019
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    9

    Re: Compute single daily average in and single daily average out

    I think I over complicated how I was thinking about it because I was trying to use AVERAGE... once I described it to you and realized it was just more a simple division of the number or total rows by the number of row with a specific Type, I was able to come up with the formula.
    Now I just need to tweak it to populate the other column; the average number of tickets closed per day.
    Thanks again for the assist!

  15. #15
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Compute single daily average in and single daily average out

    The alternative is to search for a count distinct function to get the denominator
    =SUMPRODUCT(1/COUNTIF(Tickets!$A$2:$A$37,Tickets!$A$2:$A$37))

    and then count the occurances as the numerator
    =COUNTIFS(Tickets!D:D,A3

    so the average is
    =COUNTIFS(Tickets!D:D,A3)/SUMPRODUCT(1/COUNTIF(Tickets!$A$2:$A$37,Tickets!$A$2:$A$37))

  16. #16
    Registered User
    Join Date
    11-05-2019
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    9

    Re: Compute single daily average in and single daily average out

    Thank you, Davsth!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 13
    Last Post: 05-18-2012, 10:53 AM
  2. Daily Average to Weekly Average
    By XANADU79 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-07-2011, 10:31 PM
  3. Excel 2007 : Daily average help
    By eijnsbergen in forum Excel General
    Replies: 1
    Last Post: 02-04-2009, 03:28 PM
  4. How to calculate daily average?
    By excelmaster5000 in forum Excel General
    Replies: 2
    Last Post: 08-07-2008, 08:28 AM
  5. Daily entry but only want last 12 for average
    By M5winds in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 06-05-2007, 03:27 AM
  6. [SOLVED] Running a Daily MTD average.
    By Mike Punko in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  7. Running a Daily MTD average.
    By Mike Punko in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  8. [SOLVED] daily average
    By JBoulton in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-20-2005, 08:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1