Plotting time series data with multiple variables in Excel allows you to visualize how different metrics change over the same period, making it easy to spot correlations, trends, and anomalies. To achieve this, you need your data organized in a tabular format where the first column contains your time intervals (dates or times) and subsequent columns contain the numeric variables you wish to track.

What You'll Need

  • Microsoft Excel (any modern version).
  • A dataset where the leftmost column is a consistent time sequence (e.g., daily, monthly, or hourly).
  • Two or more columns of numeric data corresponding to that time sequence.

Step-by-Step

  1. Organize Your Data: Arrange your data in a clean table. Place your dates or timestamps in Column A. Place your first variable in Column B, your second in Column C, and so on. Ensure there are no empty rows or columns within the dataset.
  2. Format the Time Column: Select the date/time column. Go to the Home tab, and in the Number group, select the dropdown menu and choose Short Date or a custom date format. This ensures Excel recognizes the axis as a timeline rather than a series of text labels.
  3. Select the Data Range: Click and drag to highlight all the data you want to include in the chart, including the column headers (e.g., "Date", "Temperature", "Humidity").
  4. Insert the Chart: Navigate to the Insert tab. In the Charts group, click on the Insert Line or Area Chart icon. Select the first Line chart option (2-D Line). Excel will automatically place the time sequence on the X-axis and create a separate colored line for each variable.
  5. Verify the Axis: Check the X-axis. If Excel has plotted the dates as a second line instead of the axis, right-click the chart and choose Select Data. In the Legend Entries (Series) box on the left, remove the "Date" series. Then, in the Horizontal (Category) Axis Labels box on the right, click Edit and select the range of cells containing your dates.
  6. Add a Legend: To distinguish between your variables, go to the Chart Design tab, click Add Chart Element > Legend, and choose the position (e.g., Bottom or Right).
  7. Label the Axes: Click Add Chart Element > Axis Titles. Add a title to the vertical (Y) axis (e.g., "Value/Units") and the horizontal (X) axis (e.g., "Date").

Common Mistakes

  • Mixed Data Types: Including text notes or "N/A" strings within the numeric columns. This can cause Excel to treat the entire column as text, preventing the line from plotting.
  • Inconsistent Time Intervals: Having gaps in dates (e.g., jumping from Jan 1 to Jan 5) without filling the missing dates. This can lead to a misleading visual slope between points.
  • Overcrowding the Chart: Plotting too many variables (usually more than 5 or 6) on a single chart, which results in a "spaghetti chart" that is impossible to read.
  • Ignoring Scale Differences: Plotting a variable with values in the millions alongside a variable with values between 1 and 10. The smaller variable will appear as a flat line at the bottom.

Tips

  • Use a Secondary Axis: If your variables have vastly different scales (e.g., one is a percentage and one is a currency), right-click the line for the smaller variable, select Format Data Series, and choose Secondary Axis. This adds a second Y-axis to the right side of the chart.
  • Smooth the Lines: For a more aesthetic look, right-click a data line, select Format Data Series, go to the Fill & Line (paint bucket) tab, and check the Smoothed line box at the bottom.
  • Apply Filters: Use the Chart Filters button (the funnel icon next to the chart) to quickly toggle specific variables on or off without changing your source data.
  • Use Table Formatting: Convert your data range into an official Excel Table (Ctrl + T). When you add new dates and values to the bottom of the table, the chart will update automatically.

Troubleshooting

If the chart does not look as expected, try these steps in order:

  • Dates are showing as numbers: This happens when Excel loses the date formatting. Select the X-axis, go to the Home tab, and change the number format back to Date.
  • The line is broken or has gaps: This occurs when there are empty cells in your data. Right-click the chart, choose Select Data, click the Hidden and Empty Cells button, and choose Connect data points with line.
  • The X-axis is cluttered: If there are too many dates, the labels may overlap. Right-click the X-axis, select Format Axis, and under Labels, change the Interval between labels to a higher number or change the Label Position.
  • Variables are swapped: If Excel puts your variables on the X-axis and dates in the legend, go to the Chart Design tab and click Switch Row/Column.

Frequently Asked Questions

How do I handle missing data in a time series?

You can either leave the cell blank (and use the "Connect data points with line" setting) or use linear interpolation to estimate the missing value based on the surrounding data points.

Can I plot time series data that isn't daily?

Yes. Excel handles hourly, monthly, and yearly data. As long as the time column is formatted as a Date or Time, Excel will treat it as a continuous timeline.

What is the best chart type for multiple time series?

A Line Chart is standard for trends. However, if you are comparing the cumulative total of multiple variables over time, a Stacked Area Chart may be more effective.

How do I change the colors of the lines?

Right-click the specific line you want to change, select Format Data Series, and use the Line Color picker in the Fill & Line menu.

Can I add a trendline to one of the variables?

Yes. Right-click the specific line you want to analyze and select Add Trendline. You can then choose Linear, Exponential, or Moving Average to smooth out volatility.