[英]Excel formula to make value from a column in one spreadsheet appear in another spreadsheet if conditional formatting condition is met
So I have a very specific problem in an excel workbook I am trying to make for work. 因此,我在尝试工作的excel工作簿中有一个非常具体的问题。 I'm sorry I can't share it with you because it contains confidential information, so I will try to describe as best I can. 很抱歉,由于其中包含机密信息,因此无法与您共享,因此我将尽力描述。
I have one sheet (Lets call it list A) in the workbook which has a list of a few appointments that require a particular resource. 我在工作簿中有一个工作表(让我们称之为列表A),其中包含一些需要特定资源的约会列表。 This list is automatically generated by a different piece of software and presents the duration of the appointment but not the start time. 此列表由不同的软件自动生成,并显示约会的持续时间,但不显示开始时间。 I have another sheet (list B) which comes from a different source, this has a list of all appointments and their start time but not their duration. 我有另一张来自不同来源的表(列表B),它有一份所有约会及其开始时间的列表,但不包括其持续时间。
I currently have a conditional formatting rule in place to highlight any names in list b that also appear in list a, the purpose is to make it easy to see which appointments require a specific resource and at what time it is needed. 我目前有一个条件格式规则来突出列表b中也出现在列表a中的任何名称,目的是让我们可以轻松查看哪些约会需要特定资源以及需要什么时间。
My problem is, I want to also display the duration of the appointment from list B on list A, but only next to the names that are highlighted by the conditional formatting. 我的问题是,我还希望从列表A上的列表B显示约会的持续时间,但仅在条件格式突出显示的名称旁边。 This problem is made more complicated by the fact that the way the two lists are generated makes them not necessarily in the same order. 由于生成两个列表的方式使它们不一定以相同的顺序,这一问题变得更加复杂。
The data from list A will change on a daily basis, so I need list B to update automatically. 列表A中的数据每天都会更改,因此我需要列表B自动更新。
To summarize I need a formula that will make a particular cell in list B equal to a particular cell in list A but only if a cell in the same row but different column appears in both lists. 总而言之,我需要一个公式,该公式将使列表B中的特定单元格等于列表A中的特定单元格,但前提是两个列表中都存在同一行但不同列的单元格。
Sorry if this is confusing, I appreciate any help provided. 对不起,如果这令人困惑,我感谢您提供的任何帮助。
Assuming names are in ColumnA and times/durations in ColumnB in each sheet then: 假设每个工作表的名称在ColumnA中,时间/持续时间在ColumnB中,则:
=IFERROR(VLOOKUP(A1,'list A'!A:B,2,0),"")
should serve. 应该服务。 Given display the duration of the appointment from list B on list A, but only next to the names that are highlighted by the conditional formatting and highlight any names in list b that also appear in list a then a simpler version of the requirement seems to be "lookup durations for those names in List B that appear in List A". 给定从列表A上的列表B显示约会的持续时间,但仅在条件格式 突出显示 的名称旁边,并突出显示列表b中也出现在列表a中的任何名称,那么该要求的更简单版本似乎是“列表B中出现在列表A中的那些名称的查找持续时间”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.