![]() |
|
|||||||||||||||
|
New Tips for Excel
![]() Leo Laporte, Merlin Mann, Bill Jelen, and Cali Lewis on the set of Call for Help on TechTV Canada. This month, Cali Lewis (from GeekBrief) was the guest co-host. On this particular episode, Merlin from 43Folders.com was the other guest. The tip in this show is from Learn Excel from MrExcel.
Recently, I have been out doing several Excel Power Seminars. When you get 150 accountants in a room
for a laugh-filled morning of Excel tips and tricks, I always learn something new. Someone in the audience is
able to share a cool trick with the rest of the room.
In today's episode, I have a collection of new tricks. These are actually tricks that are better or different than
the equivalent method discussed in the book. They will definitely be in the next revision of the book.
By the way, I would love to come to your city to do a Power Excel Seminar. If you belong to a professional group such as the
local chapter of the Institute of Managerial Accountants, the Institute of Internal Auditors, the AICPA, the SME, etc., why not
suggest that they book me for one of their upcoming CPE days? Send your chapter program chairperson to this page for details.
Find the Difference Between Two DatesI usually talk about the methods for using =YEAR(), =MONTH(), =DAY() functions, but there is a cool old function hiding in Excel. The DATEDIF function is left over from Lotus. While Excel help doesn't talk about this function, it is a great way to find the difference between two dates. The syntax is =DATEDIF(EarlierDate,LaterDate,Code) Here are the valid values that you can use for Code.
The formula in column G strings this together to create text with the length of time in years, months, and days.
You could combine this into a single formula. If cell A2 contains the joining date, use the following formula in B2:=DATEDIF($A2,TODAY(),"Y")&" years, "&DATEDIF($A2,TODAY(),"YM")&" months & "&DATEDIF($A2,TODAY(),"MD")&" days" Sum of Visible Cells Add a SUM function below a database and then use AutoFilter to filter the database. Excel will annoyingly include the hidden rows in the sum! Instead, follow these steps:
Shortcut key to Repeat the Last CommandThe F4 key will repeat the last command that you performed. For example, select a cell and click the B icon to make the cell bold. Now, select another cell and press F4. Excel will make that cell bold. F4 will remember the last command. So, you could make a cell in italics, and then use F4 to make many cells italics. Pre-select the range of cells to be entered In the book, I show you how to use Tools - Options - Edit - Move Selection After Enter Direction - Right to force Excel to move to the right when you press the enter key. This is good when you have to enter data going across a row. It is particularly useful if you are entering numbers on the numeric keypad. The trick allows you to type 123 Enter and end up in the next cell. By keeping your hands on the numeric keypad, you can enter the numbers faster. Someone suggested an improvement to this technique. Pre-select the range where you will be entering the data. The advantage is that when you get to the last column and press Enter, Excel will jump to the beginning of the next row. In the image below, pressing Enter will move you to cell B6.
Ctrl+Drag the Fill HandleI've shown the Fill Handle trick many times on the show. Enter Monday in A1. If you select cell A1, there is a square dot in the lower right corner of the cell. This dot is the Fill Handle. Click the fill handle and drag either down or to the right. Excel will fill in Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday. If you drag for more than 7 cells, Excel will start over again on Monday. Excel is really good. It can extend all of these series automatically:
MrExcel.com provides examples of Visual Basic procedures for illustration only, without warranty either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. The Visual Basic procedures on this web site are provided "as is" and we do not guarantee that they can be used in all situations.
|
Excel is a registered trademark
of the Microsoft® Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.
All contents Copyright 1998-2008 by MrExcel Consulting.