Advanced Excel Formulas And Functions

3y ago
30 Views
2 Downloads
703.22 KB
65 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Albert Barnett
Transcription

Advanced ExcelFormulas & FunctionsWritten by:Education and Training TeamClient ServicesDivision of Information TechnologyDate: October 2005Copyright 2005 – Charles Sturt UniversityNo Part of this document may be reproduced, altered or sold without prior written approval of the Executive Director, Division ofInformation Technology, Charles Sturt University.

TABLE OF CONTENTSINTRODUCTION .1THE FUNCTION WIZARD.2Using the Function Wizard. 2Restoring the Function Arguments dialog box in order to edit a function . 4Shortcut for entering a function. 4RELATIVE & ABSOLUTE ADDRESSING .6NAMING CELLS AND RANGES .7Method 1: INSERT, NAME, DEFINE option (or CTRL F3) . 8Method 2: Using the NAME box. 8Applying a Range Name in a Formula . 9USING NAMES FOR CONSTANTS OR FORMULAS .10Naming a constant . 10Naming a Formula . 11REFERENCING OTHER WORKSHEETS AND WORKBOOKS .12Referencing Other Worksheets.12Referencing Other Workbooks.13FILL HANDLE AND FILL SERIES COMMAND.14Using the Fill Handle. 15Using the Fill Series Command .15Customising a Fill Series . 17Deleting a Custom List. 17CONDITIONAL FORMATTING .18Creating a Conditional Format . 18Find Cells That Have Conditional Formats . 20SORTING AND FILTERING.21Simple Sorts . 21Sorting on more than one criteria (DATA, SORT). 21Filtering Data . 22Turning AUTOFILTER off . 23MACROS.24Introduction . 24Recording a macro . 24Running a Macro . 26Absolute vs Relative . 26Assigning buttons to macros. 27Assigning the macro to an AutoShape. 27Assigning a macro to an icon on a Toolbar. 28Viewing The Macro . 29Deleting a Macro. 29LOOKUP TABLES .30Creating the VLOOKUP Function . 33S:\Administrative\Information Technology\Customer Services Management\Education and Training Team\Current TrainingModules\Advanced Excel\Advanced Excel formulas and functions.doc f

IF FUNCTION .35Creating the IF Function – Example 1 . 36Creating the IF Function – Example 2 . 37Manually Creating an IF Function .38NESTED IF FUNCTION.39AND, OR AND NOT FUNCTIONS .42The AND and OR Functions .42Creating the AND function within an IF statement . 42Creating the OR function within an IF statement . 46The NOT function . 46ISNA AND ISERROR FUNCTIONS .48WORKING WITH TEXT.50Nested Text Functions . 50CONCATENATION .51Example 1 - Combining two entries using the & operator. 51Example 2 – By using an IF function, combine two entries, ending up with one entry . 53Example 3 – Using the CONCATENATE Function. 54WORKING WITH DATES.56Useful Date Functions . 57ROUNDING FUNCTIONS .60S:\Administrative\Information Technology\Customer Services Management\Education and Training Team\Current TrainingModules\Advanced Excel\Advanced Excel formulas and functions.doc f

INTRODUCTIONPages 2 to 29 of these notes consist of Excel features that can be used as a refresherand/or a source of handy hints and ways of using different functions. Some of thesefeatures include: Using the function wizardCreating and using range namesReferencing other worksheets or work filesRecording macrosUsing the Fill Handle and FILL, SERIES commandConditional FormattingWherever possible hyperlinks have been used to aid in navigation. You can use thesenavigation links on-line by clicking on them in the document, or by clicking on the link inthe navigation panel at the left of Acrobat Reader window.If you are working from a printed copy of these notes, the exercise files are located atS:\Common\Special Projects\Training\Client Services\Advanced Excel Exercises. Theseare read only files, please do not move them. If you wish, make a copy of them in alocation of your choice.Pages 30 to 62 consist of Excel functions which have been chosen for their functionalityand popularity. If you would like to see a function included, please contact the Educationand Training Team.It is planned to have a tips and tricks section so if you have any of these please let usknow, all contributions gratefully received.Albury/ThurgoonaBathurstWagga WaggaMary WilliamsSue DixonPamela n Technology\Customer Services Management\Education and Training Team\Current TrainingModules\Advanced Excel\Advanced Excel formulas and functions.docPage 1

