gpt4 book ai didi

excel - 计算具有相同背景颜色的单元格列表

转载 作者:行者123 更新时间:2023-12-01 18:45:51 25 4
gpt4 key购买 nike

每个单元格包含一些文本和背景颜色。所以我有一些细胞是蓝色的,一些是红色的。我用什么函数来计算红细胞数量?

我已尝试 =COUNTIF(D3:D9,CELL("color",D3)) 但没有成功(其中 D3 为红色)。

最佳答案

Excel 无法使用其内置函数收集该属性。如果您愿意使用一些 VB,所有与颜色相关的问题都可以在这里得到解答:

http://www.cpearson.com/excel/colors.aspx

网站示例:

The SumColor function is a color-based analog of both the SUM and SUMIF function. It allows you to specify separate ranges for the range whose color indexes are to be examined and the range of cells whose values are to be summed. If these two ranges are the same, the function sums the cells whose color matches the specified value. For example, the following formula sums the values in B11:B17 whose fill color is red.

=SUMCOLOR(B11:B17,B11:B17,3,FALSE)

关于excel - 计算具有相同背景颜色的单元格列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49964/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com