2002 excel microsoft training - custom function macros
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel Training and help » 2002 excel microsoft training - Custom Function Macros

2002 excel microsoft training - Custom Function Macros

resolvedResolved · Low Priority · Version Standard

replyReply Fri 14 Dec 2007, 18:01Delegate Hari said...

Hari has attended:
Excel Advanced course
Excel VBA Intro Intermediate course

Custom Function Macros

How to create a custom function Macros?.

For upcoming training course dates see: Pricing & availability

replyReply Mon 17 Dec 2007, 11:01Trainer Sandy said...

RE: Custom Function Macros

Hi Hari

It was great having you on my Excel Course on Friday. Hope you had a good weekend.

To create a Custom Function

1. Tools menu, Macros, Visual Basic Editor

2. Insert menu, Module

3. Write the word 'Function' to mark the beginning then write your function name with it's arguments.

e.g. Function MyFunction (sales2000, sales 1999)

4. Write the Function Name and then write the code for the function

e.g. MyFunction = (sales2000 - sales1999) / sales1999 * 100

5. 'End Function' should mark the end of the Function

6. Save the Function and return to your Excel worksheet.

7. To use your new function either select a cell and type it directly or use the Function Wizard, selecting the category 'User Defined'.

Hope this helps

Sandy

 

Excel tip:

LARGE and SMALL functions and their uses

Two of Excel's most common functions are the MAX and MIN functions which will display the largest (MAX) or smallest (MIN) value in a series. What if you need the 2nd or 3rd largest or smallest values instead of the largest or smallest?

The =LARGE(array,n) returns the nth largest value of a series.

The =SMALL(array,n) function returns the nth smallest value of a series.

In both functions, 'n' represents the order of the number you want to display. For example, putting in 2 as n will give you the second highest number; putting in 3 as n will give you the third highest number.

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard