View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Chip Pearson Chip Pearson is offline
external usenet poster
 
Posts: 7,247
Default Adding figures in excel if text is a certain colour

Paul,

You need to use some VBA code to do this. See
www.cpearson.com/excel/colors.htm for example code, specifically
SumByColor.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"vipa2000" wrote in message
...
I have a spreadsheet with a lot of figures in it that
evolves on a monthly basis. When the figures are added
each month the figures are changed in colour from red to
blue to denote going from budget costs to actual costs. I
want excel to sum the figures based on colour. How can it
be done. I have looked at the IF statement, but not sure.
Thanks in advance Paul