也许你想做的只是数据过滤。此功能在主要的电子表格程序中可用,我将通过示例解释如何使用它。
植物列于表中:

对于每种植物,“类型”栏中写明其类型(水果、蔬菜……),“颜色”栏中写明其颜色。
选择标题项并对其应用“自动过滤”:

每个标题项现在都有一个下拉按钮,可以根据一个或多个值过滤数据。

为此,请单击下拉按钮并根据需要设置过滤器。例如,仅过滤红色。

您现在可以看到表格中只出现了红色的植物。

这些屏幕截图来自 Linux Ubuntu 上的 LibreOffice Calc,但您应该能够非常轻松地将其适配到 Windows 7 上的 Microsoft Excel。