sumif color cells with same month

  • Thread starter Thread starter eva cheng
  • Start date Start date
E

eva cheng

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
 
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)
 
Back
Top