Choose an area of interest:
Search 

Choose an area of interest:


Excel Tips From the Excel Guru


November 2005 Despite the large selection of accounting software programs for businesses, Microsoft Excel is the tried-and-true spreadsheet option for most, especially for small businesses. A new book by Bob Umlas, a Microsoft Excel MVP and author of 300 articles on Excel, shares several tips on how to get the most out of the software.



This Isn't Excel, It's Magic! is a concise and visual 144-page book with 85 tips and tricks, and is reasonably priced at $19.95.

Below you'll find two excerpts from the book: one on Filling Holes, and the other on Unique Entries.

Filling Holes

Suppose you have a worksheet like this:

And you'd like to sort it by state! Yikes. You KNOW it would be quite messed up because of the holes (empty cells). In this example it wouldn’t take too long to fill PA down from A2:A10, then WA from A11 to A15, etc. and then it'd be easy to sort, but if this extended to row 6000, forget it!

 

Well, there's a pretty easy way:

 

1. Select cells, use Edit/Goto Special, select Blanks:

2. Type "=", press the up-arrow, then press Ctrl/Enter:

What? It can't be that easy! What happened? Look at cell B3: It says =B2, or the cell above. Ctrl-enter says "fill the selected cells with the formula", so every blank cell references the cell above. So A12 says =A11, etc.

Now the sort is trivial. And if you want to clear the formulas, simply select 1 cell, use Edit/Goto Special, select Formulas & OK, then press the delete key to produce the sorted result.

Allow Only Unique Entries in a Column

Use Data/Validation with a custom formula like =COUNTIF(B:B.B1)=1:
 
Remember the COUNTIF function -- its syntax is =COUNTIF(Range,criteria). With all the cells in column B selected, this formula returns TRUE only if the COUNTIF for all of column B (the range) contains only 1 value of "Can contain only unique values". If you were to select B2 at this point and re-examine the data validation formula, you’d see =COUNTIF(B:B,B2)=1.

Let's enter 1 in cell B7 and see what happens:


 
The message appears because the data validation for cell B7 is =COUNTIF(B:B,B7), which returns 2. The message comes from the error alert tab of the Data/Validation dialog:


For more information about Bob Umlas' book This Isn't Excel, It's Magic! visit http://www.iil.com/iil/excelmagic. The book can also be purchased at Amazon.com and Borders.com, and will soon be available in an e-book edition.

2005 International Institute for Learning Inc. Excerpts used with permission.

Related Stories
 
 
This Week in the SmartPros News & Insights Newsletter

  Related Courses
 
Professional Education Center


 
Would you recommend this article?
5 (yes, highly)
4
3
2
1 (no, not at all)
Comments:


 
 
About SmartPros | Accounting Products | Professional Education | Marketing Services | Consulting | Engineering Products | Contact Us
2007 SmartPros Ltd.