Sick of having to update VLOOKUP formulas with a new Index after inserting another column?

The third parameter to the V/HLOOKUP functions in Microsoft Excel take the column index from the table array to return. For years I specified this parameter by counting the columns and hard-coding the number, which is a pain if a … Continue reading

How to do multiple criteria VLOOKUPs in Excel

One of the most powerful features within Excel are the LOOKUPS (VLOOKUP and HLOOKUP), they allow you pull values from other parts of the work book (or other work books) based on some lookup criteria. Here’s a quote from the Excel … Continue reading

Using Regular Expressions for sub strings in Excel

Ever wanted to extract a sub string from a cell in Microsoft Excel using a Regular expression? Here’s a Visual Basic snippet that will do just that. Function getRegexGroup(inRegex As String, inValue As String, inGroup As Integer) Set myRegExp = … Continue reading

How to query Microsoft Excel with SQL

There have been a few occasions in the office where someone has presented me with an Excel Workbook which really should be a database; multiple sheets, all referring to another and a question like “I need to know the Sum … Continue reading