Skip to main content

Excel: How to add max or min line to a chart

If there are many data shown in an Excel chart, to add a max or min line in the chart will be nice to quickly find the maximum or minimum value of the chart as below screenshot shown.
doc fill text based on color 1

Add max and min line to chart by using helper columns

Add max and min line to chart by Kutools for Excel's Chart Tool


Add max and min line to chart by using helper columns

To add max and line to a chart, firstly, you need to find the maximum value and the minimum value of the original data.

1. Select a blank cell next to the data, and type the formula =MAX($B$2:$B$21), $B$2:$B$21 is the data range, you can change it to meet your need, press Enter key to get the maximum.

doc fill text based on color 1:  Since we need to find the maximum value in the same range, absolute reference will keep the range not changing when drag the autofill handle down or right.
doc fill text based on color 1

2. Then select this formula cell, drag the autofill handle down to the end of the data.
doc fill text based on color 1

3. Then right-click on the chart to show the context menu, and click Select Data.
doc fill text based on color 1

4. In the Select Data Source dialog, click Add button.
doc fill text based on color 1

5. In the Edit Series dialog, select the cell to shown the series name, then select the cells that contain MAX function you have done in step 1 and 2. Click OK > OK.
doc fill text based on color 1

Now the max values have been added into the chart.
doc fill text based on color 1

6. Right-click at the added maximum values in the chart, and select Change Series Chart Type from the context menu.
doc fill text based on color 1

7. In the Change Chart Type window, go to Choose the chart type and axis for your data series section, and click the drop-down list to change the chart type to Line for the Max series. Click OK.
doc fill text based on color 1

Now the max line has been added to the chart.
doc fill text based on color 1

Use =MIN($B$2:$B$21) formula and repeat the above steps to add the min line to the chart.
doc fill text based on color 1


Add max and min line to chart by Kutools for Excel's Chart Tool

If you have Kutools for Excel installed, there is a feature Add Line to Chart in the Chart Tools, which can quickly add a line to the selected chart.

Kutools for Excel, with more than 300 handy functions, makes your jobs more easier. 

1. Select the chart you want to add max or min line, then click Kutools > Chart > Chart Tools > Add Line to Chart.
doc fill text based on color 1

2. In the Add line to chart dialog, check Other values option, and type the maximum or minimum value in the textbox. Click Ok.
doc fill text based on color 1

Now the maximum line or minimum line has been inserted to the chart. 
doc fill text based on color 1

Repeat the above steps to add another line.

For more details about this feature, please visit here.

For all features about Kutools for Excel, please view here.

For 30-day free trial of Kutools for Excel, please download now.


Other Operations (Articles)

How to alternate row color based on group in Excel?
In Excel, to color every other row may be easier for most of us, but, have you ever tried to color the rows alternately based on a column value changes – Column A as following screenshot shown, in this article, I will talk about how to alternate row color based on group in Excel.

How to apply color gradient across multiple cells?
In Excel, we can easily fill background color to a cell or multiple cells, but, sometimes, we need the color be filled gradient as following screenshot shown, how could get the color gradient in a cell or across multiple cells in Excel?

How to apply color banded rows or columns in Excel?
This article will show you three methods of applying color banded rows or columns in Excel. Please do as follows.

How to apply shading to odd or even (alternative) rows/columns in Excel?
While designing a worksheet, many people tend to apply shading to odd or even (alternative) rows or columns in order to make the worksheet more visual. This article will show you two methods to apply shading to odd or even rows/columns in Excel.


  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns and Keeping Data; Split Cells Content; Combine Duplicate Rows and Sum/Average... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Favorite and Quickly Insert Formulas, Ranges, Charts and Pictures; Encrypt Cells with password; Create Mailing List and send emails...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • Pivot Table Grouping by week number, day of week and more... Show Unlocked, Locked Cells by different colors; Highlight Cells That Have Formula/Name...
kte tab 201905
  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations