How to Create Stock Charts in Excel: Quick Guide

Last Modified: September 6, 2024 - 6 min read

Julian Alvarado

Are you struggling to visualize stock data effectively in Excel? This comprehensive guide will walk you through the process of creating professional-looking stock charts, from basic setup to advanced techniques. By the end, you’ll have the skills to create powerful visual representations of financial data for better analysis and decision-making.

Step-by-Step Guide: Creating Your First Stock Chart  

Before creating a stock chart, you need to organize your data correctly in Excel. This step is crucial for ensuring your chart accurately represents the stock’s performance.

Organizing stock data in Excel

To create an effective stock chart, arrange your data in columns with the following structure:

  1. Date
  2. Open price
  3. High price
  4. Low price
  5. Close price
  6. Volume (optional)

Here’s an example of how your data should be organized:

DateOpenHighLowCloseVolume
2024-01-01100.5102.399.8101.21,000,000
2024-01-02101.4103.1100.9102.71,200,000
2024-01-03102.8104.5102.1103.9950,000

Ensure that your dates are in chronological order, with the oldest date at the top of the column.

Required data points for different chart types

Different stock chart types require specific data points:

  • OHLC charts: Date, Open, High, Low, Close
  • HLC charts: Date, High, Low, Close
  • Volume-High-Low-Close charts: Date, High, Low, Close, Volume
  • Candlestick charts: Date, Open, High, Low, Close

Step-by-Step Guide: Creating a Basic Stock Chart

Now that your data is organized, let’s create a basic stock chart in Excel.

Selecting your data

  1. Highlight the columns containing your stock data (Date, Open, High, Low, Close, and Volume if applicable).
Excel worksheet setup with columns for Date, Open, High, Low, Close, and Volume for stock data.
  1. Ensure you’ve selected only the cells containing data, excluding any header rows.

Inserting a stock chart

  1. Navigate to the “Insert” tab on the Excel ribbon
Entering stock data in Excel with correct chronological order for date and prices
  1. In the “Charts” section, click on the “Stock” chart icon
Selecting stock data in Excel for creating a stock chart.

.

  1. Choose the appropriate stock chart type from the dropdown menu.
 Inserting a stock chart in Excel from the "Insert" tab in the ribbon.

Choosing the right chart type

Select the chart type that best suits your data and analysis needs:

  • Open-High-Low-Close: For a comprehensive view of price movements
  • High-Low-Close: When opening prices are less important or unavailable
  • Volume-High-Low-Close: To include trading volume data in your analysis

Excel will generate a basic stock chart based on your selected data and chart type.

Customizing Your Excel Stock Chart

A well-designed stock chart enhances data visualization and improves understanding. Let’s explore how to customize your chart for maximum impact.

Formatting chart elements

  1. Right-click on the chart and select “Format Chart Area.”
Choosing the appropriate stock chart type in Excel, such as OHLC or Candlestick.
  1. Use the formatting options to:
Basic stock chart created in Excel showing price movements over time.
  • Change the chart background color
  • Adjust the chart border style and color
  • Modify the chart’s font style, size, and color

Adding and modifying chart titles and axes

  1. Click on the “Chart Title” and “Axis Titles” options to add or edit titles.
  2. Customize the appearance of axes by right-clicking on them and selecting “Format Axis.”
Customizing chart elements in Excel, including background color and font styles.

Incorporating volume data

To add volume data to your chart:

  1. Right-click on the chart and select “Select Data.”
Adding and editing chart titles and axis titles in Excel stock charts.
  1. Click “Add” in the “Series” section.
Incorporating volume data into an Excel stock chart by adding a new data series.
  1. Enter a name for the series (e.g., “Volume“).
Adjusting time periods on the horizontal axis of an Excel stock chart
  1. Select the range of cells containing your volume data for the “Series values.”
Creating a candlestick chart in Excel with open, high, low, and close data
  1. Click “OK” to add the volume data as a separate series on your chart.
excel-create-candlestick

Using different time periods

To adjust the time period displayed on your chart:

  1. Right-click on the horizontal axis and select “Format Axis.”
Adding a trendline to an Excel stock chart for visualizing trends
  1. In the “Axis Options” section, modify the “Minimum” and “Maximum” values to set your desired date range.
Plotting multiple stocks on one Excel chart for comparison.
  1. Adjust the “Major unit” and “Minor unit” settings to control the spacing of date labels on the axis.
Setting up automatic updates for Excel stock charts using macros.

Advanced Stock Chart Techniques

Take your stock charts to the next level with these advanced techniques.

Creating candlestick charts

Candlestick charts offer a more detailed view of price movements:

  1. Select your data (Date, Open, High, Low, Close).
Example of an OHLC stock chart in Excel showing opening, high, low, and closing prices.
  1. Go to Insert > Stock > Stock Volume-Open-High-Low-Close.
High-Low-Close chart in Excel, a simpler stock chart format
  1. Right-click on the chart and choose “Change Chart Type.”
Volume-High-Low-Close chart in Excel combining price and trading volume data
  1. Select “Waterfall > Stock” and then “Open-High-Low-Close”  which is the candlestick pattern from the available options.
excel-volume-hlc-chart
  1. Click “OK” to apply the changes.

Adding moving averages and trend lines

To add a moving average:

  1. Right-click on the chart and select “Select Data.”
Adding and editing chart titles and axis titles in Excel stock charts.
  1. Click “Add” to create a new series.
Incorporating volume data into an Excel stock chart by adding a new data series.
  1. Name the series (e.g., “20-day MA”).
  2. Use an Excel formula to calculate the moving average for your closing prices.
  3. Select the range containing your moving average calculations for the “Series values.”
Creating a candlestick chart in Excel with open, high, low, and close data

To add a trend line:

  1. Navigate to ‘Chart Design’ in the Excel ribbon
  2. Click ‘Add chart element’ ‘ and select “Trendline” from the context menu.
Example of a dual-axis stock chart in Excel with combined line and bar charts
  1. Choose the type of trendline you want to add (e.g., Linear, Exponential).
Final customized stock chart in Excel with all key elements formatted
  1. Customize the trendline’s appearance and options as needed.

Plotting multiple stocks on one chart

To compare multiple stocks:

  1. Organize data for each stock in separate columns.
  2. Select all the data you want to include.
  3. Insert a stock chart as usual.
  4. Excel will automatically create separate series for each stock.
  5. Customize colors and labels to distinguish between stocks.

Automating chart updates with formulas and macros

For automatic updates:

Coefficient Excel Google Sheets Connectors
Try the Free Spreadsheet Extension Over 425,000 Pros Are Raving About

Stop exporting data manually. Sync data from your business systems into Google Sheets or Excel with Coefficient and set it on a refresh schedule.

Get Started
  1. Use dynamic named ranges to automatically include new data.

Create a macro to refresh data sources and update charts:

 a. Open the Visual Basic Editor (Alt + F11).

 b. Insert a new module and add this code:
vba
Copy
Sub UpdateStockCharts()

    ActiveWorkbook.RefreshAll

    ActiveSheet.ChartObjects(“YourChartName”).Activate

    ActiveChart.Refresh

End Sub

  1. Assign the macro to a button or set it to run automatically on workbook open.

Understanding Stock Charts in Excel

Stock charts are specialized graphs designed to display financial data, particularly the price movements of stocks over time. They provide a visual representation of a stock’s performance, making it easier to identify trends, patterns, and potential investment opportunities.

What is a stock chart?

A stock chart is a graphical representation of a stock’s price movements over a specific period. It typically includes information such as the opening price, closing price, highest price, and lowest price for each time interval (e.g., day, week, or month).

Types of stock charts available in Excel

Excel offers several types of stock charts to suit different analysis needs:

  1. Open-High-Low-Close (OHLC) charts: Display four data points for each time interval – the opening price, highest price, lowest price, and closing price.
  2. High-Low-Close (HLC) charts: Similar to OHLC charts but omit the opening price.
  3. Volume-High-Low-Close charts: Combine price information with trading volume data.
  4. Candlestick charts: Provide a more detailed view of price movements, using “candles” to represent the open, high, low, and close prices.

When to use stock charts

Stock charts are invaluable tools for:

  • Analyzing historical price trends
  • Identifying potential buy or sell signals
  • Comparing the performance of multiple stocks
  • Visualizing the impact of market events on stock prices
  • Communicating financial data to stakeholders or clients

Beyond Stock Charts: Real-Time Financial Data in Excel

Excel offers tools for creating stock charts, but financial analysis often requires up-to-date data from various sources. Coefficient connects your spreadsheets directly to financial data systems. This allows you to import live stock data, create real-time financial reports, and automate chart updates in Excel. To see how this can streamline your stock analysis, try Coefficient.

Sync Live Data into Your Spreadsheet

Connect Google Sheets or Excel to your business systems, import your data, and set it on a refresh schedule.

Try the Spreadsheet Automation Tool Over 500,000 Professionals are Raving About

Tired of spending endless hours manually pushing and pulling data into Google Sheets? Say goodbye to repetitive tasks and hello to efficiency with Coefficient, the leading spreadsheet automation tool trusted by over 350,000 professionals worldwide.

Sync data from your CRM, database, ads platforms, and more into Google Sheets in just a few clicks. Set it on a refresh schedule. And, use AI to write formulas and SQL, or build charts and pivots.

Julian Alvarado Content Marketing
Julian is a dynamic B2B marketer with 8+ years of experience creating full-funnel marketing journeys, leveraging an analytical background in biological sciences to examine customer needs.
500,000+ happy users
Wait, there's more!
Connect any system to Google Sheets in just seconds.
Get Started Free

Trusted By Over 50,000 Companies