avatarCody Collins

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

2429

Abstract

at’s for you to decide. But I will walk through what I did to get the stocks in the S&P 500.</p><p id="9436">I just googled for a list of S&P 500 companies. <a href="https://www.slickcharts.com/sp500">Here is the website I used</a>. Then I just copied the data into a blank Excel sheet (I prefer Excel over Google Sheets but created this in Sheets to be able to give access to certain people.)</p><p id="e2df">Once the data is in Excel, highlight the column with the “Symbol” data.</p><p id="ea69" type="7">An excel hack: Ctrl+Shift+Down Arrow highlights all the data.</p><p id="2466">(On a side note, Excel hacks like this have saved me hours for my job.)</p><p id="bb57">Then right-click and remove the hyperlink. Now copy this column into your Google Sheet into Column A.</p><p id="933f">Another optional part, you can freeze this column as well, if you want. It's the same as freeze the rows, except at the end, select Up to Current Column instead of rows.</p><h2 id="e214">Add Formulas</h2><p id="4cb7">This is the fun part. All you need to do is add formulas into one row, drag down, and then you have an abundance of information.</p><p id="438d">Let’s assume your first ticker symbol is in cell A6.</p><p id="085e">Cell B6 Formula: =GOOGLEFINANCE(A6,”name”)</p><p id="7b5b">Cell C6 Formula: =GOOGLEFINANCE(A6,”price”)</p><p id="4251">Cell D6 Formula: =iferror((GOOGLEFINANCE(A6,”marketcap”) /1000000000),”N/A”)</p><p id="d447">Cell E6: =GOOGLEFINANCE(A6,”high52")</p><p id="1068">Cell F6: =GOOGLEFINANCE(A6,”low52")</p><p id="74f5">Cell G6: =(C6-E6)/E6</p><p id="c365">Cell H6: =(C6-F6) / F6</p><p id="9a3b">Any guesses on cell I6??</p><p id="980a">That was a trick question! This is the column that is different than all others and based on the changepct from the beginning.</p><p id="f679">Cell I6: =GoogleFinance(A6,I4)/100</p><p id="47af"><i>It is important to lock the I4, so when you drag it down, it stays in cell I4 and does not move.</i></p><p id="4438">Now just copy row 6 down to all the other rows.</p><p id="dd3f">You’re file should be looking really good by now.</p><p id="0aad">(I included screenshots of the formulas at the end of the article in case those are easier to understand.)</p><h2 id="0242">Conditional Formatting</h2><blockquote id="c99d"><p>Eighty percent of data science is cleaning data and the other twenty percent is complaining about cleaning data</p></blockquote><blockquote id=

Options

"f62c"><p>- Anthony Goldbloom</p></blockquote><p id="49d1">All this data is cool, but right now it's just a shit ton of numbers. It’s too much information to analyze. I applied conditional formatting to my data to better understand it.</p><p id="ee9f">There were two conditional formats — one for the changepct and one for %offhigh.</p><p id="48d6">To create conditional formats, highlight the entire column, then go to Format -> Conditional Formatting -> then go to the format rules section.</p><p id="b317">For %offhigh, which is the main point of this file, format cells if less than or equal to…whatever number you want. I choose -.14 for this example. I will likely change it to -.20. Then in formatting style, select the color and if you want the text or cell background to change.</p><p id="990c">You can also add a filter, to help you sort the data. Highlight the row with the headers, go to Data -> Create a filter. Then you can sort any row however you please.</p><h2 id="ab7a">Why this is helpful</h2><p id="ff49">The whole reason for this file is to help you monitor stocks you are interested in. Now you can see how much a stock is off its high and if it is a good time to buy.</p><p id="2f9b">It’s hard to keep track of so many stocks. And most of the time you only see the daily change. Now you can see what’s really going on, with one stock or the whole market. 13% of the S&P 500 is <a href="https://readmedium.com/the-market-crash-is-already-underway-cd5c0c933f04">more than 20% below its high</a>!</p><h2 id="3f47">Extra Tips</h2><p id="a824">I added a date at the top of my file — it’s not needed but I like it. It’s a check. Whenever I open the file I know what the current date is and that the other formulas are also updated.</p><p id="fbde">The formula to get the current date is: =(TODAY())</p><p id="e1ed">If you have any questions or issues with this guide, please reach out. I’m hoping this is helpful to someone and might consider doing more of these in the future.</p><figure id="bfa3"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*LGV60OTbXuzxVoofYnnGGw.png"><figcaption>Screenshots of formulas used | Image from Google Sheets</figcaption></figure><figure id="cdbc"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*hiTeTVekgjJpftdww7-hBg.png"><figcaption>Screenshots of formulas used | Image from Google Sheets</figcaption></figure></article></body>

How to Track Stocks at Great Buying Opportunites

An easy to follow guide to make a reliable tracker