THE FUNCTION WIZARDA function is inserted into a spreadsheet either by typing it directly into the active cell; or inthe formula bar; or by using the INSERT FUNCTION option in Excel. The latter automatesthe process, ensuring that you get arguments in the right order. It also provides links tothe Help page (which includes examples of how the function is used).There are several ways of accessing the INSERT FUNCTION dialog box: Use the INSERT menu, select the FUNCTION option; Use the shortcut – SHIFT F3; or Click on the INSERT FUNCTION icon next to the formula bar.Using the Function Wizard1.Make sure you are in the cell where you want to place a function, then open theINSERT FUNCTION dialog box by one of the methods listed above.2.The INSERT FUNCTION dialog box will appear. The different areas are explainedon the next page.abcdS:\Administrative\Information Technology\Customer Services Management\Education and Training Team\Current TrainingModules\Advanced Excel\Advanced Excel formulas and functions.docPage 2

a)Type a brief description of what you want to do – then click on GO. Excel willsearch for functions that might perform the job; orb)If you prefer, and if you know the name of the function, you can drop down alist and select a category. If you aren’t sure which category your function is in,select ALL.To make scrolling to your function quicker when you are in the ALL category: Click somewhere in the “SELECT A FUNCTION” area of the dialog box;Type in the first two or three letters of the name very quickly. For exampleif you type VLO quickly, it will return VLOOKUP. If you type it slowly, youwill get the functions starting with the letter “V”, then when you type “L” thelist will change to the functions beginning with the letter “L”.If you used the function recently, select the MOST RECENTLY USEDcategory – this is a convenience list of your recently used functions.c)A brief description of the selected function.d)A link to take you to Excel’s comprehensive help menu for further details onthe selected function, this includes examples of use.3.Once you have found the function you require, select it then click on OK.4.The FUNCTION ARGUMENTS dialog box appears. Most of the time you will berequired to enter the arguments yourself, some however, as in the followingscreenshot, will look at your data and try and make an educated guess as to whatrange / data etc you would enter.The data in the text box can be changed by either: Clicking in the formula bar in the main excel window in and changing the data;S:\Administrative\Information Technology\Customer Services Management\Education and Training Team\Current TrainingModules\Advanced Excel\Advanced Excel formulas and functions.docPage 3

5. Dragging over cells behind the FUNCTION ARGUMENTS dialog box (the dialogbox can be moved to make viewing easier – just click and drag on the title bar);or Temporarily collapsing the FUNCTION ARGUMENTS dialog box by clicking onthe COLLAPSE DIALOG icon. This will then allow you to select larger rangeswithout hindrance. When you have selected the range/data click on the restorebutton (see screenshot below).When you have finished filling in all the arguments required in your function, clickon OK.Restoring the Function Arguments dialog box in order to edit a function1.Click in the cell where the function is.2.Click on the INSERT FUNCTION icon (the fx button) to restore the dialog box.Shortcut for entering a functionYou can access your most recently used functions without having to go through theINSERT FUNCTION dialog box.1.Make sure you are in the cell where you want the function to be. Instead of clickingon the FX icon to start your function, type an equal sign ( ). You will see thefunction that was last used in the space where the cell address normally shows.2.Either click on the function name (if it is the one you want to use), or click on thedrop down arrow next to the function name to see the list of recently used functions.S:\Administrative\Information Technology\Customer Services Management\Education and Training Team\Current TrainingModules\Advanced Excel\Advanced Excel formulas and functions.docPage 4

