https://github.com/ejw-data/excel-vba-data-formatting
VBA Script that reorganizes and summarizes stock market data
https://github.com/ejw-data/excel-vba-data-formatting
excel vba
Last synced: 6 months ago
JSON representation
VBA Script that reorganizes and summarizes stock market data
- Host: GitHub
- URL: https://github.com/ejw-data/excel-vba-data-formatting
- Owner: ejw-data
- Created: 2019-09-04T02:30:35.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-06T02:21:31.000Z (about 3 years ago)
- Last Synced: 2025-01-22T06:47:11.371Z (over 1 year ago)
- Topics: excel, vba
- Language: Visual Basic .NET
- Homepage:
- Size: 83.4 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# excel-VBA-data-formatting
Author: Erin James Wills, ejw.data@gmail.com

Photo by [Annie Spratt](https://unsplash.com/@anniespratt?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/s/photos/stock-market?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)
## Overview
Using daily stock data from 2014 - 2016, annual changes in stock price were calculated as well as total volume. Data was programmatically extracted and added to a summary table identifying high and low performing stocks. VBA was used to quickly search the records and generate the tables such that the code could be reused to generate similar reports.
## Technologies
* Excel: VBA Script
## Data Source
The origins are unknown. The data may have orginally come from the [Yahoo Finance API](https://www.yahoofinanceapi.com/). The dataset is the daily prices (high, low, etc) and trade volume. The dataset is about 75MB and consists of about 800,000 records per sheet with sheets for 2014, 2015, and 2016 data. The daily stock data for about 9,000 companies is represented in the data. A validated dataset should be obtained for a more serious analysis.
**`The original data sources can be requested from the author.`**
## Data Manipulation
Below are three screens shots of what the final product looked like. Columns A through G is the original data. The code generated summarized information about each stock and color coded the changes in the stock value and summarized the volume of trades for the year. To the right of the longer columns is a short summary table identifying extreme cases.



## Search, Format, Summarize Code
The code used is found in the repo as both .txt and .vb files. The code is called `stock_data_code.xxx`. It is well commented and an overview is provided at the top of the code.
