You can easily plot multiple lines on the same graph in Excel by simply highlighting several rows (or columns) and creating a line plot.
The following examples show how to plot multiple lines on one graph in Excel, using different formats.
Example 1: Plot Multiple Lines with Data Arranged by Columns
Suppose we have the following dataset that displays the total sales for three different products during different years:

We can use the following steps to plot each of the product sales as a line on the same graph:
- Highlight the cells in the range B1:D8.
- Click the Insert Tab along the top ribbon.
- In the Charts group, click the first chart option in the section titled Insert Line or Area Chart.
The following chart will appear:

Example 2: Plot Multiple Lines with Data Arranged by Rows
Suppose we have the following dataset that displays the total sales for three different products during different years, arranged by rows:

We can use the following steps to plot each of the product sales as a line on the same graph:
- Highlight the cells in the range A1:H4.
- Click the Insert Tab along the top ribbon.
- In the Charts group, click the first chart option in the section titled Insert Line or Area Chart.
The following chart will appear:

Example 3: Plot Multiple Lines with Flipped Columns & Rows
Suppose we have the following dataset that displays the total sales for four different products during two different years:

We can use the following steps to plot each of the product sales as a line on the same graph:
- Highlight the cells in the range A1:C5.
- Click the Insert Tab along the top ribbon.
- In the Charts group, click the first chart option in the section titled Insert Line or Area Chart.
The following chart will appear:

Notice that the products are displayed along the x-axis instead of the years.
To switch the rows and columns, we can click anywhere on the chart and then click the Switch Row/Column button under the Chart Design tab:

Once we click this button, the rows and columns will be switched and the years will be displayed along the x-axis:

Additional Resources
How to Create a Stem-and-Leaf Plot in Excel
How to Create a Dot Plot in Excel
How to Create Side-by-Side Boxplots in Excel
How to Create an Ogive Graph in Excel
In Example 1, the X axis should be labelled as year, not the row number. Would be helpful if it were shown how to do this.
To plot multiple lines in Excel and label the X-axis as “Year” (or another custom label like dates, categories, etc.), here’s how you can adjust the axis labels:
### Step-by-Step Guide:
1. **Enter Data Correctly:**
– Ensure you have two columns for your data:
– Column A: Years (or any other labels you want for the X-axis).
– Column B (and onwards): Values corresponding to each year for different series.
Example:
| Year | Series 1 | Series 2 |
|——|———-|———-|
| 2020 | 50 | 60 |
| 2021 | 55 | 65 |
| 2022 | 70 | 75 |
2. **Select Your Data:**
– Highlight all the columns (including the “Year” column).
– For example, select from **A1:C4** if you have two series and years from 2020 to 2022.
3. **Insert a Line Chart:**
– Go to the **Insert** tab in Excel.
– In the **Charts** group, click on the **Line Chart** option.
– Choose the type of line chart you want (e.g., standard Line Chart).
4. **Assign the Year Labels to the X-axis:**
– Right-click on the chart and select **Select Data**.
– In the **Select Data Source** dialog box, you’ll see two options: Series and Horizontal (Category) Axis Labels.
– Under **Horizontal (Category) Axis Labels**, click **Edit**.
– Select the range for the years (e.g., cells **A2:A4** if your years are in that range).
– Click **OK**.
5. **Add Axis Labels:**
– Click on your chart to select it.
– Go to the **Chart Tools** **Design** tab, and then click **Add Chart Element** > **Axis Titles** > **Primary Horizontal**.
– A text box will appear below your chart. Enter “Year” (or any other label you want).
6. **Format the X-axis Labels:**
– If needed, you can further format the X-axis by right-clicking on the X-axis and selecting **Format Axis**.
– Here, you can change the number format, adjust intervals, or rotate labels.
Now the X-axis will display the years (or your custom labels) instead of row numbers.
Let me know if you need additional details!
Is it possible to plot multiple x-axis in Excel? for example, I want to make a graph with a comparison between three different data sets with different magnitudes of values between them. Do I need three separate charts, or can I make one chart where the x-axis appears three times, one for each set of data?
Great question! In **Excel**, plotting **multiple x-axes** on a **single chart** isn’t a built-in feature in the same way as plotting multiple y-axes — but there **are workarounds** depending on what exactly you’re trying to compare.
Let me break it down:
—
### 🔹 Scenario 1: Multiple **Y-values** with a **shared X-axis**
✅ Easy! Just plot your different data sets on the same chart using a **common x-axis**. You can format the lines differently and even add a **secondary Y-axis** if the magnitudes differ a lot.
—
### 🔹 Scenario 2: Multiple **X and Y pairs**, each with **different X-axis scales**
❌ Excel **doesn’t support multiple X-axes** natively in a line chart.
However, here are some **workarounds**:
#### 🟢 Option 1: Use Multiple Line Charts (Overlayed)
You can simulate multiple x-axes using this method:
1. Create a **scatter plot** for each (X, Y) pair.
2. Format each **scatter plot** to be **transparent** except for the lines or markers.
3. Overlay them all on the same chart using **”Add Chart Element” > Secondary Horizontal Axis** for one of them.
4. Use custom axis formatting to label them appropriately.
> This is clunky, but gives you the illusion of multiple x-axes.
#### 🟡 Option 2: Normalize or Rescale the X Data
If your x-values differ in **magnitude but not meaning** (e.g., time series on different scales), consider **normalizing** or **rescaling** them to a common reference frame and plotting together.
#### 🔵 Option 3: Use Small Multiples (Separate Charts Side-by-Side)
Sometimes the **clearest option** is to create **three smaller charts**, each with its own x-axis and scale, and align them neatly for visual comparison.
—
### ✅ Tip: Add Axis Labels or Arrows
To avoid confusion when overlaying axes, use **text boxes**, **arrows**, or **legend entries** to make clear which axis goes with which line.
—