Advertisement
Guest User

Untitled

a guest
Apr 30th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. 1 2.39E-05
  2. 1 2.39E-05
  3. 1 2.39E-05
  4. 2 4.77E-05
  5. 2 4.77E-05
  6. 2 4.77E-05
  7. 4 9.55E-05
  8. 4 9.55E-05
  9. 4 9.55E-05
  10. 4 9.55E-05
  11. 4 9.55E-05
  12. 4 9.55E-05
  13. 8 0.000190931
  14. 8 0.000190931
  15.  
  16. =NORMDIST(x, 1.0, 0.2, TRUE) -- where x is 0.1, 0.2, 0.3...2.0
  17.  
  18. Sub RemoveDuplicates()
  19. Dim rng As Range
  20. Set rng = Range("A1:B" & GetLastRow(Range("A1")))
  21.  
  22. rng.AdvancedFilter Action:=xlFilterCopy, CopyToRange:=Worksheets("Sheet2").Range("A1"), Unique:=True
  23.  
  24. Dim filteredRng As Range
  25. Dim cl As Range
  26.  
  27. Set filteredRng = Worksheets("Sheet2").Range("A1:A" & GetLastRow(Worksheets("Sheet2").Range("A1")))
  28.  
  29. For Each cl In filteredRng
  30. cl.Offset(0, 1) = Application.WorksheetFunction.SumIf(rng.Columns(1), cl.Value, rng.Columns(2))
  31. Next cl
  32. End Sub
  33.  
  34. Function GetLastRow(rng As Range) As Long
  35. GetLastRow = rng.End(xlDown).Row
  36. End Function
  37.  
  38. =B1*COUNTIF(A:A,A1)
  39.  
  40. =SUM($C$1:C1)
  41.  
  42. =SUM(IF($B$1:$B$14<=B1,1,0))/COUNT($B$1:$B$14)
  43.  
  44. {=SUM(IF($B$1:$B$14<=B1,1,0))/COUNT($B$1:$B$14)}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement