# Custom Format for Chart Minimum and Maximum.

Ever want to apply special formatting to just a certain point? This example shows you how to highlight the minimum and maximum values of a series by using a different marker for each, and data labels. We'll accomplish this with two extra series in the chart, one for minimum and one for maximum.

##### The Data

The example uses a simple data set, a series of values in A2:A22, formulas to indicate the maximum and minimum values in B2:C32, and headers in A1:C1. The formula in B2 is:

`=IF(\$A2=MAX(\$A\$2:\$A\$22),\$A2,NA())`

and the formula in C2 is:

`=IF(\$A2=MIN(\$A\$2:\$A\$22),\$A2,NA())`

Enter the formulas in B2:C2, select the range B2:C22, and press Ctrl-D to fill them down into the entire selected range.

 A B C 1 Values Max Min 2 5.3 #N/A #N/A 3 6.2 #N/A #N/A 4 6.1 #N/A #N/A 5 13.0 13.0 #N/A 6 8.7 #N/A #N/A 7 9.2 #N/A #N/A 8 7.9 #N/A #N/A 9 4.7 #N/A #N/A 10 7.9 #N/A #N/A 11 4.9 #N/A #N/A 12 6.7 #N/A #N/A 13 6.5 #N/A #N/A 14 7.6 #N/A #N/A 15 9.2 #N/A #N/A 16 5.4 #N/A #N/A 17 9.0 #N/A #N/A 18 7.7 #N/A #N/A 19 10.4 #N/A #N/A 20 4.4 #N/A #N/A 21 3.9 #N/A 3.9 22 7.1 #N/A #N/A

Columns B and C contain #N/A error values except for the maximum and minimum values from column A, thanks to the clever formulas used in the range. Excel will only chart the numerical values, not the error values. If we had used "" to fill the range instead of NA(), we would get apparently blank cells, which the chart would treat as zeros, and plot along the horizontal axis.

##### Constructing and Formatting the Chart

Select the three columns of data, including the top row with headers, and construct a line chart, with lines and no markers. The chart has three series, but Min and Max don't appear, because there is only one point in each, and a line is the shortest distance between TWO points.

Click on the legend, then click on the legend key for the Max series (the short green line segment). Press F1 to bring up the Format Series dialog. On the Patterns tab, select an appropriate marker (if you want to show a marker), and set the line to None. Repeat this with the Min series.

Double click the Max series, and on the Data Labels tab, select Show Values, and press Enter. Double click on the label, and on the Alignment tab, select Above for Label Position. On the Font tab, apply any desired formatting to the label's font. Repeat for the Min series, except select Below for Label Position on the Alignment tab.

These custom labels and markers adjust when the data changes, and if there are multiple points that have the same Max and Min values, each point will share the custom formatting.

An alternative symbol (a large unfilled circle) and label indicates extreme points by encircling them.

A variation on this technique (Use an Arrow to Indicate Special Points) uses custom markers to point an arrow at the extreme points.