Welcome to my Excel Data Analysis Automation repository! This repository showcases a comprehensive workflow for data analysis and automation in Excel. The workflow consists of three parts: data consolidation, VBA automation, and formula-based analysis.
In this part, I used Dbeaver to consolidate multiple data sources into a single dataset. The consolidated data is stored in a standardized format for further analysis. The SQL queries, data transformation steps, and the final consolidated dataset can be found in the Part1_Data Consolidation folder.
In this part, I created various formulas and calculations to perform data analysis on the loaded and formatted data. The analysis includes statistical measures, trend analysis, and other relevant calculations. The Excel file with all the formulas and analysis can be found in the Part2_Formula-based Analysis folder.
In this part, I developed a VBA script to automate the process of loading data into Excel and performing necessary formatting. The script retrieves data from the consolidated dataset and automatically formats it based on predefined rules. The VBA code, instructions, and sample data can be found in the Part3_VBA Automation folder.
To utilize the Excel Data Analysis Automation workflow, follow these steps:
- Start with the consolidated dataset obtained from Part 1 and save it as a CSV file, such as "data.csv". Save
- Open the Excel file from Part 2.
- Press
ALT + F11
to open the Visual Basic Editor. - In the Visual Basic Editor, locate the "Get Data" VBA script.
- Within the VBA script, update the file path to the location in line 39 where you saved the "data.csv" file. For example, "C:\Users\hvle\Downloads".
- Close the Visual Basic Editor.
- In the Excel file, click the designated button labeled "Get Data" to execute the VBA automation script.
- The script will automatically load the data from the "data.csv" file, format it, and calculate all necessary analyses.
- The results and analysis will be displayed in the Excel file.
By following these steps, you will be able to easily load and analyze the data from Part 1 using the VBA automation script in Part 2.
Thank you for exploring my Excel Data Analysis Automation repository. I hope you find the workflow useful and the provided examples insightful!