Question : SUMIFS along with SumColor function

I have used conditional formatting to change the background color of cells. Now, I want to use SUMIFS to add things, but ONLY if they are NOT conditionally formatted. I get #VALUE error from my formula; see attached example. I have no idea what's wrong.....thanks, Experts!
Attachments:

Answer : SUMIFS along with SumColor function

The SumColor function you are using looks at regular format colors, not those set by Conditional Formatting.

The next problem you will run into is the fact that your Conditional Formatting uses a relative address. This is a very big problem for VBA code used to retrieve Conditional Formatting colors when the cells are on a different worksheet because the code does not know where the addresses are relative to. AFAIK, it is impossible in Excel 2003 to handle the general case with Conditional Formatting using relative addresses on a different worksheet. I don't believe the problem was solved in Excel 2007 or 2010. It is certainly saluted in Chip Pearson's web page (modified most recently earlier this month): http://www.cpearson.com/excel/CFColors.htm

My suggestion to you is to use the native SUMIFS function and to replicate the logic of the Conditional Formatting:
=SUMIFS('At-a-Glance'!$G$4:$G$251,'At-a-Glance'!$F$4:$F$251,'PUNCH TRUCK INVENTORY'!A2,'At-a-Glance'!$P$4:$P$251,"")


Brad
Random Solutions  
 
programming4us programming4us