简体   繁体   English

Excel 的多公式到 IF 等于从另一个单元格值复制

[英]Multi Formula for Excel to IF Equals copy from another cell value

I have been trying multiple formula to get results for Column D as shown below...(column d is normally empty. I tried matching, if, and lookup formulas and have yet been able to successfully complete the task).我一直在尝试多个公式来获取 D 列的结果,如下所示......( d列通常为空。我尝试了匹配、if 和查找公式,但还没有能够成功完成任务)。 Column A contains random ID numbers. A列包含随机 ID 号。 Column B contains the "parent id numbers. I need a formula for IF column B is greater than zero look in column A for that number... THEN copy from column c that cell value. I have used this but wont copy c value when going down the list =IF(C3>0,LOOKUP(C3,A2:A20001,D2)) B列包含“父 ID 号。我需要一个公式,如果B列大于零,在 A 列中查找该数字...然后从 c 列复制该单元格值。我使用过这个但不会复制c值时向下列表=IF(C3>0,LOOKUP(C3,A2:A20001,D2))

+----------+----------+-----------+----------+
| Column A | Column B | Column C  | Column D |
+----------+----------+-----------+----------+
|      279 |        0 | P12345    |          |
|      281 |      279 | 69856     | P12345   |
|      282 |      279 | 656898    | P12345   |
|      283 |        0 | 6464845   |          |
|      301 |      285 | 12156498  |          |
|      322 |      279 | 6588446   | P12345   |
+----------+----------+-----------+----------+

In D1 enter:D1 中输入:

=IFERROR(IF(B1>0,VLOOKUP(B1,$A$1:$C$6,3,FALSE),""),"")

and copy down.并抄下来。

在此处输入图片说明

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

相关问题 从另一个工作表复制等于单元格值的单元格 - Copy cell that equals cell value from another worksheet 如何通过使用Excel公式自动将单元格数据的最大值从一个选项卡复制到另一选项卡 - How to copy max value of a cell data from one tab to another tab automatically by using Excel formula Excel:求和公式,从一个单元格中的值到另一个单元格中的值 - Excel: Summation formula, from a value in a cell, to a value in another cell 如果值以公式开头,则 Excel 从列中复制单元格 - Excel copy cell from a column if value is starting with Formula Excel VBA使用另一个单元格中的值作为条件格式的公式 - Excel VBA use value from another cell as formula for conditional formating 如何将公式驱动的单元格复制并粘贴到另一个单元格中作为Excel中的值 - How to copy and Paste a formula driven cell to another cell as values in Excel excel vba:从另一个excel实例复制时,使用超链接公式处理单元格失败 - excel vba: coping cell with hyperlink formula fails when copy from one the another excel instance excel公式,根据另一个单元格值编写 - excel formula, write based on another cell value Excel公式更改另一个单元格的值? - Excel formula to change the value of another cell? 如何在excel中插入另一个单元格的值而不是公式 - How to insert the value of another cell in excel not the formula
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM