简体   繁体   中英

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

Its being a long time since I did any if statements in excel and am not sure if this can be done

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

For instance if(cell d contains "TN", put TN in column K)

在此处输入图片说明

Put this in F3:

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

Copy over and down

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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