简体   繁体   English

如果满足条件格式条件,则从一个电子表格中的列生成值的Excel公式将显示在另一个电子表格中

[英]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.

相关问题 Excel-用于在电子表格中查找值以及在另一列中的状态的公式 - Excel - Formula to find value on spreadsheet plus its status in another column 将6列的Excel电子表格格式化为单列 - Formatting an excel spreadsheet with 6 columns into one single column Excel:如何设置条件以在Excel电子表格的另一列中搜索值 - Excel : How to set criteria for searching value in one column from another in excel spreadsheet 两个日期和另一个值之间的Google电子表格条件格式 - Google spreadsheet conditional formatting between two dates and another value 如果在Excel中满足条件,如何将列从一张纸复制到另一张纸? - How to copy column from one sheet to another if the condition is met in excel? 使用 Access VBA 条件格式化 Excel 电子表格 - Conditional Formatting Excel Spreadsheet Using Access VBA 如何基于Excel电子表格中的指向值在公式中创建动态单元格 - How to make dynamic cell in formula based on pointed value in excel spreadsheet Excel 条件格式公式基于一列的最后日期为另一列中的某些条件 - Excel Conditional Formatting formula based on the last date of one column for certain criteria in another column 条件格式上多行的Excel公式多条件 - Excel formula mutiple condition on more one row on conditional formatting Ruby Spreadsheet Gem:从Excel文件中的公式单元格提取值 - Ruby Spreadsheet Gem: extracting value from a formula cell in an Excel file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM