简体   繁体   English

在没有 VBA 的特定行上打开文件

[英]Open file on specific row without VBA

I have a specific question.我有一个具体的问题。

I manage a calendar on Excel for several person to open.我在 Excel 上管理一个日历,供几个人打开。 As it is shared by many person I don't want to use VBA由于它被很多人共享,我不想使用 VBA

According to the date of the opening I would like to open on the row of the date.根据开盘日期我想开盘的日期。 But if the date is out of list I want it to open on first row.但如果日期不在列表中,我希望它在第一行打开。

Is it possible to do it without VBA?没有 VBA 可以做到吗?

Thanks for replies感谢您的回复

You can use advanced filtering with some helper columns to do this.您可以使用带有一些帮助列的高级过滤来执行此操作。

I'm using Sheet 3 and 4 Columns A through D. Modify the formulas as needed.我正在使用工作表 3 和 4 列 A 到 D。根据需要修改公式。

I'm using this setup:我正在使用这个设置:

Item物品 Date日期 Helper 1帮手 1 Helper 2帮手 2

Helper Column 1:助手栏 1:

=IF(AND(B2=Sheet4!$B$2,COUNTIF(B2:B14,Sheet4!$B$2)),1,0)

Helper Column 2:辅助栏 2:

=IF(COUNTIF(C$2:C$14,1) > 0,1,0)

在此处输入图像描述

On another sheet you need to set up the advanced filters.在另一张纸上,您需要设置高级过滤器。 Use the same headers as your data.使用与数据相同的标题。 First row under headers:标题下的第一行:

Date: =Today()日期: =Today()

Second row under headers:标题下的第二行:

Item: 1项目:1

Helper 1: 0助手 1:0

Helper 2: 0助手 2:0

Go to Data --> Sort & Filter --> Advanced Go 到数据 --> 排序和过滤 --> 高级

List range = Your table Criteria Range = the criteria table you just set up.列表范围=您的表格标准范围=您刚刚设置的标准表格。

All together with the date present:连同现在的日期:

在此处输入图像描述

Without Date present:不存在日期:

在此处输入图像描述

I'm unsure how to get it to update automatically without VBA, you may need to instruct them to hit the advanced filter button to get it to update.我不确定如何在没有 VBA 的情况下使其自动更新,您可能需要指示他们点击高级过滤器按钮以使其更新。

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

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