Coloring Subtotal Levels in Different Colors in Microsoft Excel

In this article, we will learn how to add subtotals to primary and secondary fields in Microsoft Excel.

Subtotal: - This option is used to calculate rows of related data quickly by inserting subtotals and totals.
 
img1
 
Let’s take an example and understand how we can add data to primary secondary fields.

Example 1: We have data in range A1:E19. Column A contains region, column B contains City, column C contains Product, column D contains Total Revenue, and Column E contains Net Revenue. We have inserted the subtotal as primary and secondary field
 
img2
 
We want to color two subtotal levels in different colors.

To color each level in a different color by coloring visible cells, follow below given steps:-

  • Add Subtotals with two totaling levels.
  • Click Level 3 of the Subtotal levels.
  • Press the key Ctrl+Shift+* on your keyboard.

img3
 
img4
 

  • The data will get selected.
  • To select the visible cells only, press the key Ctrl+G on your keyboard, ‘Go To’ dialog box will appear, then click on select button, click on Visible cells only.

img5
 

  • Go to Home tab, Select a color from the Fill Color icon from the group of Font.

img6
 

img7
 

  • Click Level 2 of the Subtotal levels.
  • Press the key Ctrl+Shift+* on your keyboard.
  • To select the visible cells only, press the key Ctrl+G on your keyboard, and ‘Go To’ dialog box will appear, then click on select button, and click on Visible cells only.

img8
 

  • Go to Home tab. Select a color from the Fill Color icon from the group of Font.

image 3
 

  • Click on level 4.

img10
 

This is the way we can color two subtotal levels in different colors in Microsoft Excel.

 

image 48
 

If you liked our blogs, share it with your friends on Facebook. And also you can follow us on Twitter and Facebook.
We would love to hear from you, do let us know how we can improve, complement or innovate our work and make it better for you. Write us at info@exceltip.com

 
 

Leave a Reply

Your email address will not be published. Required fields are marked *

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.