+ Reply to Thread
Results 1 to 3 of 3

Macro for calculation of Service Cost

  1. #1
    Forum Contributor
    Join Date
    03-18-2008
    Posts
    123

    Red face Macro for calculation of Service Cost

    Hi,

    Need your assistance on the following:

    In the file attached, I have a dump data sheet which have two columns Site ID & Duration of outage (minutes) marked in Grey cells.

    I have this dump data for about 11 states and would like to automate the calculation of same through some kind of macro.

    There is a penalty if uptime is less than 100%.
    Uptime calculation is number of minutes in a month - Duration of outage (minutes)

    Eg: for Site ID: AKRA58, total outage minutes are 115+32=147, therefore uptime is =100%-(147/43200)=99.66% (24 hours*60 minutes*30 Days)

    This calls for a penalty of 10% on Service Charges as it falls in the penalty bracket of (99.70-99.50), taken from penalty sheet.

    I would to represent the data as in "Result tab". All cells marked in light yellow is what I am looking to get through a Macro. I will manage the service charges.

    Hope to have a response from you on this.

    regards,
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    02-04-2010
    Location
    Hertfordshire, England
    MS-Off Ver
    Office 2007 (home) Office 365 (work)
    Posts
    134

    Re: Macro for calculation of Service Cost

    Hi excelhelp18

    I've created a new sheet Sheet12 to demostrate the macro I've written. If it is what you require, you will need to change the reference to Result so that the result sheet is updated rather than Sheet12.
    Last edited by excelxx; 03-04-2010 at 08:22 AM.

  3. #3
    Forum Contributor
    Join Date
    03-18-2008
    Posts
    123

    Red face Re: Macro for calculation of Service Cost

    Hi,

    One change is required in the replied file. In Uptime calculation, we were using 24hours*60minutes*30days...we need to calculate this for 31 days instead of 30 days...

    what need to be done to incorporate this change...

    Looking forward to your reply...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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