A custom function that takes the value passed to it and returns it * 3 + 5
Function times3plus5(value)
Dim val As Long
val = CLng(value)
times3plus5 = val * 3 + 5
End Function
if we put the formula =times3plus5(5)
in a cell, excel converts it to 20
There is an Excel text function called Value(text) that converts its text parameter that represents a number (i. e. "12345" or a cell reference that contains such text data) to its corresponding number value. To use this function, simply enter this sample in the formula bar: =Value("67890"). You will get the number value 67890.
A formula is an expression used to carry out an operation. A function is a built-in Excel formala, like =sum(B4:B10), =min(B4:B10)...those are functions in Excel