Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 661
Default Monthly job timings analysis - automation options?

Excel 2003. I have been maintaining a workbook with one tab per month. For
each process date I capture the completion times for two specific job
streams. The jobs have an SLA of 06:00.

In the example data below, I've included a potential range name to make the
current calcs easier to read.

Example (labels are columns and data is rows in actual worksheet):
Process Date 06/06 (Range = Dates)
Date Completed 06/07
Search Publish 05:57 (Range = Search)
Search Missed SLA N (Range = Missed_S
Asset Publish 08:23 (Range = Asset)
Asset Missed SLA Y (Range = Missed_A)

The missed SLA columns are currently manually populated with Y (missed SLA),
N (didn't miss SLA) and S (missed SLA but the delivery date for the data was
a non-business day, i.e. Sat/holiday).

I am trying to calculate for each month (including the current month for
whatever data is available):
1 - Avg completion time = AVERAGE(Search)
2 - Earliest = MIN(Search)
3 - Latest = MAX(Search)
4 - Avg excluding earliest and latest times
{=AVERAGE(IF(Search<"",IF(Search<MAX(Search),IF( Search<MIN(Search),Search,""))))} OR
=(SUM(Search)-MAX(Search)-MIN(Search))/(COUNT(Search)-2) (thanks to those on
the site that helped me with those)

5 - Avg time for those dates where the publish time was than the SLA time
(i.e. 06:00)
=DAVERAGE(A2:F23,C2,A31:F33) where A2:F23 is the full data table, C2 is the
column header for the Search publish times, and A31:F33 contains the table
headers again and the values "Y","S" in separate rows under the appropriate
Missed SLA column (Search or Asset).

6 - Missed SLA count = COUNTIF(Missed_S,"Y")+COUNTIF(Missed_S,"S")
7 - Total Days in month = COUNT(Missed_S)
8 - % the SLA was missed = Missed SLA count/Total days in month
9 - % the SLA was missed if I exclude Sat/Holiday completion days (i.e.
Friday's job finished at 08:00 on Sat but I'll exclude that miss from the
second % calc since that miss is 'less important'.
= COUNTIF(Missed_S,"Y")/Total days in month

Still with me? Having done this for a few months - creating one tab per
month, copying the tabs, adjusting the dates and modifying the ranges in the
calcs - I can say this is not the way I'd like to do it long term. I have
created a single data table with just the process date, search publish time
and asset publish time. I can manually create a summary table - easier to
read than going to the individual tabs, but it still requires me to manually
select or name ranges to get the data for each month. Here's an example for
the avg excluding earliest and latest times where I am using the previously
calculated max and min values:
{=AVERAGE(IF(MONTH(Dates)=6,IF(Dates<G2),IF(Dates <H2),Search,""))))}

Technically I can copy this down and just change the month to 7, 8, 9...but
that only works if I have one year. After that I need to add the YEAR
(doable, but still fairly manual).

I also tried to auto calc the % Missed SLA in the new table but cannot get
it to work:
{=COUNT(IF(MONTH(Dates)=6,IF(Search$Q$2,Search,"" )))} - $Q$2 is a constant
- 06:00 - representing the SLA cutoff (I couldn't enter a value in the
formula directly either - no idea what value to use to get the right result -
but using a cell reference is better anyway).

In the ideal situation I would use a pivot table and the group by
Years/Months function to derive the results automatically. Works well for the
AVG/MAX/MIN/COUNT columns but is nasty for anything more complex. All I would
need to do is update the source data range every once in a while. However, I
have been unable to figure out how to get the custom calculations into the
pivot table.

Any suggestions? Thanks for hanging in thru this long post.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
~L ~L is offline
external usenet poster
 
Posts: 177
Default Monthly job timings analysis - automation options?

http://www.contextures.com/xlNames01.html#Dynamic

Will get you started on dynamic ranges.

Apologies if that is not the entirety of your problem, but let's start there.


"Paul" wrote:

Excel 2003. I have been maintaining a workbook with one tab per month. For
each process date I capture the completion times for two specific job
streams. The jobs have an SLA of 06:00.

In the example data below, I've included a potential range name to make the
current calcs easier to read.

