简体   繁体   English

Excel If语句,以检查单元格是否包含某些字符并将其复制到其他单元格

[英]Excel If statement to check if cell contains certain characters and copy them to other cells

I'm looking for an If statement that will copy text from one cell to another 我正在寻找一个If语句,它将文本从一个单元格复制到另一个单元格

Its being a long time since I did any if statements in excel and am not sure if this can be done 自从我在excel中执行过if语句以来已经很长时间了,不确定是否可以做到

Its for work purposes to save time, not school or college or anything 其目的是为了节省时间,而不是学校,大学或其他任何事情

Basically what im looking for is an if statement that will check for specific characters in the project worked column and copy them to there respective columns on the right 基本上,我正在寻找的是if语句,该语句将检查项目工作列中的特定字符并将它们复制到右侧的相应列中

For instance if(cell d contains "TN", put TN in column K) 例如,如果(单元格d包含“ TN”,则将TN放入K列)

在此处输入图片说明

Put this in F3: 将其放在F3中:

=IF(ISNUMBER(FIND(","&F$2&",",","&SUBSTITUTE($D3," ","")&",")),F$2,"")

Copy over and down 上下复制

在此处输入图片说明

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM