sumbycolor

  1. A

    Adjust SumByColor to allow to sum by another variable

    I currently have this, but don't know how to add it to sum by both colour and another column. Assuming the numbers are all coloured by their status, I need to sum based on that as well as the category in column A - how do I adjust the VBA code below to allow for that? Category Month A Month...
  2. 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 =...
  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. C

    SumByColor - without helper cells and with two decimals precision?

    I'm using the vba code below to sum cells by their color and it's not really working to my need 1. It rounds the sum to nearest whole number. I need two decimals precision 2. It does some weird stuff, e.g. it sums 2 * 1,5 to 4 but it also sums 2 * 2,5 to 4... <tbody> A B C 1...
  5. SandyG

    Using Sumifs based on cell color AND Date Range

    Good day! I have an Excel workbook that I am tracking labor costs, committed and actual. For the actual costs, I am using the "sumbycolor" code and it works great. I need to be able to also create a formula based on cell color and date range. So, I think I need to use a "sumifs" with a...
  6. C

    Summing only selected font colour

    <tbody> Q1 16/17 Q2 16/17 Q3 16/17 Q4 16/17 Q1 16/17 Staff 500 500 400 350 200 Non Staff 300 450 Student 85 20 49 16 63 Total 585 520 449 366 263 </tbody> Black font : Agreed Red font: Approved Blue font: Potential I would like to have only sum of Agreed value and Approved Value...
  7. A

    SumByColor rounding

    I am using code below for SumByColor and it works great however it rounds my numbers what do I need to change? 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...
  8. L

    need sumbycolor function for Excel 2007

    I want to add cells that have the same font color, or if that's not possible, the same background color. I found a few functions which claim to do this. I copied/pasted into VBA, but keep getting #NAME? errors. This is the first time I have ever done Alt/F11 so I might be doing something...
  9. T

    SumByColor rounding problem

    Hello, I've been trying to sum a series of numbers using the SumByColor function, and it has no issues picking out the correct cells, but it rounds every sum cell to ".00" even when it shouldn't. For example, there is one sumbycolor cell that should reflect another cell of (26.03), but the sum...

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