Dear Analyst # 110: A tutorial on how to fill values down with Excel VBA and Google Apps Script (Vancouver Power BI/Modern Excel re-broadcast)
Listen now
Description
Have you ever faced a spreadsheet where one column contains values for each "section" of the spreadsheet but you want to fill those values down through the rest of the column? This is a common problem when you get a data dump from a database or perhaps a copy/paste from a PivotTable. You have values interspersed in the column and want to fill the empty cells below those values with the value above it, but not all the way down. See this screenshot below to see what I mean: This episode is a re-broadcast of a presentation I gave at the Vancouver Power BI & Modern Excel User Group in April 2021 hosted by Ken Puls. The full video of the presentation is below where I walk through two scripts: a VBA script for Excel an a Google Apps Script for Google Sheets. You can see the original episode/post I did about filling values down programmatically in episode #42. Filling values down is apparently a really common operation and problem faced by analysts because this post about filling values down to the last row of data has become the most popular post on my blog. https://www.youtube.com/watch?v=sQuSRx9RZnw
More Episodes
When you think of your data warehouse, the "semantic layer" may not be the first thing that pops in your mind. Prior to reading Frances O'Rafferty's blog post on this topic, I didn't even know this was a concept that mattered in the data stack. To be honest, the concept is still a bit confusing...
Published 09/10/24
Published 09/10/24
If you could only learn one programming language for the rest of your career, what would be it be? You could Google the most popular programming languages and just pick the one of the top 3 and off you go (FYI they are Python, C++, and C). Or, you could pick measly #10 and build a thriving career...
Published 08/05/24