VBE313
Well-known Member
- Joined
- Mar 22, 2019
- Messages
- 686
- Office Version
- 365
- Platform
- Windows
I was thankful enough to receive a UDF from Rick Rothstein. https://www.mrexcel.com/forum/excel...-not-blank-again-post5294214.html#post5294214
I was wondering if someone can help me and figure out a Do Until a certain range, I have to uses over 30 of these functions in one sheet and it calculates very very slow.
I was wondering if someone can help me and figure out a Do Until a certain range, I have to uses over 30 of these functions in one sheet and it calculates very very slow.
Function SumToYes()
Dim R As Long
R = Application.Caller.Row + 1
Do While Cells(R, "B").Value <> "Yes"
SumToYes = SumToYes + Val(Cells(R, "A").Value)
R = R + 1
Loop
End Function
Thanks
Dim R As Long
R = Application.Caller.Row + 1
Do While Cells(R, "B").Value <> "Yes"
SumToYes = SumToYes + Val(Cells(R, "A").Value)
R = R + 1
Loop
End Function
Thanks