csum

  1. I

    SumByColor isn't working anymore

    Hey all, I added to an Excel file the following module: 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 =...
  2. N

    UDF not working

    Hi all, This is for Excel 2013, and here is my code, which has worked before: Public Function SumByColor(CellColor As Range, rRange As Range) ' CellColor is the cell containing they colour type you are searching for ' rRange is the range of cells to add, if the colour matches...
  3. E

    sumbycolor has stopped working

    Hi All I had this procedure working perfectly but it suddenly stopped and is not recognising CL as a variable. I have highlighted the CL in blue which is what excel does when it shows "Expected Function or Variable". Could anyone help please? I have remmed out col1 = CL.Interior.ColorIndex as I...
  4. D

    SelectionChange

    I have a function that I want to have run using selection change. The code for the function is: Function SumByColor(CellColor As Range, rRange As Range) Dim cSum As Currency Dim ColIndex As Integer ColIndex = CellColor.Interior.ColorIndex For Each cl In rRange If cl.Interior.ColorIndex =...
  5. S

    VBA formula for 2 different functions

    Hi Mr. Excel, I am attempting to write 2 different function codes and am requesting help, please. If I could merge both of these functions that would be even better! I will list the coding below, however, I am wanting to have the sum of only the yellow background highlighted cell values be...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top