IDislikeVBA
New Member
- Joined
- Aug 18, 2019
- Messages
- 4
Hello All,
I've been working on a project and I'm stuck when it comes to converting an Excel Formula into a VBA script.
I've decided to automate a bit of a program, so Yint is the beginning point, and Yfin is the ending point.
The Excel Formula is
I've tried to implement it using
I've been working on a project and I'm stuck when it comes to converting an Excel Formula into a VBA script.
I've decided to automate a bit of a program, so Yint is the beginning point, and Yfin is the ending point.
The Excel Formula is
Code:
=(COUNTIF(AI10:AI18,">"&AE10))/(COUNT(AI10:AI18)) (
I've tried to implement it using
Code:
Worksheets("SHEET1").Range("A1").Formula = "=countif(" & chr(34) & "AI" & chr(34)& yint & ":" & chr(34) & "AI" & chr(34) & yfin) chr(34) & ">" & chr(34) & "AE" & yint))/count("AI" & yint & ":" & "AI" & yfin))"
But I seem to not be able to get this to work. Any tips?
Thank you.