Use a macro to sum cells by color in Excel

Опубликовано: 06 Сентябрь 2026
на канале: EXCELBLUE
1,565
27

Use the following macro to add by cell color in Excel.
Function SUMARCOLOREXCELBLUE(SearchColor As Range, Range As Range)
Dim summed As Long
For Each Cell In Range
If cell.Interior.Color = SearchColor.Interior.Color Then
sum = sum + cell
End If
Next cell
SUMARCOLOREXCELBLUE = sum
End Function

Donations to continue creating content:
https://www.paypal.com/paypalme/excel...

See also:

Template to prepare the 4 Financial Statements in TXT and upload to the Super Companies:    • Plantilla automática que genera los 4 Esta...  

Automatic Payroll Template with Macro, which generates your employee payrolls in PDF format to send by email.
   • Plantilla automática Rol de Pagos con Macr...  

Automated Dividend Calculation Template:    • Plantilla automatizada para el cálculo de ...  

Follow me on Social Media:
  / excelblue77  
  / excelblue77  
  / excelblue77  
email: [email protected]

Donations:
https://www.paypal.com/paypalme/excel...

#excel ​​​​ #excelblue #exceltutorial