{"id":21293336,"url":"https://github.com/ejw-data/excel-vba-data-formatting","last_synced_at":"2026-01-03T03:34:31.177Z","repository":{"id":106650001,"uuid":"206213979","full_name":"ejw-data/excel-vba-data-formatting","owner":"ejw-data","description":"VBA Script that reorganizes and summarizes stock market data","archived":false,"fork":false,"pushed_at":"2023-05-06T02:21:31.000Z","size":87403,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-22T06:47:11.371Z","etag":null,"topics":["excel","vba"],"latest_commit_sha":null,"homepage":"","language":"Visual Basic .NET","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ejw-data.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-04T02:30:35.000Z","updated_at":"2022-06-28T04:59:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"eb8cd401-499b-40f7-8fd0-c713792f6aa0","html_url":"https://github.com/ejw-data/excel-vba-data-formatting","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejw-data%2Fexcel-vba-data-formatting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejw-data%2Fexcel-vba-data-formatting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejw-data%2Fexcel-vba-data-formatting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejw-data%2Fexcel-vba-data-formatting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ejw-data","download_url":"https://codeload.github.com/ejw-data/excel-vba-data-formatting/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243762236,"owners_count":20343976,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["excel","vba"],"created_at":"2024-11-21T13:54:22.825Z","updated_at":"2026-01-03T03:34:31.132Z","avatar_url":"https://github.com/ejw-data.png","language":"Visual Basic .NET","funding_links":[],"categories":[],"sub_categories":[],"readme":"# excel-VBA-data-formatting\n\nAuthor:  Erin James Wills, ejw.data@gmail.com\n\n![Stock Price Changes](./images/stock-vba.png)  \n\u003ccite\u003ePhoto by [Annie Spratt](https://unsplash.com/@anniespratt?utm_source=unsplash\u0026utm_medium=referral\u0026utm_content=creditCopyText) on [Unsplash](https://unsplash.com/s/photos/stock-market?utm_source=unsplash\u0026utm_medium=referral\u0026utm_content=creditCopyText)\u003c/cite\u003e  \n\n## Overview\n\u003chr\u003e\nUsing 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.  \n\n\u003cbr\u003e\n\n## Technologies  \n*  Excel:  VBA Script  \n\u003cbr\u003e\n\n## Data Source  \nThe 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.    \n**`The original data sources can be requested from the author.`**  \n\u003cbr\u003e  \n\n## Data Manipulation\nBelow 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.  \n\n\n![Data Formatting 2014](./images/2014_multi-year_screen_grab.png)    \n\n![Data Formatting 2015](./images/2015_multi-year_screen_grab.png)    \n\n![Data Formatting 2016](./images/2016_multi-year_screen_grab.png)  \n\n\n## Search, Format, Summarize Code  \nThe 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.  \n\n\n![Example Code](./images/code_structure.png)    \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fejw-data%2Fexcel-vba-data-formatting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fejw-data%2Fexcel-vba-data-formatting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fejw-data%2Fexcel-vba-data-formatting/lists"}