Back in Episode #1728, Felix asked about counting Cells that contain a certain Substring. It turns out that he wanted to count only the Visible Cells. This is possible with VBA, but Bill cannot find a regular Excel Formula that will do it. AGGREGATE would offer some hope, but that Function won’t accept Arrays for the first 14 Functions, of which, COUNT is one. Plus, AGGREGATE will not detect Hidden Columns. So, today, in Episode #1731, a tiny UDF [User Defined Function] that looks for a Substring, then checks to see if the Row and Column are Visible.


VBA and Macros Excel 2013 by Bill Jelen and Tracy SyrstadUse Excel® 2013 VBA and Macros to automate virtually any routine task, and save yourself hours, days, maybe even weeks. Then, learn how to make Excel do things you thought were simply impossible! You’ll discover macro techniques you won’t find anywhere else and learn how to create automated reports that are amazingly powerful and useful.

For more information on Excel 2010 VBA and Macros, check out…

Excel 2010 VBA and Macros, by Tracy Syrstad and Bill Jelen

VBA and Macros: Microsoft Excel 2010 – The fastest, best way to go beyond the Macro Recorder and move up the Excel VBA learning curve…Includes crucial information on making Excel 2010 VBA code work with older versions. Using Microsoft Excel 2010 VBA scripting features, Excel users can save dozens – or even hundreds – of hours per year. But most Excel users have never written a VBA script: many haven’t even used Excel’s built-in Macro Recorder.

“The Learn Excel from MrExcel Podcast Series”

Visit us: for all of your Microsoft Excel Needs!