Click here if youwant to use thefunction that isshown.Click on the drop downarrow to access theMost Recently Usedlist.The MostRecentlyUsed List.3.As soon as you click on the required function, you will go straight to the FUNCTIONARGUMENTS dialog box, bypassing the INSERT FUNCTION option.S:\Administrative\Information Technology\Customer Services Management\Education and Training Team\Current TrainingModules\Advanced Excel\Advanced Excel formulas and functions.docPage 5

RELATIVE & ABSOLUTE ADDRESSINGThere are different sorts of cell references. These are: RelativeAbsoluteMixedA relative reference will change column and row numbers as it is copied to other cells.Think of it as an original instruction being to go in a certain direction e.g. 2 rows up and 2columns across from your current position. When this instruction is copied elsewhere, itwill still refer to 2 rows up and 2 columns across from your new current position.An absolute reference is one that does not change. If you refer to a cell in a certain rowand column and then copy that reference elsewhere, it will still refer to exactly the samecell or range.A mixed reference is one that is half relative and half absolute.An absolute address is defined with the use of the “ ” symbol. This can be typed in at thetime of creating the formula, or by editing the cell afterwards.Examples of relative and absolute addressing:RelativeA4A4:B5Absolute A 4 A 4: B 5Mixed A4 or A 4 A4:B 5The “ ” sign can be hand typed or inserted by pressing the keyboard shortcut F4.As you press F4 the cell address will cycle between the four variations of anaddress – for example A4 would cycle between:A4 A4A 4 A 4S:\Administrative\Information Technology\Customer Services Management\Education and Training Team\Current TrainingModules\Advanced Excel\Advanced Excel formulas and functions.docPage 6

NAMING CELLS AND RANGESCells and ranges can be given a name so that when you need to refer to that cell or rangeof cells, you can refer to its name rather than an address.ExampleIn the screenshot below, traditional cell addresses have been used forworking out January’s profit or loss.In the screenshot below, row 6 has been given the name Total Income and Row 15 thename Total Expenditure. When the formula for February was done, the syntax wasTotal Income – Total Expenditure. Using names may make it easier to understandwhat the formula is doing – it might make more sense to some, than saying B6 – B13.S:\Administrative\Information Technology\Customer Services Management\Education and Training Team\Current TrainingModules\Advanced Excel\Advanced Excel formulas and functions.docPage 7

There are a couple of ways to create a range name. They both require that you select thecell or range or before creating the name.Method 1: INSERT, NAME, DEFINE option (or CTRL F3)1.Go to the INSERT, NAME, DEFINE dialog box (or press the keyboard shortcutCTRL F3). The DEFINE NAME dialog box will appear;2.Give the cell or range you selected a name (quite often, as in the examplescreenshot below, the name suggested by Excel is more than adequate);3.Click on ADD, then click on CLOSE.NOTES: Range names must be one word – if you require 2 words, join them with anunderscore as in the example below. The names can be a combination of numbers and letters, but must not startwith a number. The default is to show the address as being ABSOLUTE. By clicking in theREFERS TO text box, this can be edited to what is required. As a default, names are workbook level i.e. the name you create is availablethroughout the whole workbook. If the worksheet has been named with a name that includes spaces, theworksheet name will have to be enclosed in single quotation marks.Method 2: Using the NAME box1.Highlight the cell or range(s) that is going to be named;2.Click in the NAME box (see the following screenshot). The contents of the namebox will be highlighted;3.Type the RANGE NAME you want and ENTER to accept the name.S:\Administrative\Information Technology\Customer Services Management\Education and Training Team\Current TrainingModules\Advanced Excel\Advanced Excel formulas and functions.docPage 8

Applying a Range Name in a FormulaTo use the RANGE NAME in a formula either:1.Type the name – make sure you use the correct spelling or else the function will notrecognise the name; or2.When you are in the part of the formula that requires the RANGE NAME, press thekeyboard shortcut F3. This brings up the PASTE NAME dialog box. Select thename and click on OK.When working with many names, you can have a list of these names andthe cells or ranges they refer to placed in your workbook by using thePASTE LIST option (located in the PASTE NAME dialog box - seescreenshot above). Make sure you are in an empty cell and have 2 columnsfree and as many rows as there are names before using this option.The first column will list the RANGE NAMES, the second column shows therange address that the range name refers to.S:\Administrative\Information Technology\Customer Services Management\Education and Training Team\Current TrainingModules\Advanced Excel\Advanced Excel formulas and functions.docPage 9

USING NAMES FOR CONSTANTS OR FORMULASIn addition to using Names to name cells or ranges, you can also name constants orformulas, these constants or formulas don’t have to appear in a cell. This is a good way ofstoring a constant or a formula that may have to be used several times.An example worksheet called NAMING FORMULAS has been created in the AdvancedExcel Exercises workbook, should you wish to try out this feature.Naming a constantImagine having to work out someone’s holiday leave loading. You might have the leaveloading in a cell (H6 in the example below), so that you can use this value in a formula. Byhaving the value in a separate cell, if the leave loading rate ever changes you would onlyhave to change the val

Modules\Advanced Excel\Advanced Excel formulas and functions.doc Page 2 THE FUNCTION WIZARD A function is inserted into a spreadsheet either by typing it directly into the active cell; or in the formula bar; or by using the INSERT FUNCTION option in Excel. The latter automates the process, ensuring that you get arguments in the right order.

Related Documents:

Excel 5.0 Excel 5.0 1993 Excel 5.0 1993 Excel 7.0 Excel 95 1995 Excel 8.0 Excel 97 1997 Excel 98 1998 Excel 9.0 Excel 2000 1999 Excel 2001 2000 Excel 10.0 Excel XP 2001 Excel v.X 2001 Excel 11.0 Excel 2003 2003 Excel 2004 2004 2.1.2 Worksheet Document Definition: Worksheet Document A worksheet document consists of a single sheet only.

Advanced Formulas 10 LESSON SKILL MATRIX . Using Formulas to Look up data in a workbook Adding Conditional Logic Functions to Formulas Using Formulas to Modify Text Demonstrate how to use the RIGHT, LEFT, and MID functions. 4.4.1 . Conditional formulas used in Excel include the functions SUMIF, COUNTIF, and AVERAGEIF that check for one .

A Note about Array formulas (not for Excel 365 / Excel 2021) Sometimes, you will need to enter a formula as array formula. In Excel 365/Excel 2021, all formulas are treated as Array formula, hence you need not enter any formula as Array formula. Only for older versions of Excel, you might need to enter a formula as Array formula.

Page 5 of 14 MS Excel Advanced Formulas 6/17/2015:mms Logical Functions OR Conditional Formulas: Logical functions can be used to create conditional formulas to test whether conditions are true or false and making logical comparisons between expressions.

Page 5 of 14 MS Excel Advanced Formulas 5/10/2018:mms Logical Functions OR Conditional Formulas: Logical functions can be used to create conditional formulas to test whether conditions are true or false and making logical comparisons between expressions.

1" "!!Advanced!Excel! Formulas!:!Functions!! " ur"experience"with"the"program"to"anew" level."Formulas"are"the"basic .

Excel 2013 Formulas and Functions Contents at a Glance Introduction Part I Mastering Excel Ranges and Formulas 1 Getting the Most Out of Ranges . 4 Creating Advanced Formulas

Modules\Advanced Excel\Advanced Excel formulas and functions.doc Page 3 a) Type a brief description of what you want to do - then click on GO. Excel will search for functions that might perform the job; or b) If you prefer, and if you know the name of the function, you can drop down a list and select a category.