For someone who is unfamiliar with coding UDF's, I suppose the first place to start is a few basics.
1) Enter the VB editor. In my older version, alt-f11 will do this. If that shortcut doesn't work in the newer version, ask excel help how to bring up the visual basic editor
2) insert a new module into your workbook/VBA project.
3) create your function procedure in this module. Here is a simple function procedure that returns 5 times the argument passed to the function:
4) In the spreadsheet, enter =mytest(A1) into B1, and you should get a result.
Just about any numerical algorithm will require you to calculate f(x) at some given x. Once you can use a basic UDF like this, work on writing a UDF that will calculate the formula in column K in your spreadsheet.
While you are at that, you will need to become familiar with the Newton Raphson method. If you already know enough calculus, Wikipedia has a pretty good article (with more information that is probably necessary) describing the NR method. Once you have code to calculate f and you understand how the NR method works, then you can proceed to write the code to solve the equation.
Bookmarks