Skip to content

Created a script that will loop through stock data and output yearly changes.

Notifications You must be signed in to change notification settings

celeste1030/VBA-Challenge-2020

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VBA-Challenge-2020

VBA Challenge

About

This is a coding practice assignment completed during my data science training.

Instructions

Create a script that will loop through all the stocks for one year and output the following information.

  • The ticker symbol.

  • Yearly change from opening price at the beginning of a given year to the closing price at the end of that year.

  • The percent change from opening price at the beginning of a given year to the closing price at the end of that year.

  • The total stock volume of the stock.

  • You should also have conditional formatting that will highlight positive change in green and negative change in red.

Bonus Challenges

  1. Your solution will also be able to return the stock with the "Greatest % increase", "Greatest % decrease" and "Greatest total volume".

  2. Make the appropriate adjustments to your VBA script that will allow it to run on every worksheet, i.e., every year, just by running the VBA script once.

Results

Link to VBA script

2014:

2014

2015:

2015

2016:

2016

About

Created a script that will loop through stock data and output yearly changes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published