问题描述
我想要这样的东西:
A 1234
2345
3456
B 4567
C 5678
6789
D 7890
8901
其中A下的2个单元实际上是A,但是隐藏。
理想情况下,我希望在某种公式中使用这个数据,因为数据来自一个mysql合并,它必须自动执行...
这可以通过条件格式化来实现。
假设要隐藏的数据在A列中,对于单元格 A2
将条件格式化公式设置为 = A2 = A1
并格式化为 Number,Custom,;;;
然后复制格式
Is it possible in Excel to suppress values in a column when the cell above has the same value?
I want something like this :
A 1234
2345
3456
B 4567
C 5678
6789
D 7890
8901
where the 2 cells under A are actually A, but hidden.
Ideally I'd want this in some sort of formula, because the data comes from a mysql merge and it has to do this automatically...
This can be achieved with conditional formatting.
Assuming the data you want to hide is in Column A, for cell A2
set Conditional Formatting formula to =A2=A1
and format to Number, Custom, ;;;
then copy format down the column
这篇关于Excel:如果上面的单元格具有相同的值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!