excel tips.docx

download excel tips.docx

of 31

Transcript of excel tips.docx

  • 7/27/2019 excel tips.docx

    1/31

    If you 've been loo king fo r an easier way todelete blank row s from your Excel data, then ch eck this o ut. ..

    Quickly Delete Blank Rows From A Long List(Excel 2010, 2007, 2003)by Francis Hayes (The Excel Add ict)

    If you have a long list of data that contains blank rows that you want to delete, you have

    several options.

    You could select each row, one by one, and delete them individually. If you havedozens or hundreds of rows, this could be time consuming.

    You could sort the rows alphabetically, which would put all the blank rowstogether, and then delete that group of blank rows. However, there will be timeswhen you may want to maintain the order of your list, so this would not be anoption.

    You could filter the list for blanks, select these rows (i.e. visible cells) and deletethem.

    You could use a little-known shortcut to quickly select the blanks in your list and

    delete them.

    This week I will cover option number 4 and next week I will cover option number 3. Thefirst two are self-explanitory and usually are not your best choice, so I won't discussthose.

    Suppose you receive a list of data that contains blank rows that you want to removewithout affecting the order of the list. This technique will allow you to delete all rows thathave blank cells in a particular column. Here's the fastest way to do it.

    1. First, before you make any drastic changes to any workbook always make sure

    you have a backup copy or a recently saved copy in case you need to restore theoriginal data .

    2. Now, select the cells in one column from the top of your list to the bottom. 3. Make sure that all the blank cells in this selected range are the rows you want to

    delete.4. Press the F5 key on your keyboard (or select Edit, Goto).5. Click the Special... button.

  • 7/27/2019 excel tips.docx

    2/31

    6. Click the Blanks option and click OK. This will select all blank cells in the rangeyou had previously selected.

    7. Now choose Edit, Delete, select the Entire Row option and click OK.

  • 7/27/2019 excel tips.docx

    3/31

    /

    http://www.theexceladdict.com/images/delete_blank_rows_in_excel_2010,2007_2003_large.jpg
  • 7/27/2019 excel tips.docx

    4/31

    If you work with large lists of data in Excel, this tip will save you a lot of time. If you

    don't work with large lists often, remember this tip anyway, because sooner or later

    you're going to need this.

    EXCEL - FAVOURITE TIPS AND TRICKS

    This write up is NOT meant to be a tutorial for beginners in MS Excel 2007. This write uppresumes that the reader has working knowledge of Excel 2007. For beginners in MS Excel2007, several free tutorials are available on the Internet. One such tutorial is athttp://office.microsoft.com/en-us/excel-help/up-to-speed-with-excel-2007-RZ010062103.aspx

    This write up preliminary endeavours to accomplish the task of being a ready referencer of

    Excel for accountants. However the final objective of the write up is much beyond this. Thiswrite up is in four parts:

    PART I Self Learn Advanced Excel

    Part II TOP 51 Tips and Tricks

    Part III Links to Excel Resources

    PART I - Self Learn Advanced Excel

    The question most frequently asked has always been "How can I learn Advanced Excel?"

    The short answer is "Use more of Excel". One would then have many questions, whichmeans so many opportunities to learn. To solve these questions and thereby self learnExcel, here is the route to follow:

    1. The First place to look for help on Excel is in Excel itself. Press F1, type out yourquestion and pat comes the reply. The help files are quite exhaustive and there aregood chances that the solution to your query would be found on your desktop itself.

    2. Come Home to Excel: There is a wealth of information on Excel at Microsoft OfficeExcel Home Page: http://office.microsoft.com/en-us/excel-help/office-excel-2007-product-overview-HA010165632.aspx?CTT=1

    3. If this does not work, try searching Microsoft Excel 2007 support communities athttp://answers.microsoft.com/en-us/office/forum/office_2007-excel?page=1 to findout if a similar question has already been asked and replied.

    4. Search if an identical/similar issue has been addressed on Microsoft Knowledgedatabase at http://search.support.microsoft.com/search/?adv=1

    5. Search at web sites listed in Part IV Links to Excel resources for tips and/or (free)addins to do what you want.

  • 7/27/2019 excel tips.docx

    5/31

    6. If you still cant find the solution, post a question to the Microsoft support communityat the URL (web address) mentioned at point three above. (Click here to know thenetiquettes of posting http://www.cpearson.com/excel/Hints AndTipsForNewsgroupUsers.aspx )

    Part II TOP 51 Tips and Tricks

    Includes a collection of TOP 51 Tips and Tricks from the perspective of its utility toChartered Accountants. The tips and tricks are in the form of solution to questions whoseanswer one always wanted to know. For questions that already have a solution posted onthe Internet which can be accessed for free, here we have simply provided the link to thesolution to avoid re-inventing the wheel.

    How do I

    Entering and editing data, data validation

    1. Create Shortcuts for commonly used words or phrases?

    2. Quickly fill a series of Values?

    3. Quickly fill Blank Cells in a list?

    4. Suggest what is to be entered in a cell? (Cell Comment)

    5. Change the User Name in the cell comment? Change the shape of the comment box?

    6. Make Excel read out the contents of a worksheet?

    7. Is there an alternative to Cell comment? (Data validation Input message)

    8. Create Drop Down Lists?

    9. Prevent duplicates while entering data?

    10. Navigate to areas of worksheet efficiently/make formulas easier to read andunderstand?

    11. Split Contents of Cells?

    12. Combine Text from Multiple Cells?

    Formatting, Key board Shortcuts, Copy paste

    13. Format cells (e.g. highlight data) automatically based on a certain condition?

    14. Automatically highlight maximum and minimum values in a list?

    15. What are the Key board shortcuts to:

  • 7/27/2019 excel tips.docx

    6/31

    a. Go to the last used cell in a sheet?

    b. Select cells from any cell to the last cell in the sheets used range?

    c. Move to the next/previous sheet?

    d. Open new workbook? Insert new sheet?

    e. Select entire row, Select entire column?

    f. Insert current Date Insert current time?

    16. Copy Paste only Values from one cell to another?

    17. Convert Text to numbers?

    18. Convert rows into columns?

    19. Copy from Excel to Word?

    Working with formulas and functions

    20. My spreadsheet does not calculate at all, whats wrong?

    21. Toggle Between Relative and Absolute referencing?

    22. Total if a condition is met?

    23. See all formulas at the same time (formula view) in a worksheet?

    24. Round off a number to the nearest 10 (to round off Total Income!!)?

    25. Get the month of a date/day of a week? Quickly fill Blank Cells in a list?

    26. Calculate the difference between two dates (e.g. calculate age in Excel)?

    27. Count non blank cells? i.e., Cells that contain data?

    28. Count blank cells? i.e., Cells that do not contain data?

    29. Count cells that contain only numbers?

    30. Monitor the value of a formula cell from any location?

    31. Rank a number in a list?

    32. Pick 20 random items (random sampling) from a list of 100 (population)?

  • 7/27/2019 excel tips.docx

    7/31

    33. Sort a list on more than three columns?

    Applying auto filters, advanced filters, automatic subtotals

    34. Quickly apply auto filter?

    35. Filter for records containing text string/Use Wildcards in Criteria?

    36. Remove Duplicates/Filter Unique Records?

    37. Filter for more than one criterion?

    38. Sum only visible rows in a filtered list?

    39. Count visible rows in a filtered list?

    40. Automatically summarize data by calculating subtotals?

    41. Calculate subtotal within a subtotal?

    Charts and Graphs in Excel

    42. Which is one of the Best resource on Excel Charting? (see also "Part IV Links to ExcelResources")

    Emailing from Excel

    43. Where do I find all the information I need for emailing from Excel?

    Financial functions

    44. Calculate the effective annual interest rate where interest is compounded?

    45. I am buying Government security that pays periodic interest. How do I calculate accruedinterest on it?

    46. Calculate the payment for a loan (for example, EMI) based on constant payments andconstant interest rates?

    47. Calculate interest rate that I am actually paying (and the lender is earning) on my homeloan or car loan? (i.e., internal rate of return for a schedule of periodic cash flows)

    48. Calculate internal rate of return for a schedule of cash flows that is not necessarilyperiodic (for exemple, in case of businesses where cash inflows and outflows arenot periodic)?

    49. Calculate Net Present value for a schedule of cash flows that is not necessarily periodic?

  • 7/27/2019 excel tips.docx

    8/31

    50. Calculate yield of a bond that pays periodic interest?

    Macros and VBA

    51. I have heard a lot about Macros, but dont know where to begin with. How do I startwith Macros?

    PART III - Links to Excel Resources/Books on Excel

    Includes links to the best resources on Excel. Learn Excel, explore VBA, pick up a tip, sharea tip with others, download utilities for Excel and have fun. An almost exhaustive listingof the best links to Excel resources can be found at

    http://www.wittysparks.com/2009/04/17/list-of-useful-ms-excel-resource-sites/and hence prudence suggest that no one should make any more. However a listing ofExcel resources that Ihave found particularly useful are:

    1. How to write spreadsheets: http://www.mang.canterbury.ac.nz/people/jfraffen/spreadsheets/index.html

    2. Stephen Bullens site contains great examples of various Excel programming andcharting techniques: http://www.bmsltd.ie/

    3. Excel information and tips at: http://www.mvps.org/dmcritchie/excel/excel.htm

    4. A wealth of useful information: http://www.cpearson.com/excel.htm .

    5. One of the best resources on Excel charting: http://peltiertech.com/

    1. Create Shortcuts for commonly used words or phrases?

    Use the AutoCorrect feature. It creates shortcuts for commonly used words or phrases.

    Click Office Button Excel Options Proofing AutoCorrect Options AutoCorrect

    On the [AutoCorrect] tab check the option Replace Text As You Type

  • 7/27/2019 excel tips.docx

    9/31

    Note that Excel Shares your AutoCorrect List with other Office Applications. AutoCorrectentries you created in Word will also work in Excel

    2. Quickly fill a series of values?

    Use the AutoFill feature. It inserts a series of values or text items in a range of cells.

    Drag the AutoFill handle (the small box at the lower right of the Active cell) to copy the cellor automatically complete the series

    You can create your own list by adding a Custom List. To add a Custom List click and select the [CustomList tab]. In the [List entries] list box, type out your list entries separated by enter.

    3. Quickly fill Blank Cells in a list?

    Many times in a list, especially so when it is imported from a database, cells down below

  • 7/27/2019 excel tips.docx

    10/31

    that have same headings or subheadings are left blank for the sake of easier readability. Foreg. See the screenshot below

    However this creates a difficulty when such lists are required to be sorted and/orsubtotaled. To fill the cells down below with the subheadings of the cells above them, do thefollowing:

    1. Select the list

    2. Click CTRL + G.

    3. In the [Go To] dialogue box that appears, click the Special button

    4. In the [Special] dialogue box, select blanks. This will highlight only the blank cells inthe list, with focus on the 1st blank cell. See figure

    5. In the 1st blank cell, i.e. the cell with the focus, enter the formula =A2 (see figure)and press CTRL+ENTER.

  • 7/27/2019 excel tips.docx

    11/31

    6. As a result, the blank cells down below get filled up with the subheadingsimmediately above them. See figure

    4. Suggest what is to be entered in a cell? (Cell Comment)

    Cell Comment

    Suggest the user as regards what is to be entered in the cell

    1. Select the cell wherein you wish to see the message,

    2. Right click and select .

    3. Type the instruction in the comment box.

    Note that the cell comment is displayed only when you move the cursor over the cell.

    5. Change the User Name in the cell comment?

    Click the Office button Excel Options Popular Personalize your copy of Microsoft Office.A change here, changes the User name at the start of a comment.

    Instead of showing the user name at the start of a comment, you can change to something

    generic, such as Sir.

    To do this Click Office Button Excel Options Popular. Under the caption Personalize yourcopy of Microsoft Office, delete the existing User Name, and type a new entry. Click OK.

  • 7/27/2019 excel tips.docx

    12/31

    This change affects the User Name in all Microsoft Office programs.

    6. Make Excel read out the contents of a worksheet?

    Use the Speak Cells feature. It reads the contents of a range / Reads data as entered

    Get the Speak Cells button on the Quick Access Toolbar by clicking Office Button ExcelOption Customize. In the [Choose commands from] list box, select [Commands Not in theRibbon]. From the list ofcommands, select Speak Cells and add it to the Quick AccessToolbar by clicking the button. Also add the Speak Cells on Enter button.

    To make Excel read out a range of cells, select the range first, and then click button.. To read the data as it is entered, click button.

    To adjust voice, Click My Computer Control Panel Speech. Select an option that you likein the [Text To Speech] tab.

    7. Is there an alternative to Cell comment?

    Yes, there is. Its called Data validation Input message

    Select the cell(s) in which you want to see the message. On the ribbon, click the tab then click . Click the [Input Message] tab .Check the option 'Showinput message when cell is selected'. Type your message heading text in the Title box. Thistext will appear in bold print at the top of the message. Type your message in the Input

  • 7/27/2019 excel tips.docx

    13/31

    message box. Click OK.

    Note that this message is displayed when you tab to the cell.

    8. Create Drop Down Lists?

    Havent you always wanted to create those lovely drop down list boxes to enter data in listsor forms for uniformity and standardisation? (See Figure)

    These are called data validation list boxes. Heres how create them. In our example, Let usconsider that you want the user to enter season in column B from a list of valid seasons. Tocreate the List box for all cells in that column, select the entire column, except cell B1, andon the ribbon click

    This will activate the [Data Validation] dialogue box. The [Settings] tab, prompts you for thevalidation criteria. In the first list box captioned Allow, select the option List. Now in thethird list box captioned Source, type out the valid list separated by commas or refer to therange where valid seasons have been entered.

  • 7/27/2019 excel tips.docx

    14/31

    Note that you can also give a named range as the source of a valid list

    In the Input message tab, you may enter a message like {Please Select A season from theList}. This may help the person who enters data as regards what is to be entered in thatparticular cell. In the Error Alert tab, you may enter a message like {Invalid Season, Onlyan item from the list is allowed!}. This message is flashed whenever the data entry personenters a season that is not one from the List. If you do not specify the Error Alert Message,Excel displays its standard Error Alert Message. Thats it! Click , and you are done.Now in every cell of column B, a list box appears as under. You may select the appropriateseason, by simply clicking the drop down list box arrow. For Key Board addicts, who find itirritating to reach for the mouse every time the designation is to be entered, just go the cellin column D, and hit the [ALT + Down Arrow Key]

    9. Prevent Duplicates while entering Data?

    Use the Data Validation + Countif function. It Prevents the user from entering Duplicatedata.

    To do this:

    1. Select a range of cells, for example, A2:A20.

    2. On the Ribbon click

    3. Select the [Settings] tab.

    4. From the Allow dropdown list, select Custom.

    5. In the Formula box, enter the following formula:

  • 7/27/2019 excel tips.docx

    15/31

    =COUNTIF($A$2:$A$20,A2)=1

    6. Type an appropriate error message in the [Error Alert] Tab

    10. Navigate to areas of worksheet efficiently / make formulas easier to read andunderstand?

    Use the Named Range feature. It makes navigation efficient and makes formula easier toread and understand

    To do it:

    1. Select the cell(s) to be named

    2. Click in the Name box, to the left of the formula bar

    3. Type a one-word name for the list, e.g. ValidSeason

    4. Press the Enter key

    11. Split Contents of Cells?

    Suppose you have entered the full name of a person in a particular cell and you now want tohave Surname, First Name and Middle Name in three different cells. To do this, simplyselect the cell that contains the Full Name of the person, Click . This will activate the text to columns wizard (See Figure).

  • 7/27/2019 excel tips.docx

    16/31

    In step No 1 select the First radio button captioned , then click the button. In step No. 2, from the various types of Delimiters, select the check Box [Space].You now see how the Full Name would be split into Surname, First Name and Middle Name.If you are fine with the display, click .

    In step No. 3, amongst other things, you are asked to provide the cell address from whereyou would like the split text to appear. Thats it, on the main screen wizard of step Threeclick . You now see the Full Name split into Surname, First Name and Middle Namein three different cells.

    12. Combine Text from Multiple Cells?

    Use the & (ampersand) operator

    Lets you combine text from multiple cells

    To combine text from multiple cells into one cell, use the & (ampersand) operator. Add a

    space between double quotes ( ) to include a space in the combined text

  • 7/27/2019 excel tips.docx

    17/31

    13. Automatically format cells (e.g. change font color) based on a certain

    condition?Use the conditional Formatting. Conditional formatting allows you toset rules for cell formatting. If the rules (conditions) are met, then the formatting

    is applied. To do this:

    1. Select the cells to be formatted

    2. On the [Home] tab of the ribbon click [Conditional Formatting]

    3. Leave the first drop-down box set to Cell Value Is

    4. In the second drop-down box, choose one of the operators. Example, choose 'greaterthan'

    5. In the text box, type a number or a cell reference. In this example, type the value youwant to check 499999.

    6. Click the Format button

    7. On the Patterns tab, select a colour for the conditional formatting -- blue, in thisexample.

    You can also choose a Font format or a cell Border.

    8. Click OK.

    9. To add another conditional format, click the Add button.

    10. Repeat steps 3 to 8, using the values and colours for the second conditional format.

    11. Click OK, to return to the worksheet.

    14. Automatically highlight maximum and minimum values in a list?

    Conditional Formatting Top/Bottom Rules

    1. Select the Range.

    2. On the [Home] tab click [Conditional Formatting] Top/Bottom Rules Top 10 items.

    3. In the Top 10 items dialogue box specify the number of top items that you wish tohighlight and the format for the same. Click

    4. To highlight bottom values, on the [Home] tab click [Conditional Formatting] Top/Bottom Rules Bottom 10 items

    5. In the Bottom 10 items dialogue box specify the number of bottom items that you wish tohighlight and the format for the same. Click

  • 7/27/2019 excel tips.docx

    18/31

    15. Which are amongst the most useful Keyboard Shortcuts?

    Display or Hide the ribbon?

    Press CTRL+ F1.

    Go to the last used cell in a sheet?

    Press CTRL + End.

    Select cells from any cell to the last cell in the sheet's used range?

    Press Shift + Ctrl + End to select cells from any cell to the last cell in the sheet's used rangeand Shift + Ctrl + Home to select cells from any cell to the first cell (A1) in the sheet's usedrange

    Move to the next / previous sheet?

    Press CTRL + Pg Up to go to next sheet and CTRL+ Pg Dwn to go to previous sheet.

    Open new workbook?

    Press Ctrl + N

    Insert new sheet?

    Press Shift + F11

    Select entire row, Select entire column?

    Press CTRL + Space Bar to select entire column and Shift + Space Bar to select entire row.

    Insert current Date

    Press CTRL ; to insert current date

    Insert current time?

    Press Shift + CTRL + ; to insert current time

    16. Copy Paste only Values from one cell to another?

    Consider this example. Cell B3 contains the Formula =B1-B2 (see figure below).

    This formula evaluates to 200. This 200 is the value of Cell B3. To copy and paste thisValue i.e. 200, to the adjoining cell C3, go to cell B3, hit [CTRL + C], or right your mouse

  • 7/27/2019 excel tips.docx

    19/31

    and select from the shortcut menu that pops up. Go to cell C3 and click . A [Paste Special] dialogue box shall appear (See figure). . From thevarious options in the dialogue box, select the third option [Values] and click on . Itsdone! Cell C3 now contains the value 200. In the same way you can copy and paste onlythe Formats (especially the conditional Formatting applied to a cell), Comments, Validation,etc, by selecting the appropriate button from the [Paste Special] dialogue box.

    17. Convert Text to numbers?

    In the Paste Special, select Operation Multiply. It converts text (that appears asnumbers) to numbers. Follow the following steps:

    1. In an empty cell, enter the number 1.

    2. Select the cell, and copy

    3. Select the range of text (appearing as numbers).

    4. On the [Home] tab click [Paste] .

    5. In the [Paste Special] dialogue that appears, under Operation, select Multiply.

    6. Click OK.

    18. Convert rows into columns?

    Well, consider this. You have created a sheet wherein headings like LName, FName,MName, Address1, Address2, etc, are arranged in rows while records appear as columnsbesides these headings (see Figure below).

  • 7/27/2019 excel tips.docx

    20/31

    Now, after entering around thirty to fourty records, you realise the obvious drawbacks ofthis layout and wish to rearrange the entire sheet by making the headings as columns andrecords below them as rows. This is what you can do. Select all cells, including the heading,and copy them. Open a fresh worksheet and select cell A1. Click . In the [Paste Special] dialogue box simply check the Transpose checkbox andclick . Thats it. The sheet now looks as desired (see figure below).

    19. Copy from Excel to Word?

    Consider this. You have just finished typing out a lengthy report in Excel. At the very end,you realise that the report has hardly any calculations, and the formatting of the reportwould have been far better had the report been typed out in Word. So, you now wish tomove only the entire text from the spreadsheet (Report) in Excel to Word and later on

    format it. This is what you can do. Select the entire report and copy it. Open a freshdocument in Word. On the home tab, click . In the Paste Special dialogueBox, select the [Paste] radio button on the left hand side and form the [As:] list box selectthe third option [Unformatted Text]. Click . Thats it. Now format the report the wayyou want!

    20. My spreadsheet does not calculate at all, whats wrong?

    Calculation is set to Manual, alter this in Home Excel Options Formulas Calculationoptions [Automatic]

    21. Toggle Between Relative and Absolute referencing?

    Press F4 when in Edit mode

    When in Edit mode, select the reference you want to change and press F4

    22. Calculate total if a condition is met?

  • 7/27/2019 excel tips.docx

    21/31

    Use the SUMIF() Function. It calculates total if a condition is met

    1. Type an equal sign (=) to start the formula, Type: SUMIF(

    2. Select the cells that contain the values to check for the criterion. In this example, cellsC2:C211 will be checked

    3. Type a comma, to separate the arguments

    4. Type the criterion. In this example, you're checking for text, so type the word in doublequotes: Jackets

    5. Type a comma, to separate the arguments

    6. Select the cells that contain the values to sum. In this example, cells E2:E211 will besummed

    7. The completed formula is:

    =SUMIF(C2:C211,Jackets,E2:E211)

    23. See all formulas at the same time (formula view) in a worksheet?

    The formula view is the normal method of showing formulas in Excel. To see allExcelformulas instead of their calculated results, click the Office button and check theoption Display Options for this worksheet Advanced Options [Show formulas in cellsinstead of their calculated results]

    Ctrl+` is the equivalent shortcut (toggle on/off) -- accent grave to left of the 1,2,3 on thetop row

    24. Round off a number to the nearest 10

    Use the Round () function to do this. For eg. Round(A1,-1) rounds the number in cell A1 tonearest 10s

    25. Get the month of a date / day of a week?

    MONTH() function/WEEKDAY() function

    Use the MONTH() function to get the month from a date. To get the day of the week, usethe WEEKDAY() function

    Note: To display the day of the week spelled out, set the number format of the cell dddd

    26. Calculate the difference between two dates (e.g. calculate age in Excel)?

    Use the Datedifffunction to do this. Where date of birth is entered in Cell C2 and todaysdate in cell D2, the following formula will calculate the age in completed years, months and

  • 7/27/2019 excel tips.docx

    22/31

    days: =DATEDIF(C2,D2,"y") & " years, " & DATEDIF(C2,D2,"ym") & " months, "&DATEDIF(C2,D2,"md") & " days, "

    27. Count non blank cells? i.e. Cells that contain data

    Use the =COUNTA() FUNCTION

    28. Count blank cells? i.e. Cells that do not contain data

    Use the =COUNTBLANK() function

    29. Count cells that contain only numbers?

    Use the =COUNT() function

    30. Monitor the value of a formula cell from any location?

    Use the Watch Window feature

    If you have a spreadsheet model you may find it helpful to monitor the values in a few keycells as you change few input cells. To watch a cell, select the cell. On the Formulas tab ofthe ribbon click Watch Window. Excel displays a floating window titled [Watch Window].Click Add. See figure

    32. Pick 20 random items (random sampling) from a list of 100 (population)?

    Use RAND() formula to do this. Say your population is in column A from A1:A100. InB1:B100 enter formula =RAND(). Sort the list by B column; top 20 rows is your selection.Press F9 for new numbers in column B and repeat for a new selection.

    33. Sort a list on more than three columns? (For Excel 2002/03/XP)

    Use sort Ascending or sort Descending buttons on the standard toolbar

    Start with the least significant sort and end with the most significant sort. Example tosort a sales file by Year, Season, Type and State, first sort by State, then by Type, then bySeason and then by Year.

    34. Quickly apply auto filter?

  • 7/27/2019 excel tips.docx

    23/31

    Add AutoFilter icon to quick access toolbar

    1. Click Microsoft Office button .

    2. In the dialog box, click Customize.

    3. In the Choose commands from list box, select Commands Not in the Ribbon.

    4. Select the AutoFilter icon (Funnel shaped)) from the list below and add it to the QuickAccess toolbar.

    5. Click OK.

    35. Filter for records containing text string / Use Wildcards in Criteria?

    Use wildcard characters to filter for a text string in a cell.

    The * wildcard

    The asterisk (*) wildcard character represents any number of characters in that position,including zero characters. In this example,

    any customer whose name contains "Mall" will pass through the filter.

    The ? wildcard

    The question mark (?) wildcard character represents one characters in that position. In this

  • 7/27/2019 excel tips.docx

    24/31

    example

    any 4-letter product that begins with c, and ends with ke (eg. Coke, Cake) will pass

    through the filter.

    The ~ wildcard

    The tilde (~) wildcard character lets you search for characters that are used as wildcards. Inthis example,

    only the product named Good*Eats, will pass through the filter.

    36. Remove duplicates / Filter Unique Records?

    You can use an Advanced Filter to extract a list of unique items in the list. To do this, clickon filter . In the [Advanced Filter] dialogue box that opens,check out the Unique records onlyoption (See figure below). Thats it. You are done.

    37. Filter for more than one criterion?

    Use Criteria range: in the [Advanced Filter] dialogue box to filter a list that meets a givencriteria. You can use more than one criteria to filter a list as well.

    To filter a list for records that meet ALL the criteria, write all conditions in one row. Thisshall filter the list for records that meet all the conditions. For example writing the criteria inthis way shall filter the list for records where -

    Customer = CityMall AND Product = Cakes AND Total = greater than 500.

  • 7/27/2019 excel tips.docx

    25/31

    To filter a list for records that meet ANY of the criteria, write conditions in different rows.This shall filter the list for records that meet any of the conditions. For example writing thecriteria in this way shall filter the list for records where -

    Customer = CityMall OR Product = Cakes OR Total = greater than 500.

    38. Sum only visible rows in a filtered list.

    To sum only visible rows which contain data, you can use the Subtotal function in aformula in the same row as your headings. For example,

    to sum the visible entries in column D which contain numbers, you could use this formula:=SUBTOTAL(9, D:D) . The number 9 in the first part of the formula, tells Excel to Sumthe numbers in column D.

    39. Count visible rows in a filtered list?

    Similarly, to count the visible rows in a filtered list, use the Subtotal formula with number 2in the first part of the formula. For example,

    The formula used in the above screenshot counts the number of visible rows in column D.

    40. Automatically summarize data by calculating subtotals?

    Use the Subtotal feature to do this.

  • 7/27/2019 excel tips.docx

    26/31

    To insert subtotals into a list, first sort the list.

    [Subtotal].Click a cell in the sorted list, and then click [Data]

    41. Calculate subtotal within a subtotal?

    Uncheck Replace Current Subtotals in the [Subtotal] dialogue box

    1. First sort the list.

    2. [Subtotal].Click a cell in the sorted list, and then click [Data]

    3. Repeate step No. 2, but Uncheck Replace Current Subtotals in the [Subtotal] dialoguebox

    42. Which is one of the Best resources on Excel Charting? (see also Part IV Links

    to Excel Resources)

    Check outhttp://peltiertech.com/. It is one of the best resources on Excel charting

    43. Where do I find all the information I need for emailing from Excel?

    Check out Ron de Bruin Microsoft MVP Excel site athttp://www.rondebruin.nl/Here youcan find all the information you may ever need for emailing from Excel.

    44. Calculate the effective annual interest rate where interest is compounded?

    Use EFFECT(nominal_rate,npery) function to calculate the effective annual interest rate,

    given the nominal annual interest rate and the number of compounding periods per year.

    Syntax

    EFFECT(nominal_rate,npery)

    Nominal_rate is the nominal interest rate.

    Npery is the number of compounding periods per year. e.g. 2 if compounded semi-annually,4 if compounded quaterly.

    For e.g. where the nominal interest rate is 5.25% p.a. and the compounding is quaterly, the

    effective interest rate works out to be 5.3543%. See figure.

    http://peltiertech.com/http://peltiertech.com/http://peltiertech.com/http://www.rondebruin.nl/http://www.rondebruin.nl/http://www.rondebruin.nl/http://www.rondebruin.nl/http://peltiertech.com/
  • 7/27/2019 excel tips.docx

    27/31

    45. I am buying Government security that pays periodic interest. How do I

    calculate accrued interest on it?

    Use the AccruedInt() function to calculate accrued interest on a security that pays periodicpayment.

    Syntax

    ACCRINT(issue,first_interest,settlement,rate,par,frequency,basis)

    Issue is the security's issue date.

    First_interest is the security's first interest date.

    Settlement is the security's settlement date. The security settlement date is the date afterthe issue date when the security is traded to the buyer.

    Rate is the security's annual coupon rate.

    Par is the security's par value. If you omit par, ACCRINT uses $1,000.

    Frequency is the number of coupon payments per year. For annual payments,frequency =1; for semiannual, frequency = 2; for quarterly, frequency = 4.

    Basis is the type of day count basis to use.

    For e.g. see figure

  • 7/27/2019 excel tips.docx

    28/31

    46. Calculate the payment for a loan (for e.g. EMI) based on constant payments

    and constant interest rates?

    Use the PMT() function to Calculate the payment for a loan (for e.g. EMI) based onconstant payments and constant interest rates.

    Syntax

    PMT(rate,nper,pv,fv,type)

    Rate is the interest rate for the loan.

    Nper is the total number of payments for the loan.

    Pv is the present value, or the total amount that a series of future payments is worthnow; also known as the principal.

    Fv is the future value, or a cash balance you want to attain after the last payment ismade. If fv is omitted, it is assumed to be 0 (zero), that is, the future value of a loan is 0.

    Type is the number 0 (zero) or 1 and indicates when payments are due.

    For e.g. see figure

    Note: you can also use PMT function to calculate payments to annuities other than bankloans. For e.g. you can calculate the amount required to be saved per month to accumulate

  • 7/27/2019 excel tips.docx

    29/31

    a sum of amount at the end of a given period where your savings earn interest as well.

    47. Calculate interest rate that I am actually paying (and the lender is earning) on

    my home loan or car loan? (i.e. internal rate of return for a schedule of periodic

    cash flows)

    Use the IRR function to calculate internal rate of return for a schedule of periodic cash flows.The cash flows do not have to be even, as they would be for an annuity. However, the cashflows must occur at regular intervals, such as monthly or annually. The internal rate ofreturn is the interest rate received for an investment consisting of payments (negativevalues) and income (positive values) that occur at regular periods.

    For e.g. see figure

    48. Calculate internal rate of return for a schedule of cash flows that is notnecessarily periodic (for e.g. in case of businesses where cash inflows andoutflows are not periodic)?

    Use the XIRR() function. It returns the internal rate of return for a schedule of cash flowsthat is not necessarily periodic. To calculate the internal rate of return for a series ofperiodic cash flows, use the IRR function.

    Syntax

    XIRR(values,dates,guess)

    Values is a series of cash flows that corresponds to a schedule of payments in dates. Thefirst payment is optional and corresponds to a cost or payment that occurs at the beginningof the investment. If the first value is a cost or payment, it must be a negative value. Allsucceeding payments are discounted based on a 365-day year.

    49. Calculate Net Present value for a schedule of cash flows that is not necessarily

    periodic?

    Use the XNPV() function to Calculate Net Present value for a schedule of cash flows that is

  • 7/27/2019 excel tips.docx

    30/31

    not necessarily periodic.

    Syntax

    XNPV(rate,values,dates)

    Rate is the discount rate to apply to the cash flows.

    Values is a series of cash flows that corresponds to a schedule of payments in dates. Thefirst payment is optional and corresponds to a cost or payment that occurs at the beginningof the investment. If the first value is a cost or payment, it must be a negative value. Allsucceeding payments are discounted based on a 365-day year. The series of values mustcontain at least one positive value and one negative value.

    Dates is a schedule of payment dates that corresponds to the cash flow payments. The firstpayment date indicates the beginning of the schedule of payments. All other dates must belater than this date, but they may occur in any order.

    50. Calculate yield of a bond that pays periodic interest?

    Use the YEILD() function to calculate yield of a security that pays periodic interest.

    Syntax

    YIELD(settlement,maturity,rate,pr,redemption,frequency,basis)

    Important Dates should be entered by using the DATE function, or as results of otherformulas or functions. For example, use DATE(2008,5,23) for the 23rd day of May, 2008.

  • 7/27/2019 excel tips.docx

    31/31

    Settlement is the security's settlement date. The security settlement date is the date afterthe issue date when the security is traded to the buyer.

    Maturity is the security's maturity date. The maturity date is the date when the securityexpires.

    Rate is the security's annual coupon rate.

    Pr is the security's price per $100 face value.

    Redemption is the security's redemption value per $100 face value.

    Frequency is the number of coupon payments per year. For annual payments, frequency=1;for semiannual, frequency = 2; for quarterly, frequency = 4.

    For e.g. see figure

    51. I have heard a lot about Macros, but dont know where to begin with. How do I

    start with Macros?

    The best place to start with Macros and VBA is to go through Microsofts tutorial archived athttp://web.archive.org/web/20031204013634/support.microsoft.com/default.aspx?scid=/support/excel/content/vba101/default.asp. Also check out this link for explanation on macros,VBA and User defined Functions:http://www.mvps.org/dmcritchie/excel/getstarted.htm

    http://web.archive.org/web/20031204013634/support.microsoft.com/default.aspx?scid=/support/excel/content/vba101/default.asphttp://web.archive.org/web/20031204013634/support.microsoft.com/default.aspx?scid=/support/excel/content/vba101/default.asphttp://web.archive.org/web/20031204013634/support.microsoft.com/default.aspx?scid=/support/excel/content/vba101/default.asphttp://www.mvps.org/dmcritchie/excel/getstarted.htmhttp://www.mvps.org/dmcritchie/excel/getstarted.htmhttp://www.mvps.org/dmcritchie/excel/getstarted.htmhttp://www.mvps.org/dmcritchie/excel/getstarted.htmhttp://web.archive.org/web/20031204013634/support.microsoft.com/default.aspx?scid=/support/excel/content/vba101/default.asphttp://web.archive.org/web/20031204013634/support.microsoft.com/default.aspx?scid=/support/excel/content/vba101/default.asp