Excel VBA: Use SQL Group By Statement to Aggregate Data

preview_player
Показать описание
Learn to use the SQL Group By statement to aggregate data in Excel VBA.

#vba #sql #learnvba #excelvba #excel #exceltutorial #exceltips

This is not just a specific video about Group By.

We will cover the broader topic of
1. How to use Excel like a database
2. How to use ADO or ActiveX Data Objects to connect to the Excel application
3. How to use SQL in Excel
4. How to aggregate multiple columns of data quickly and efficiently using Group By
5. How to sum data after aggregating it

So, in addition to the Group By clause, hopefully this video will open more possibilities for you to add to your coding arsenal.

All the code will be built from scratch. All the code in this video is available at:

0:00 Intro
0:26 Topics Covered
1:05 Video Layout
2:17 Demo
3:27 Section 1: Code to Perform Group By
16:44 Section 2: De-Construct the Group By statement
26:46 Section 3: Error Handling
31:25 Section 4: Dump Results into an Array
Рекомендации по теме
Комментарии
Автор

Excellent tutorial, with this I can jump the manual "create dynamic table and loop thru it" in my vba code

Ymunoz
Автор

Thank you for sharing... I love how you present the topics! THIS IS EXCELLENT
I would appreciate if you could elaborate on the Array functionalities please (or another video for array manipulation)
no link to your website for the code :)

edge
Автор

FANTASTIC! I haven't seen the entire video, but the clarity of the outline promises a lot, will watch later to learn it. Just one question though: I see that you have grouped by only one column, it will be obviously possible to do the same with multiple columns of grouping, right?

kunjeshparikh