简体   繁体   English

在Excel中自动分组/合并

[英]Auto Grouping/Merging in Excel

I think the image attached describes better than I can in words the functionality I am trying to locate within excel. 我认为所附的图像比我在文字中描述的更好地描述了我想要在excel中找到的功能。

Is there a way to auto group based on the contents within the columns as shown? 有没有办法根据列中的内容自动分组,如图所示? This is achievable for the example shown, but when there are up to say 30 Groups and many sub group types, I am wondering whether excel can auto-detect and work its way through the list, grouping as shown as it goes. 这对于所示的示例是可实现的,但是当最多有30个组和许多子组类型时,我想知道excel是否可以自动检测并在列表中工作,分组如图所示。

在此输入图像描述

You can get a similar result using conditional formatting. 您可以使用条件格式获得类似的结果。 select the whole table and create a new conditional format rule and choose formula and enter =A1=A2 set the format font to white (I've used very light grey to show that the data is still there) 选择整个表并创建一个新的条件格式规则并选择公式并输入= A1 = A2将格式字体设置为白色(我使用非常浅灰色显示数据仍然存在)

To get the borders, do the same again and this time enter the formula =A1<>A2 and make the top border black. 要获取边框,请再次执行相同操作,这次输入公式= A1 <> A2并使顶部边框变黑。

It's not exactly the same as yours but it's close. 它与你的不完全相同,但它很接近。

分组示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM