sumif function by colors

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way that I can sum up cells in column A by colors? For example,
suppose I have a list of numbers in cells A1:A15. Cells A1, A3, A5, and A10
are colored light yellow. I would like to see a number in cell B1 that sums
up all cells in A1:A15 that are colored light yellow.
 
How did the cells attain their color?

If by Conditional Formatting simply sumif on that condition.

If colored manually, you will need VBA User Defined Function to sumif by color.

See Chip Pearson's site for info and code.

http://www.cpearson.com/excel/colors.htm


Gord Dibben MS Excel MVP
 

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

Back
Top