根据另一个的密钥搜索一个Excel电子表格

时间:2018-04-28 21:15:11

标签: excel database spreadsheet

我有一个excel电子表格,其中包含一行键,如1649567,1649593,1650126,1651166,1655794,1656561。我有第二个电子表格,其中包含一个键列表,包括第一个电子表格中的键。我需要根据第一个电子表格中的键过滤第二个电子表格。有成千上万的钥匙。我该怎么做呢?

1 个答案:

答案 0 :(得分:0)

从键行构建一个数组,并将其用作AutoFilter中的Criteria1参数,运算符:= xlFilterValues。在xlFilterValues的数组中,看起来像数字的文本比真实数字更好。

:algo  a  c:CourseSeries;
    rdfs:label  "The Algorithms Course"@en;
    p:hasEdition
       :algo-2016-2017,
       :algo-2017-2018 .
:algo-2017-2018  a  c:Course;
    rdfs:label  "The Algorithms Course, 2017 edition"@en;
    p:responsible  :David;
    p:startingDate  "2017-11-23"^^xsd:date;
    p:endingDate  "2018-02-10"^xsd:date;
    p:hasSession
       :algo-2017-2018-s1,
       :algo-2017-2018-s2,
       :algo-2017-2018-s3,
       :algo-2017-2018-s4,
       :algo-2017-2018-s5 .
:algo-2017-2018-s1  a  c:Lecture;
    rdfs:label  "Sorting algorithms"@en;
    p:taughtBy  :David;
    p:location  :room42;
    p:starts  "2017-11-23T08:30:00Z"^xsd:dateTime;
    p:starts  "2017-11-23T11:30:00Z"^xsd:dateTime .
:algo-2017-2018-s1  a  c:Lecture;
    rdfs:label  "Search algorithms"@en;
    p:taughtBy  :Tom;
    p:location  :room123;
    p:starts  "2017-12-07T08:30:00Z"^xsd:dateTime;
    p:starts  "2017-12-07T11:30:00Z"^xsd:dateTime .
  ... # etc.