简体   繁体   English

Excel - 将内容从一个单元格复制到另一个单元格(有条件)

[英]Excel - Copying content from a cell to another ( with condition )

i have a little issue with excel doing this let's say i have 4 cells A,B,C,DA and C are just identifiers ( they have same text ) but not ordered i want to perform a function that copy cell D content to B if they had the same identifier ( A and C ) example :我在使用 excel 时遇到了一个小问题,假设我有 4 个单元格 A、B、C、DA 和 C 只是标识符(它们具有相同的文本)但没有订购我想要执行将单元格 D 内容复制到 B 的功能,如果他们有相同的标识符( A 和 C )示例:

A B C D 
something AsomethingA something CsomethingC

result :结果 :

A B C D
something CsomethingC something CsomethingC

i hope i didn't make it compliacted thank you guys in advance!我希望我没有让它变得复杂,提前谢谢你们!

I found out how to do it, i used Vlookup function ,here is it :我发现了怎么做,我使用了 Vlookup 功能,这是它:

=IFERROR(VLOOKUP(A1;$C$1:$D$2000;2;FALSE);"NO MATCH FOUND")

In my case i had 2000 cells, you can edit it however you want ,have a nice day!就我而言,我有 2000 个单元格,您可以随意编辑它,祝您有美好的一天!

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

相关问题 Excel / Google表格:在“ ISTEXT”条件下将数据从一个单元格复制到另一选项卡和单元格 - Excel/Google Sheets: Copying data from one cell upon “ISTEXT” condition to another tab and cell 从Excel单元格中搜索/复制特定内容 - Searching / Copying specific content from an Excel cell 从一个Excel到另一个Excel逐个单元复制值 - Copying value cell by cell from one excel to another excel Excel-将文本从一个单元格复制到另一个单元格而不删除原始内容 - Excel - copying text from one cell to another without deleting original content 使用vba将单元格从一个工作簿复制到excel中的另一个工作簿 - Copying the cell from One workbook to another workbook in excel using vba Excel VBA使用单元格引用从另一个工作簿复制数据 - Excel VBA Copying data from another workbook using cell reference Excel VBA - 将单元格内容从一张纸复制到另一张纸 - Excel VBA - copying cell contents from one sheet to another 根据单元格值将行从一个 Excel 工作表复制到另一个 - Copying rows from one Excel sheet to another based on cell value 使用VBA将单元格值复制到Excel中的另一个工作表 - Copying Cell Value to another sheet in Excel with VBA 使用VBA将单元格值保留在Excel中保留格式从一个单元格到另一个单元格 - Copying the cell value preserving the formatting from one cell to another in excel using VBA
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM