Advertisement
veronikaaa86

5. Employees

Aug 30th, 2022
1,298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Sub Live_Employees()
  2.     Range("E2").Formula = "=D2*22.4%"
  3.     Range("E2").AutoFill Range("E2:E21")
  4.    
  5.     Range("F2").Formula = "=D2-E2"
  6.     Range("F2").AutoFill Range("F2:F21")
  7.    
  8.     Range("G2").Formula = "=D2*18.9%"
  9.     Range("G2").AutoFill Range("G2:G21")
  10.    
  11.     Range("H2").Formula = "=D2+G2"
  12.     Range("H2").AutoFill Range("H2:H21")
  13.    
  14.     Range("J2").Formula = "=DATEDIF(I2,TODAY(),""y"")"
  15.     Range("J2").AutoFill Range("J2:J21")
  16.    
  17.     Range("D23").Formula = "=MIN(D2:D21)"
  18.     Range("D24").Formula = "=MAX(D2:D21)"
  19.     Range("D25").Formula = "=AVERAGE(D2:D21)"
  20. End Sub
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement