How To Sum Cells based on Background Color in Excel || Excel Tips

How To Sum Cells based on Background Color in Excel || Excel Tips

How To Sum Cells based on Background Color in Excel || Excel Tips

In this tutorial, let us learn How to Sum Cells based on Background Color in Excel.

We have already seen how to count cells based on background colors using a VBA method. Similarly, let us try this trick in this tutorial now.

Let us consider a sample example and sum the cells based on their colors in detail in this video.

Function SumByColor(CellColor As Range, rRange As Range)
Dim cSum As Long
Dim ColIndex As Integer
ColIndex = CellColor.Interior.ColorIndex
For Each cl In rRange
If cl.Interior.ColorIndex = ColIndex Then
cSum = WorksheetFunction.SUM(cl, cSum)
End If
Next cl
SumByColor = cSum
End Function

*Link to Download Excel File*: (or)

For Personalized detail learning, write to

If you found this video valuable, give it a like. If you know someone who needs to see it, share it. Leave a comment below with your thoughts. Add it to a playlist if you want to watch it later.

★ My Online Tutorials ►


Subscribe for more Awesome Tutorials:

Support the Channel via shopping:

Tools for youtube vlogging:

• Laptop:
• Canon 200D Camera:
• Benro Tripod:
• Microphone:
• Collar Microphone:
• Screen recorder:
• Boom Arm Stand:
• Zoom H1 Audio Recorder:
• Harison Softbox Studio Lights:
• Chroma Key Green Screen:
• Background Support Stand:
• Acoustic Foam Background:
• USB RGB LED Strip:
• Wireless Mouse:

Note: This description contains affiliate links, which means at no additional cost to you, we will receive a small commission if you make a purchase using the links. This helps support the channel and allows us to continue to make videos like this. Thank you for your support!


You Can Connect with Me at:


#dptutorials #Ms-Excel #VBA #Exceltraining #ExcelTricks #ExcelTips #ExcelFreeTraining #ExcelFreeLearning

Tags: –
excel formulas in English, excel in English, excel tutorial in English,ms excel in English,ms excel tutorial in English, learn excel in English,vlookup in excel in English, learn ms excel in English, excel training, excel tutorial, Microsoft Excel 2007, learn excel,tutorial excel, ms excel tutorial, excel tutorials,ms excel 2007,Microsoft Excel training,learn excel online,learning excel,free excel training,online excel training,advanced excel tutorial,excel tutorial, excel formulas and functions, excel formulas, excel tutorial in Hindi, excel formulas and functions in Hindi, excel tricks, excel in Hindi, excel shortcut keys, excel vlookup, excel formulas in Hindi, excel for beginners, excel for accounting, excel formulas and functions tutorial, Excel Sum Formula, Sum Formula series, excel attendance sheet, excel salary sheet, excel stock maintain, excel data entry, advanced excel tutorial,excel formulas,excel tutorial,vlookup excel,excel accounting,excel for beginners,excel shortcut keys,excel sum formula,excel training,excel training online,excel tricks,free excel training,learn excel,learn excel online,microsoft excel training,attendance sheet in excel,excel data entry,excel formulas and functions,microsoft excel 2007, ms excel tutorial, excel formulas, and functions in hindi

Leave a Reply

Close Menu