Creating new function,
You can follow this procedure to create a user defined function (UDF):
1) Tools>Macro>Macros>
2) Type in function name and hit Create
3) Enter the following code:
Public Function FUNCTION1(x)
FUNCTION1 = 5 * x + 4 * x * x + Sin(x)
End Function
Now you can call this function with =FUNCTION1(A1), but only on this workbook. You coould instead put the macro into your personal.xls file and then you can call the function in any workbook, on your computer, with =Personal.xls!FUNCTION!(A1).
For more info on macros and function you can go to Chip Pearson's site at:
http://www.cpearson.com/excel/differen.htm
Good Luck,
Mark Graesser
[email protected]
----- Creating new function wrote: -----
How can I create a new function like G(x)=5*x+4*x*x+sin(x), save it as a new function, and use it anywhere else like any other standard function (like :SUM() and SQR(x))x