ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   sumif color cells with same month (https://www.excelbanter.com/excel-discussion-misc-queries/263343-sumif-color-cells-same-month.html)

eva cheng

sumif color cells with same month
 
My file have two columns A - Month B - Amount
I will change the color to red of certain cells in column B
Can I use the sumif function to total column B of those cells with same
month and color red ?

Many thanks
eva cheng

Luke M[_4_]

sumif color cells with same month
 
You can't sum by color (is there some criteria you could use, such as
greater than x value?), but you can sum by month like this:
=SUMPRODUCT(--(TEXT(A2:A100,"mmm")="Apr"),B2:B100)

--
Best Regards,

Luke M
"eva cheng" wrote in message
...
My file have two columns A - Month B - Amount
I will change the color to red of certain cells in column B
Can I use the sumif function to total column B of those cells with same
month and color red ?

Many thanks
eva cheng




Kristiina

sumif color cells with same month
 
Dear Eva,


Yes you can.
For "sumif" function it's necessary however that in addition to coloring the
cells you add an additional cell with the color name. See for further details:

http://www.officearticles.com/excel/...ft_excel.h tm


Hope to have helped :)

Rgrds,
Kristiina

--
I help with Excel and PowerPoint
Office ToDo
http://www.officetodo.com



All times are GMT +1. The time now is 06:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com