【问题标题】:Lookup values using multiple criteria and based on order使用多个条件并基于顺序查找值
【发布时间】:2012-08-24 00:57:21
【问题描述】:

我有一个数据表(在本例中为物业租金),并且想在单独的表格中仅返回基于租金的前三个租户。所有属性数据都保存在同一张表中,每个属性都有一个唯一的引用,可以用作查找值。

输入

Property    Property name Tenant code Tenant    Rent
bb107       Property 1    t0000610    Tenant 1  115,000.00
bb107       Property 1    t0000515    Tenant 2  120,000.00
bb107       Property 1    t0000630    Tenant 3  125,000.00
bb107       Property 1    t0000565    Tenant 4  130,000.00
bb107       Property 1    t0000579    Tenant 5  145,000.00
bb110       Property 2    t0000520    Tenant 6  220,000.00
bb110       Property 2    t0000604    Tenant 7  215,000.00
bb110       Property 2    t0000588    Tenant 8  230,000.00
bb110       Property 2    t0000586    Tenant 9  185,000.00
bb110       Property 2    t0000611    Tenant 10 250,000.00
bb110       Property 2    t0000568    Tenant 11 235,000.00
bb115       Property 3    t0000562    Tenant 12 85,000.00
bb115       Property 3    t0000631    Tenant 13 65,000.00
bb115       Property 3    t0000532    Tenant 14 70,000.00
bb115       Property 3    t0000589    Tenant 15 72,500.00
bb115       Property 3    t0000556    Tenant 16 78,750.00
bb115       Property 3    t0000613    Tenant 17 55,000.00
bb115       Property 3    t0000524    Tenant 18 67,500.00

有人可以告诉我我应该在工作表上使用的论点来 a) 引用查找表中仅与我的特定属性相关的单元格。我有 mnay 属性(100+)并且不能为每个属性定义一个名称。 b) 如何返回前 3 个条目的租户引用。知道前 3 名租户后,我总是可以查找其他值。

输出应该是这样的:

属性 1

bb107   Property 1  t0000579    Tenant 5    145,000.00
bb107   Property 1  t0000565    Tenant 4    130,000.00
bb107   Property 1  t0000630    Tenant 3    125,000.00

属性 2

bb110   Property 2  t0000611    Tenant 10   250,000.00
bb110   Property 2  t0000568    Tenant 11   235,000.00
bb110   Property 2  t0000588    Tenant 8    230,000.00

属性 3

bb115   Property 3  t0000562    Tenant 12   85,000.00
bb115   Property 3  t0000556    Tenant 16   78,750.00
bb115   Property 3  t0000589    Tenant 15   72,500.00

另一个问题是,如果我给一些条目一个特定的参考,我怎么能只把这些条目拉到我的输出页面上。我正在努力为 excel 提供多个用于输出的标准(即查找属性 1,然后查找最高值租金,然后查找第二高(或手动输入的代码)等....

谢谢!

【问题讨论】:

    标签: excel lookup


    【解决方案1】:
    • 您可以在第二张工作表中使用数据透视表,其中行级别的字段属性、属性名称、租户代码、租户 和数据区域的租金总和 .
    • 由于所有关键字段都位于行级别,因此没有聚合
    • 在最低级别(Tenant)上,您将高级字段选项更改为“Sort Descending by Sum of Rent”和“Top10 AutoShow On >" / 显示 Top 3 / 使用字段“租金总和
    • 现在您可以筛选出所需的租户名称 voi-la ...应该是它

    【讨论】:

    • 是的,我知道我试图让事情变得过于复杂!谢谢
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-12-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多