Excel:如果上面的单元格具有相同的值? [英] Excel: suppress if cell above has the same value?

查看:74
本文介绍了Excel:如果上面的单元格具有相同的值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想要这样的东西:

  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:如果上面的单元格具有相同的值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