简体   繁体   English

需要根据两个标准返回信息的公式

[英]Formula that needs to return information based on two criterias

I have reached a roadblock when it comes to a formula that we are currently working on for works purposes. 当谈到我们目前正在为工作目的而工作的公式时,我遇到了障碍。

What the formula needs to achieve is bring back information based on two cells' information. 公式需要实现的是根据两个单元格的信息来恢复信息。 We have gotten it to work with one cell using the following formula: 我们已经使用以下公式使用一个单元格:

"CONCATENATE(INDEX(IF(sheet2!c:c = c1, "company: " & char(10, ""))))"

Now this brings back some information but not as defined as we would like it to be, so we need to bring in a second cell, using 现在这会带回一些信息但不是我们希望的那样定义,所以我们需要引入第二个单元格

"IF(sheet2!c:c = c1 & ..."

brings back no results, leaving the cell empty. 没有结果,将单元格留空。 Using IFS produces either an error or name, as does AND(, OR(, MATCH(, CHOOSE( . 使用IFS产生错误或名称, AND(, OR(, MATCH(, CHOOSE( 。)

Any of your learned input will be greatly appreciated. 我们非常感谢您的任何学习输入。

your syntax is unusual. 你的语法很不寻常。 try: 尝试:

=ARRAYFORMULA(IF((Sheet2!C:C=C1)*(Sheet2!D:D=D1), "company: "&CHAR(10), ))

or with + mimicking OR : 或者用+模仿OR

=ARRAYFORMULA(IF((Sheet2!C:C=C1)+(Sheet2!D:D=D1), "company: "&CHAR(10), ))

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

相关问题 如何为Google Spreadsheet SumIF公式设置多个标准? - How can I set multiple criterias for a Google Spreadsheet SumIF formula? 找不到计算具有多个条件(OR 和 AND)的列的公式 - Can't find the formula to count columns with multiple criterias (OR and AND) 根据范围的内容返回三个值之一的公式 - Formula to return one of three values based on the contents of a range 当公式基于日期时如何返回空白单元格 - How to return a blank cell when the formula is based on dates 基于多个条件(索引和匹配公式)的返回值 - Return values based on multiple criteria (index and match formula) QUERY 公式仅返回基于时间戳的 email 的最新记录 - QUERY formula to return only the latest record per email based on timestamp 基于两个工作表匹配条件的 sumproduct 工作表公式 - Sheets formula for sumproduct based on matching criteria across two sheets 计算涉及其他两列的基于值的计算的公式 - Formula to Count Values Based Calculation Involving Two Other Columns 基于两个或多个查找键填充列的数组公式? - Array formula to fill column based on two or more lookup keys? excel vlookup 匹配 2 个条件并返回第三个结果 - excel vlookup to match on 2 criterias and return a 3rd result
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM