在 Microsoft Excel 中通过 vlookup 制作列表?

发布于 2024-07-26 16:11:56 字数 152 浏览 2 评论 0原文

我有一个 Excel 表格,其中包含三列:名称、组织、合同到期(是/否)。

我还有另外 20 张表,每个组织一张。 在每张纸上,我想要该公司合同即将到期的人员的姓名。 我可以对列出的第一个组织进行 vlookup,但我需要每个组织的完整列表。 有什么建议么?

I have a table in excel with three columns: name, organization, contract expiring (YES/NO).

I have 20 other sheets, one for each organization. On each sheet, I want the names of the people whose contracts are expiring from that company. I can do a vlookup for the first one listed, but I need the full list for each organization. Any suggestions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

多像笑话 2024-08-02 16:11:56

创建表的数据透视表。

页面字段=组织

行字段 = 名称

列字段 = 合同即将到期(是/否)

数据项 = 合同到期计数(是/否)

在列字段上使用过滤器并仅选择“是”值。

使用页面字段上的下拉菜单并选择您要查看的组织。

Create a pivot table of your table.

Page fields = Organization

Row fields = Name

Column fields = Contract expiring (YES/NO)

Data items = Count of Contract expiring (YES/NO)

Use the filter on the column field and select only 'YES' values.

Use the drop down on the Page fields and select the Organization you want to view.

梦中楼上月下 2024-08-02 16:11:56

假设您的主工作表名为“List”,如下所示:

   |    A     |    B    |    C     |
------------------------------------
 1 |   name   | company | expired? |
 2 |   mary   |   XYZ   |    NO    |
 3 |   fred   |   ABC   |   YES    |
 4 |    ..    |   ...   |    ..    |

然后,在公司“XYZ”的工作表上:

   |    A    |  B   |  C   |   D  |
------------------------------------
 1 |         |      |      |      |
 2 |    1    |  f1  |  f2  |  f3  |
 3 |  =A2+1  |  f1  |  f2  |  f3  |
 4 |  =A3+1  |  f1  |  f2  |  f3  |
 5 |   ...   |  ..  |  ..  |  ..  |

f1: =IF(AND(List!B2="XYZ",List!C2="YES"),B1+1,B1)
f2: =IF(A2>MAX(B:B),"",MATCH(A2,B:B,0))
f3: =IF(C2="","",INDEX(List!A:A,C2))

Assuming that your main sheet is called "List", and looks as follows:

   |    A     |    B    |    C     |
------------------------------------
 1 |   name   | company | expired? |
 2 |   mary   |   XYZ   |    NO    |
 3 |   fred   |   ABC   |   YES    |
 4 |    ..    |   ...   |    ..    |

Then, on the sheet for company "XYZ":

   |    A    |  B   |  C   |   D  |
------------------------------------
 1 |         |      |      |      |
 2 |    1    |  f1  |  f2  |  f3  |
 3 |  =A2+1  |  f1  |  f2  |  f3  |
 4 |  =A3+1  |  f1  |  f2  |  f3  |
 5 |   ...   |  ..  |  ..  |  ..  |

f1: =IF(AND(List!B2="XYZ",List!C2="YES"),B1+1,B1)
f2: =IF(A2>MAX(B:B),"",MATCH(A2,B:B,0))
f3: =IF(C2="","",INDEX(List!A:A,C2))
驱逐舰岛风号 2024-08-02 16:11:56

生成仅包含过期联系人的列表,然后使用免费的 DataPig Excel Explosion 插件怎么样? [向导将基于列的数据拆分到单独的组织工作簿中]? 我认为 excel 2007 没有版本,但我见过有关网络的宏示例可以执行相同的操作。

What about producing a list of just the contacts expiring and then using free DataPig Excel Explosion Add-in. [wizzard to split up data based on a column into the seperate organisation workbooks]? I don't think there is a version for excel 2007 but I have seen examples of macros about the web that do the same thing.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文