我有一个有趣的困境。我有一列值,每个对齐都有特定的含义(左边是新部分,右边是核心部分,中心是过时的)。我想摆脱所有居中对齐的值,因为它们在这张表中无关紧要。 (我从需要过时部件的另一张表中复制了此列表)
有没有办法根据对齐进行过滤/排序?我只根据单元格/字体颜色进行查找。这个问题似乎太小了,无法将 vba 用于此特定工作表。
最佳答案
如果您添加类似的帮助列,请复制以下内容以适应:
=CELL("prefix",A1)
您将需要过滤某些内容(例如仅选择
^
),然后能够删除相应的行。From the Help page
Prefix:
Text value corresponding to the "label prefix" of the cell. Returns single quotation mark ('
) if the cell contains left-aligned text, double quotation mark ("
) if the cell contains right-aligned text, caret (^
) if the cell contains centered text, backslash (\
) if the cell contains fill-aligned text, and empty text (""
) if the cell contains anything else.
关于excel - 基于对齐方式排序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50936821/