Count the cells with same color in google spreadsheet

后端 未结 5 467
夕颜
夕颜 2021-01-03 21:15

I\'m trying count the number of cells with the same background color and put the result in other cell with a script in google apps script, but I can\'t do it. I have the nex

5条回答
  •  难免孤独
    2021-01-03 21:42

    Easy solution if you don't want to code manually using Google Sheets Power Tools:

    1. Install Power Tools through the Add-ons panel (Add-ons -> Get add-ons)
    2. From the Power Tools sidebar click on the Σ button and within that menu click on the "Sum by Color" menu item
    3. Select the "Pattern cell" with the color markup you want to search for
    4. Select the "Source range" for the cells you want to count
    5. Use function should be set to "COUNTA"
    6. Press "Insert function" and you're done :)

提交回复
热议问题