Question : Need to run a process on an excel sheet

Hi,
I need to run a predefined process on an excel sheet that will be generated on daily basis and I need help setting it up. Here is what the excel sheet will look like.

What I need is to be able to RUN a process ( I am not sure what , I am hoping that you would tell me what )to do the following for now.
1. Add  6F -14F  in hours ( 14F will change daily ) this will give me total down time hours
2. deduct the total down time hours from  1700, in this case 10:58  = 1689:02
3. do the following calculation:  if 1700 hours is 100% up time then  1689:02 is what ( in this case I came up with  99.35%)

I hope I have explained it clearly. I will need more but this should get us started.
Thanks
S
 

Answer : Need to run a process on an excel sheet

Assuming column J is the percentage of 1700 hours
1:
2:
3:
4:
5:
6:
Private Sub RunProcess()
    For i = 6 To WorksheetFunction.CountA(Range("A:A")) + 1
        Range("F" & i) = Range("E" & i) - Range("D" & i)
        Range("J" & i) = Range("F" & i) / (17 / 24)
    Next i
End Sub
Random Solutions  
 
programming4us programming4us