SUMIFS with Fill Color as a criteria

plane2002

New Member
Joined
Aug 13, 2015
Messages
1
Hi,

I'm looking for a UDF that acts as a SUMIFS formula but allows for fill color to be one of the criteria.

I've found many working examples of SUMIF type formulas that use the fill color as the only criteria.

In my instance however, I need a SUMIFS because I have additional criteria (i.e. vendor, Capital vs. Expense, etc.) that I also need to separate in addition to the criteria represented by the coloring.

Thanks!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Not sure if this would work for you:

Excel 2013
ABCDE
1color_rangehidecolorcount
263
3353
464
535
640
740
86
940
1035
1140
plane2002
Cell Formulas
RangeFormula
E2=COUNTIF(B2:B11,ColorIndex(D2))
B2=ColorIndex(A2)
 
Upvote 0
Sorry, forgot to post UDF:

Function ColorIndex(CellColor As Range)
ColorIndex = CellColor.Interior.ColorIndex
End Function
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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