gpt4 book ai didi

excel - 在 Excel 2003 中过滤掉所有具有相同背景颜色的行?

转载 作者:行者123 更新时间:2023-12-04 21:41:44 28 4
gpt4 key购买 nike

现在,我想在工作表中获取所有具有相同背景颜色的行。如何在 Excel 2003 中过滤掉所有具有相同背景颜色的行?

更新:
Enter image description here

我已将该函数添加到我的 Excel 中,该函数位于“用户定义”类别下的插入函数中。

但我不知道如何使用它。现在,如果我想以与 A1:I1 相同的背景颜色显示所有数据在sheet1上,我该怎么做?

最佳答案

在模块中,您可以添加此功能:

Function CellColour(rngIn As Range) As Long
Application.Volatile True
CellColour = rngIn(1).Interior.ColorIndex
End Function

然后你记得它是一个原生公式
=CellColour(A1)

将其应用于您需要的范围并过滤公式返回的数字。

关于excel - 在 Excel 2003 中过滤掉所有具有相同背景颜色的行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7056739/

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