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.

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 Tab 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 


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 Column Sparklines in Excel


Download Practice Workbook


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. Thanks for reading, keep excelling!


Related Articles


<< Go Back to Excel SparklinesLearn Excel

What is ExcelDemy?

ExcelDemy - Learn Excel & Get Excel Solutions Center provides online Excel training , Excel consultancy services , free Excel tutorials, free support , and free Excel Templates for Excel professionals and businesses. Feel free to contact us with your Excel problems.
Rafiul Haq
Rafiul Haq

Rafiul Haq worked as an Excel and VBA Content Developer in Exceldemy for over two years and published almost 200 articles for the website. He is passionate about exploring new aspects of Excel and VBA. He received his Bachelor of Science in Mechanical and Production Engineering (MPE) from the Islamic University of Technology. Rafiul furthered his education by obtaining an MBA in Finance from the Institute of Business Administration (IBA) at the University of Dhaka. Apart from creating... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo