将形状添加到 Excel 中的特定单元格

问题描述

是否可以用矩形填充范围 (A1:H4) 内的单元格,以便填充整个单元格,并且在对范围进行排序时,矩形形状仍保留在其所在的单元格中?

为华盛顿和罗斯福添加了 3 个形状的原始范围

enter image description here

在 Name 列上排序后会发生这种情况:

enter image description here

是否可以将形状绑定到特定单元格?

编辑:如果形状适合单元格的大小,那么在对范围进行排序时它会“停留”在单元格中吗?

解决方法

如果您使用 SORT() 或使用功能区上的 data->sort 对多列进行排序,它将使行保持原样,您的颜色将保持原样。例如:

=SORT(A2:AH4)

将按 ID# 顺序对这 3 行进行排序,并在每一行移动时保留颜色。

,

Okay - If the shapes need to sort along with the cells,it is necessary that the shape be completely contained within the cell.