SUMIF on Fill color

D

Dave H

Is it possible to use SUMIF or similar to sum cells where the Fill Color is
Yellow for instance ??

IE something along the lines of =SUMIF(C3:C15),"FillColor=Yellow",C3:C15)
......

At present I'm getting along by adding a separate column which has an
asterisk in it and using that as the basis for the SUMIF, but I'd rather
just change the cell colour to select the amounts I'm interested in.

Thanks Dave H.
 
B

Bob Phillips

It cannot be fully dynamic Dave as the cell colour change does not trigger
the recalc.

You can make it respond to F9 by adding

Application.Volatile

at the start of the Colorindex function.
 
D

Dave H

Bob Phillips said:
It cannot be fully dynamic Dave as the cell colour change does not trigger
the recalc.

You can make it respond to F9 by adding

Application.Volatile

at the start of the Colorindex function.

Ah that's better - ta Bob.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top