Simply put - I love Excel. Back in the late 90's I discovered its power when my employer was looking for a way to simplify the creation of their manufacturing productivity reports. More recently, Excel helped me figure out how to move ten million dollars worth of inventory by redesigning a warehouse.
Excel is amazingly powerful and user-friendly. The formulas all have examples to which I pushed the envelope of those formulas. For example, in Excel 2003 I learned that you can only have 7 nested layers deep on an 'IF' statement.
It seems that it may be beyond the scope of the class, but it would be great to introduce macros to the class. Here's a macro that cleans up tabs and carriage returns...
' Removing tabs and carriage returns from worksheet cells
Sub CleanUp()
Dim TheCell As Range
On Error Resume Next
For Each TheCell In ActiveSheet.UsedRange
With TheCell
If .HasFormula = False Then
.Value = Application.WorksheetFunction.Clean(.Value)
End If
End With
Next TheCell
End Sub
The Ctrl End, Ctrl Home, Ctrl Page Down and other keys like that are wonderful in macros that get used over and over again where the data within the worksheet may expand or contrast.
At my company we have a sales team that travel every day. Supporting them is a small Army of users that generate expense reports at a very granual level. Often, one trip may need to have the expenses split amongst multiple projects. Rather than making the users do all this math, we have a macro in place where they enter say the cost of the flight. Then they enter a lookup code that represents how they want the cost of the flight to be allocated. They press a button on the spreadsheet called 'Allocate' and that calls a macro that will split the costs of the flight based on the percentage of each project associated with that lookup code.
We have some very sharp accountants at my company and they LOVE it when someone show them how to create macros because if it can save them time then they are all for it - especially at year end!
In short, I really enjoyed the topic of Excel this week. If I could offer some feedback, I think it would be fabulous if the project included the creation of a simple macro that would introduce students to the power of Visual Basic. There are a LOT of smart people in the world and I'm sure some of them would make use of VB if they were given just a small introduction. How I learned was by clicking the 'record macro' button, doing a few steps in Excel, turning the macro off and then looking at the VB code to figure out what was going on. A little adventure in Excel utlimately sparked my interest in relational database with AS400 and that got my foot in the door with Oracle. A desire to learn combined with being in the right place at the right time has helped fund many family vacations and steak dinners.
Thank you, Excel.
No comments:
Post a Comment