Example (labels are columns and data is rows in actual worksheet):
Process Date 06/06 (Range = Dates)
Date Completed 06/07
Search Publish 05:57 (Range = Search)
Search Missed SLA N (Range = Missed_S
Asset Publish 08:23 (Range = Asset)
Asset Missed SLA Y (Range = Missed_A)

The missed SLA columns are currently manually populated with Y (missed SLA),
N (didn't miss SLA) and S (missed SLA but the delivery date for the data was
a non-business day, i.e. Sat/holiday).

I am trying to calculate for each month (including the current month for
whatever data is available):
1 - Avg completion time = AVERAGE(Search)
2 - Earliest = MIN(Search)
3 - Latest = MAX(Search)
4 - Avg excluding earliest and latest times
{=AVERAGE(IF(Search<"",IF(Search<MAX(Search),IF( Search<MIN(Search),Search,""))))} OR
=(SUM(Search)-MAX(Search)-MIN(Search))/(COUNT(Search)-2) (thanks to those on
the site that helped me with those)

5 - Avg time for those dates where the publish time was than the SLA time
(i.e. 06:00)
=DAVERAGE(A2:F23,C2,A31:F33) where A2:F23 is the full data table, C2 is the
column header for the Search publish times, and A31:F33 contains the table
headers again and the values "Y","S" in separate rows under the appropriate
Missed SLA column (Search or Asset).

6 - Missed SLA count = COUNTIF(Missed_S,"Y")+COUNTIF(Missed_S,"S")
7 - Total Days in month = COUNT(Missed_S)
8 - % the SLA was missed = Missed SLA count/Total days in month
9 - % the SLA was missed if I exclude Sat/Holiday completion days (i.e.
Friday's job finished at 08:00 on Sat but I'll exclude that miss from the
second % calc since that miss is 'less important'.
= COUNTIF(Missed_S,"Y")/Total days in month

Still with me? Having done this for a few months - creating one tab per
month, copying the tabs, adjusting the dates and modifying the ranges in the
calcs - I can say this is not the way I'd like to do it long term. I have
created a single data table with just the process date, search publish time
and asset publish time. I can manually create a summary table - easier to
read than going to the individual tabs, but it still requires me to manually
select or name ranges to get the data for each month. Here's an example for
the avg excluding earliest and latest times where I am using the previously
calculated max and min values:
{=AVERAGE(IF(MONTH(Dates)=6,IF(Dates<G2),IF(Dates <H2),Search,""))))}

Technically I can copy this down and just change the month to 7, 8, 9...but
that only works if I have one year. After that I need to add the YEAR
(doable, but still fairly manual).

I also tried to auto calc the % Missed SLA in the new table but cannot get
it to work:
{=COUNT(IF(MONTH(Dates)=6,IF(Search$Q$2,Search,"" )))} - $Q$2 is a constant
- 06:00 - representing the SLA cutoff (I couldn't enter a value in the
formula directly either - no idea what value to use to get the right result -
but using a cell reference is better anyway).

In the ideal situation I would use a pivot table and the group by
Years/Months function to derive the results automatically. Works well for the
AVG/MAX/MIN/COUNT columns but is nasty for anything more complex. All I would
need to do is update the source data range every once in a while. However, I
have been unable to figure out how to get the custom calculations into the
pivot table.

Any suggestions? Thanks for hanging in thru this long post.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Monthly job timings analysis - automation options?

Some thoughts for this part:
{=AVERAGE(IF(MONTH(Dates)=6,IF(Dates<G2),IF(Dates <H2),Search,""))))}
Technically I can copy this down and just change the month to 7, 8, 9...but
that only works if I have one year. After that I need to add the YEAR
(doable, but still fairly manual).


If you replace this term in the above: MONTH(Dates)=6
with this unambiguous, automated one:
TEXT(Dates,"mmmyyyy")=TEXT(DATE(2008,ROWS($1:1)+5, 1),"mmmyyyy")
you can then copy down your expression as far as required w/o having to
manually change each successive row. It'll roll over the year as well.

P/s: Keep it to one specific query per post
Make it attractive for responders to respond

If the above helped (believe it should), remember to press the YES button
below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:21,000 Files:365 Subscribers:65
xdemechanik
---
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I set up monthly random work schedule for 60 hours monthly The Ace of the Base Excel Discussion (Misc queries) 0 April 4th 06 07:36 PM
Data Analysis Options disappears from Pull Down Menu ch Excel Discussion (Misc queries) 2 June 2nd 05 07:58 AM
Mortgage template comparing interest pd, monthly, bi-monthly, ext. JMC Excel Discussion (Misc queries) 0 April 14th 05 02:35 PM
How do I display daily duty timings (day/night) of employees for . R. Bhan Excel Discussion (Misc queries) 0 December 18th 04 11:33 PM
Timings, need assistance craigwojo Excel Worksheet Functions 1 October 28th 04 03:01 PM


All times are GMT +1. The time now is 10:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"