Giter VIP home page Giter VIP logo

stock-market-vba's Introduction

VBA Challenge: Stock Market Analysis

Overview

A VBScript was created to loop through all the stocks in the provided Multiple-year file. For each stock in a given year, its' ticker symbol, yearly change, percent change, and total stock volume were obtained and stored adjacent to the raw data. Yearly change was determined using the opening and closing prices for the given year, and the percent change was calculated based on the yearly change. Conditional formatting highlighted cells with positive yearly change green and negative yearly change red, leaving cells with no net change uncolored.

Once yearly change, percent change, and total stock volume were obtained for each stock ticker in the given year, the ticker pertaining to greatest percent increase, greatest percent decrease, and greatest total volume was acquired.

The VBScript encompasses both sections entirely before moving on to the next worksheet (the next calendar year) in the workbook.

Results

Attached are snipets of the first page of the multiple-year file after the VBScript has been run. From Columns A to G are the raw data, Columns I to L the calculated yearly change, percent change, and total volume per stock ticker, and Columns O to Q are the filtered tickers and their corresponding values.

2018

2018

2019

2019

2020

2020

stock-market-vba's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.