How to Use Win Loss Sparklines in Excel (2 Easy Ways)

Get FREE Advanced Excel Exercises with Solutions!

Sparklines show data patterns in a single cell in Excel. There are 3 types: Line, Column, and Win/Loss. These are a type of Column Chart showing only the positive and negative values with two colors. In this article, we are going to show you 2 methods to use the Win Loss Sparklines in Excel.


Download Practice Workbook


2 Handy Approaches to Use Win Loss Sparklines in Excel

We will show you how to insert the Win Loss Sparklines and describe the various options that are available in this feature. To demonstrate our methods, we have picked a dataset with 4 columns that show Profits for 3 quarters and the Win/Loss Sparklines in the fourth column.

How to Use Win Loss Sparklines in Excel


1. Utilizing Insert Command to Use Win Loss Sparklines in Excel

In this section, first, we will show you how to use the Win Loss Sparklines by applying the Insert Sparkline command. Then, we will describe the available options for this feature.

Steps:

  • At first, select the cell range E6:E10.
  • Then, from the Insert tab → select Win/Loss.

How to Use Win Loss Sparklines in Excel 2

  • So, the Create Sparklines dialog box will appear.
  • It will set the selected range as the Location Range.
  • Then, select the cell range B6:D10 as the Data Range and press OK.

How to Use Win Loss Sparklines in Excel 3

  • By doing so, the Win Loss Sparklines will appear for each cell. Here, the Blue color and the Red color denote positive and negative values respectively.

How to Use Win Loss Sparklines in Excel 4

  • Thus, we insert the Win/Loss Sparklines in Excel.
  • Now, we will walk you through the features.

How to Use Win Loss Sparklines in Excel 5

  • Firstly, we have the option to edit the Location and Data Range of the Sparklines.
  • Then, we can change the behavior of the Hidden & Empty Cells.
  • After that, there is an option to change the Type of the Sparklines.
  • Then, we can show the following in our Sparklines:
    • High Point
    • Low Point
    • First Point
    • Last Point
    • Negative Points
    • Markers
  • Now, we click on the Hidden & Empty Cells option.

How to Use Win Loss Sparklines in Excel 6

  • So, a dialog box will pop up.
  • Here, we have the option to show the empty cells as either Gaps or Zero. This option will not change the Win/Loss Sparklines, where a blank cell or 0 will yield only a gap in the Sparklines.

How to Use Win Loss Sparklines in Excel 7

How to Use Win Loss Sparklines in Excel 9

  • After that, we have the option to change the Sparkline Color.
  • Then, we can change the Marker Color of all points.
  • Next, we change the color for both of them.

How to Use Win Loss Sparklines in Excel 10

  • Lastly, we can Ungroup the Sparklines using the Group section.

How to Use Win Loss Sparklines in Excel 11

  • Finally, after changing the colors the Win/Loss Sparklines will look similar to this.

How to Use Win Loss Sparklines in Excel 12

Read More: How to Use Sparklines in Excel (Create and Customize)


2. Applying VBA to Use Win Loss Sparklines in Excel

In this last method, we will show you how to apply an Excel VBA Macro to show the Win Loss Sparklines.

VBA Sheet

Steps:

  • To begin with, press ALT+F11 to bring up the VBA window.
  • Alternatively, we can do it by selecting Visual Basic from the Developer tab.

How to Use Win Loss Sparklines in Excel 13

  • Then, from Insert → select Module. We’ll type our code here.

Insert Module

  • Then, type the following code.
Sub Win_Loss_Sparklines()
    Range("$E$6:$E$10").SparklineGroups.Add Type:=xlSparkColumnStacked100, _
        SourceData:="B6:D10"
    Range("E6").Select
    With Selection
        .SparklineGroups.Item(1).SeriesColor.Color = vbGreen
        .SparklineGroups.Item(1).Points.Negative.Color.Color = vbRed
    End With
End Sub

VBA Code

VBA Code Breakdown

  • First, we are calling our Sub procedure Win_Loss_Sparklines.
  • Next, we insert the xlSparkColumnStacked100 type Chart in the Active Sheet with the location range E6:E10 and the Data Range B6:D10.
  • Then, we use the VBA With statement to change the colors of the Sparklines. Here, we have used the “vbGreen” for the positive values and the “vbRed” for the negative data points.
  • Thus, this code works to create the Win/Loss Sparklines.
  • Afterward, Save the Module.
  • Then, put the cursor inside the first Sub procedure and press Run.

Run Code

  • So, our code will execute and it will create the Win Loss Sparklines in Excel.

Final Output

Read More: How to Create Sparklines in Excel (2 Easy Ways)


Practice Section

We have added a practice dataset for each method in the Excel file. Therefore, you can follow along with our methods easily.

Practice Dataset


Conclusion

We have shown you 2 handy approaches to how to use the Win Loss Sparklines in Excel. If you face any problems regarding these methods or have any feedback for me, feel free to comment below. Moreover, you can visit our site ExcelDemy for more Excel-related articles. Thanks for reading, keep excelling!


Related Articles

Rafiul Haq

Rafiul Haq

Greetings! I am Rafiul, an experienced professional with an engineering degree and an MBA in finance. Data analysis is my passion, and I find Excel to be an invaluable tool in this domain. My goal is to simplify complex concepts by providing comprehensive and user-friendly guides on Excel and finance topics, aiming to enhance people's productivity and understanding at ExcelDemy.

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo