Join 400,000+ professionals in our courses here https://link.xelplus.com/yt-d-all-courses

Dive into the world of Excel VBA with our step-by-step tutorial on creating a macro to count formulas in a worksheet. Ideal for beginners, this video teaches you how to efficiently loop through cells in a used range and count the number of cells containing formulas.

Get the complete course here https://www.xelplus.com/course/excel-vba-excel-macros/

What You'll Learn:
▪️ Creating a Macro to Count Formulas: Understand how to set up a macro that loops through a used range to count formulas.
▪️ Efficient Looping Techniques: Learn how to loop through only the used range, avoiding unnecessary processing of the entire worksheet.
▪️ Dynamic Range Resizing: Discover how to use the resize property for varying the size of a range before copying it.

In this video we do a mini project where we count the number of cells that contain formulas on our worksheet. We do this with Excel VBA with the help of the For Each Collection loop.

This allows us to loop through each cell inside the used range of the worksheet and check with the help of the IF statement whether or not we come across a formula cell. Here we use the HasFormula property of the range object. We then use a variable to keep this number in memory.

Links to related videos:
Copy/Paste in Excel VBA: https://youtu.be/p4ViTxIl0E0
Referencing Ranges with VBA: https://youtu.be/acGJb9Oojho
Learn about Visual Basic Editor: https://youtu.be/NpvvwrdDcQk
Recording macros: https://youtu.be/8IreWUk1Al4
Properties & methods in VBA: https://youtu.be/uYHrzo2gzbo

My Online Excel Courses ► https://www.xelplus.com/courses/

️ Join this channel to get access to perks: https://www.youtube.com/channel/UCJtUOos_MwJa_Ewii-R3cJA/join

Get the Official XelPlus MERCH: https://xelplus.creator-spring.com/

Not sure which of my Excel courses fits best for you? Take the quiz: https://www.xelplus.com/course-quiz/

RESOURCES I recommend: https://www.xelplus.com/resources/

Let’s connect on social:
Instagram: https://www.instagram.com/lgharani
LinkedIn: https://www.linkedin.com/company/xelplus

Note: This description contains affiliate links, which means at no additional cost to you, we will receive a small commission if you make a purchase using the links. This helps support the channel and allows us to continue to make videos like this. Thank you for your support!

#ExcelVBA