Mishoshow
New Member
- Joined
- Sep 6, 2021
- Messages
- 34
- Office Version
- 365
- 2019
- 2016
- 2013
- Platform
- Windows
Hi Guys,,
i want to calculate only numbers and ignore date value
that the vba code i used it to calculate the number but still calculate the date too
Function SumNum(rng As Range) As Double
Dim cell As Range
Dim tot As Double
For Each cell In rng
tot = tot + Val(cell)
Next cell
SumNum = tot
End Function
i want to calculate only numbers and ignore date value
that the vba code i used it to calculate the number but still calculate the date too
Function SumNum(rng As Range) As Double
Dim cell As Range
Dim tot As Double
For Each cell In rng
tot = tot + Val(cell)
Next cell
SumNum = tot
End Function