My spreadsheet in Google Sheets

I had started looking at data for a different article I planned to write. Like always, I spent way too much time looking at the data and playing around with it.

But, I decide what I had created was helpful for my investing future, so I thought I’d share it.

What I created was a spreadsheet using Google finance that tracks how much a stock is off its 52 week high, in terms of percentage.

This information can help identify a great buying opportunity into a company you are interested in owning. Below are the steps to make your own!

Set Up the Structure

First, you need a new Google Sheets from within your Google Drive.

The first thing you’re going to want to do is add your headers. I have mine in row 4. There are several ways to build a tracker like this.

The way I did mine the only cell in the headers that needs to be exactly like mine is Today’s changepct. The formula will read off “changepct” so make sure yours is set up like that as well. To clarify, that means “Today’s” should be in the row above it.

My file looks at all the companies in the S&P 500. But I also wanted to look at how the S&P 500 has been moving as a whole (which is why I have “.inx” as a symbol).

I would recommend freezing the row that includes your header.

The point of freezing rows is so when you scroll down you can still see what you are looking at. To freeze rows in google finance, select the row you want to be the last frozen one. Go to View -> Freeze -> Freeze up to current rows.

Now we have our structure set up. But no tickers or formulas…yet.

Getting the Data

This part will depend on what you want to look at. For my reasons, I wanted to analyze the companies in the S&P 500. You may want that, or only a handful of companies, or maybe all small-cap companies. That’s for you to decide. But I will walk through what I did to get the stocks in the S&P 500.

I just googled for a list of S&P 500 companies. Here is the website I used. Then I just copied the data into a blank Excel sheet (I prefer Excel over Google Sheets but created this in Sheets to be able to give access to certain people.)

Once the data is in Excel, highlight the column with the “Symbol” data.

An excel hack: Ctrl+Shift+Down Arrow highlights all the data.

(On a side note, Excel hacks like this have saved me hours for my job.)

Then right-click and remove the hyperlink. Now copy this column into your Google Sheet into Column A.

Another optional part, you can freeze this column as well, if you want. It's the same as freeze the rows, except at the end, select Up to Current Column instead of rows.

Add Formulas

This is the fun part. All you need to do is add formulas into one row, drag down, and then you have an abundance of information.

Let’s assume your first ticker symbol is in cell A6.

Cell B6 Formula: =GOOGLEFINANCE(A6,”name”)

Cell C6 Formula: =GOOGLEFINANCE(A6,”price”)

Cell D6 Formula: =iferror((GOOGLEFINANCE(A6,”marketcap”) /1000000000),”N/A”)

Cell E6: =GOOGLEFINANCE(A6,”high52")

Cell F6: =GOOGLEFINANCE(A6,”low52")

Cell G6: =(C6-E6)/E6

Cell H6: =(C6-F6) / F6

Any guesses on cell I6??

That was a trick question! This is the column that is different than all others and based on the changepct from the beginning.

Cell I6: =GoogleFinance($A6,I$4)/100

It is important to lock the I4, so when you drag it down, it stays in cell I4 and does not move.

Now just copy row 6 down to all the other rows.

You’re file should be looking really good by now.

(I included screenshots of the formulas at the end of the article in case those are easier to understand.)

Conditional Formatting

Eighty percent of data science is cleaning data and the other twenty percent is complaining about cleaning data

- Anthony Goldbloom

All this data is cool, but right now it's just a shit ton of numbers. It’s too much information to analyze. I applied conditional formatting to my data to better understand it.

There were two conditional formats — one for the changepct and one for %offhigh.

To create conditional formats, highlight the entire column, then go to Format -> Conditional Formatting -> then go to the format rules section.

For %offhigh, which is the main point of this file, format cells if less than or equal to…whatever number you want. I choose -.14 for this example. I will likely change it to -.20. Then in formatting style, select the color and if you want the text or cell background to change.

You can also add a filter, to help you sort the data. Highlight the row with the headers, go to Data -> Create a filter. Then you can sort any row however you please.

Why this is helpful

The whole reason for this file is to help you monitor stocks you are interested in. Now you can see how much a stock is off its high and if it is a good time to buy.

It’s hard to keep track of so many stocks. And most of the time you only see the daily change. Now you can see what’s really going on, with one stock or the whole market. 13% of the S&P 500 is more than 20% below its high!

Extra Tips

I added a date at the top of my file — it’s not needed but I like it. It’s a check. Whenever I open the file I know what the current date is and that the other formulas are also updated.

The formula to get the current date is: =(TODAY())

If you have any questions or issues with this guide, please reach out. I’m hoping this is helpful to someone and might consider doing more of these in the future.

Screenshots of formulas used | Image from Google Sheets
Screenshots of formulas used | Image from Google Sheets
Excel
Business
Technology
Money
Economics
Recommended from ReadMedium