简体   繁体   中英

How to count months with the same background color with formula?

I would like to count how many items in one column do I have in one month (for example June), that have the same color, or a specific color. Also, I would like to sum the values from the X column that are related to the same month with the same background color.

With this formula, I managed to count a number of items from the specific month (June):

=ArrayFormula(countif(month('SHEET NAME'!W2:W),6))

So I need some conditional-like count of all items from June with the red background color. Also, I need to SUM all values from June with a red background color.

install this add-on: https://chrome.google.com/webstore/detail/custom-count

then use formula:

=COUNTBACKGROUNDCOLOR("B2:B21", "B2")

0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM