Sum Cells Based on Their Color in Excel (Formula & VBA)
In this video, I will show you three different methods to add cells based on color. 00:00 Intro 00:25 SUM by Color Using SUBTOTAL Function 02:05 SUM by Color Using VBA Function 08:27 SUM by Color Using Get.CELL + Named Range Trick If you're looking for an easy one-time method, use the first SUBTOTAL method. If you need to do this quite often and are comfortable with VBA, you can create your own custom function that will give you the sum of cells based on the color in it. And if you don't prefer VBA, then you can use the third method which uses an old GET.CELL formula trick. It's not the best way to do this, but it gets the work done. ---------------- 'Code created by Sumit Bansal from https://trumpexcel.com/ 'This VBA code created a function that can be used to sum cells based on color Function SumByColor(SumRange As Range, SumColor As Range) Dim SumColorValue As Integer Dim TotalSum As Long Dim rcell As Range SumColorValue = SumColor.Interior.ColorIndex Set rCell = SumRange For Each rCell In SumRange If rCell.Interior.ColorIndex = SumColorValue Then TotalSum = TotalSum + rCell.Value End If Next rCell SumByColor = TotalSum End Function ---------------- ✅ Download File: https://swiy.io/sumbycolor ✅ Personal Macro Workbook Video: • Personal Macro Workbook - Reuse Macros in ... ☕ If you find my Excel videos useful and would like to support me, you can buy me a coffee - https://www.buymeacoffee.com/SumitB ✅ Free Excel Course (Basic to Advanced) - https://trumpexcel.com/learn-excel/ ✅ Free Dashboard Course - https://bit.ly/free-excel-dashboard-c... ✅ Free VBA course - https://bit.ly/excel-vba-course ✅ Free Power Query Course - https://bit.ly/power-query-course ✅ Best Excel Books: https://trumpexcel.com/best-excel-books/ Subscribe to get awesome Excel Tips every week: https://www.youtube.com/user/trumpexc... #Excel #ExcelTips #ExcelTutorial

How to SUM & COUNT Cells By Color in Excel

How to sum values based on cell color in excel | 3 methods

How to Count Colored Cells in Excel (5 Levels)

SUM AND COUNT CELLS BASED ON COLOR IN EXCEL (NO VBA)

How to Sum Cells by Color in Excel (Get it to update automatically)

Excel for Beginners - The Complete Course

Countif by Cell Color | Sumif By Cell Color | Advanced Excel in hindi

How to easily automate boring Excel tasks with Power Query!

176 DIOS TE DICE HOY: PIDE A DIOS SABIDURÍA | OBSERVA CÓMO TU VIDA SE TRANSFORMA COMPLETAMENTE

How to Count Colored Cells in Excel (Three Ways!)

The Complete Web Development Roadmap

Extract Data based on a Drop-Down List selection in Excel

Advanced Excel - VLOOKUP Basics

n8n Tutorial – Zero to Hero Course

SUM and COUNT by Cell Colour in Excel -- WITHOUT VBA!

VLOOKUP in Excel | Tutorial for Beginners

Advanced Pivot Table Techniques (to achieve more in Excel)

But what is quantum computing? (Grover's Algorithm)

Create Multiple Dependent Drop-Down Lists in Excel (on Every Row)

