Use cell fill (interior color index) as criteria in sumif or count if

Alex00001

New Member
Joined
Sep 5, 2006
Messages
8
Hello,

Is it possible to create a criteria based formula in excel 2003 that uses cel formatting as a criteria? (without the use of VBA)
For example, i have a list of values which all have different cell fill colors.

1 (green cell fill)
3 (yellow cell fill)
5 (blue cell fill)
9 (green cell fill)
2 (yellow cell fill)

Is there a formula that can do the following:
sumif cell fill is green = 10
sumif cell fill is yellow= 5

Thanks a bunch for your help!

Alex
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
I believe this is only possible with VBA (unless the colour settings are dependant on Conditional Formatting)
 
Upvote 0
Hello,

Is it possible to create a criteria based formula in excel 2003 that uses cel formatting as a criteria? (without the use of VBA)

Glad the answer was helpful to you. Please note though that by following the steps on Chips site you actually added a UDF (User Defined Function) - that is a vba module - to your workbook, which means that your workbook now contains macros that must be enabled for the function to work.
 
Upvote 0
FYI, you can do it without VBA if you use the old XLM functions, but I don't recommend either approach to be honest.
 
Upvote 0

Forum statistics

Threads
1,214,858
Messages
6,121,960
Members
449,057
Latest member
FreeCricketId

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