Sassbearilla
New Member
- Joined
- Feb 9, 2022
- Messages
- 7
- Office Version
- 365
- Platform
- Windows
- Mobile
- Web
I know this is going to be a simple answer, but I just can't seem to get to it.
What I want is to translate this Excel formula to VBA:
I know it's gotta be something like:
Hopefully this is clear enough. Any help is very appreciated!!
What I want is to translate this Excel formula to VBA:
VBA Code:
=SUMPRODUCT(F5:F18/COUNTIF(F5:F18,F5:F18))
I know it's gotta be something like:
VBA Code:
Range("F" & ReportLR + 1) = WorksheetFunction.SumProduct("F5:F" & ReportLR / WorksheetFunction.CountIf("F5:F" & ReportLR, "F5:F" & ReportLR))
Hopefully this is clear enough. Any help is very appreciated!!