The Functions in the Function Wizard

In Microsoft Excel 5.0 and Microsoft Excel 95, you could assign custom functions by using a category’s object catalog in the Function Wizard. After Excel 97, this was no longer possible because the object catalog changed. Functions created with VBA are still assigned by using the Function Wizard.

Using Your Own Functions

All properly defined functions can be used in a worksheet. If cell A1 contains a positive number for the radius, you can calculate the area of the circle with the formula =AreaCircle(A1) in cell B1. For this to work, the module and the worksheet must exist in the same workbook, otherwise you will get the #NAME? error.

A custom function can also be used in another workbook. With the workbook open, extend the name of the function by using a pointer to the external reference.

=Geometry.xlsm!AreaCircle(A1)

If the workbook containing the function is not open, you must also enter the path:

=C:DataGeometry.xlsm!AreaCircle(A1)

Tip: Select custom table functions

If the workbook containing the custom functions is open, you can use the Function Wizard to enter table functions. Select Insert/Function to open the Insert Function dialog box, and select the function you want from the Custom category. The Function Wizard displays a dialog box you can use to enter arguments.

Important

If you share files that include custom functions, you must save these functions in the workbook. Alternatively, you can provide the file with the functions. If you don’t do this, the calculations that use these functions cannot be performed, and the cells using custom functions display the #NAME? error.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.217.254.118