The basics needed to be a good Excel programmer

xenou

MrExcel MVP
Joined
Mar 2, 2007
Messages
16,836
Office Version
  1. 2019
Platform
  1. Windows
I know its been asked before but I am in a hurry...

What would a "student" need to know in order to be a good excel programmer. Imagine you have 3 weeks in which to teach it.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Here's what I have so far:

Understanding the variant data type
Functions vs Subs
Error Handling
Working with in memory data structures
VBA Collections vs VBA Arrays
Working with Named Ranges
Manipulating Range Objects
Validating and Cleaning Data (extremely important in Excel)
Screen updating
Excel Calculation Model
Linked workbooks
Connecting to external data (CSV, other worksheets, databases)
Sheet code vs Module code
Excel Userforms
Creating and Installing Excel Addins
Excel Formulas and Functions (there are dozens of extremely important ones)
 
Upvote 0
Intro to Power Query. Not learning it, but knowing what it can do for you. Too many Excel users today do not have a clue as to how powerful this Excel feature is or that it even exists.
 
Upvote 0
The best place to start is clicking on the link in my signature. Then pick up a copy of "M Is for (Data) Monkey" by Ken Puls and Miguesl Escobar. I think it is available in the Mr Excel Store. It is amazing how much time you can save with this Excel feature.
 
Upvote 0
For VBA programming... one should learn how to use the Like operator. For the final lesson on it, see if they can understand how this works...
VBA Code:
If Not SomeText Like "*[!0-9]*" Then
  MsgBox "SomeText contains only digits in it."
End If
 
Last edited:
Upvote 0
If you are teaching Excel error handling, it is important in my opinion to also teach why it is a flawed design.

On Error Goto -1? Really? :eek:
 
Upvote 0
If you are teaching Excel error handling, it is important in my opinion to also teach why it is a flawed design.

On Error Goto -1? Really? :eek:
Could you expand upon that?
In what situation do you think it is flawed (I suppose anything could be flawed if not done properly)?
Do you think it is better to not address errors at all?
 
Upvote 0
Could you expand upon that?
In what situation do you think it is flawed (I suppose anything could be flawed if not done properly)?
Do you think it is better to not address errors at all?
It's based on obsolete VB6 technology and goto statements. It is a bit awkward to control the program flow. Modern VB.NET employs structured exception handling which is far more elegant and straightforward, as do many other programming languages like C++.

That said, as a developer you still need to carve out best practices using the tools you have and address errors in the most robust way possible.

My first contract as a software developer in the 90's was to develop a VB6 application. I'm not averse to the technology and can mostly forgive it. That said, the error handling implementation in particular has not aged well.
 
Last edited:
Upvote 0
I've never seen anyone teach people to use On Error Goto -1. Most people don't even know it exists in VBA. (and I'd just clarify it's VBA error handling, not Excel ;)) IMO, if you're using that, you've dug yourself into a hole with some bad code and gone looking round the internet for a solution that didn't involve rewriting your code properly. :)
 
Upvote 0

Forum statistics

Threads
1,224,020
Messages
6,175,970
Members
452,691
Latest member
Tony_Almeida

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top