使用以下公式
=INDEX($A$2:$B$6,MATCH($D2,$B$2:$B$6,0),1)
从incolD
匹配创建。问题是当它没有找到匹配项时,它会放入.item_ids
model_num
colC
model_num
colC
#N/A
colD
item_id (colA) model_num (colB) data (colC) new_data (colD)
-------- ---------- ------- ----------
870834 FD021 FD1424B 10752514
16595156 S3TA03B Not Required #N/A
10752514 FD1424B S3TA03B 16595156
10756167 SU03B Included with Kit #N/A
14667130 KDAD SU03B 10756167
如果它没有找到匹配项,它应该只是将已经存在的内容复制colC
到colD
.
item_id (colA) model_num (colB) data (colC) new_data (colD)
-------- ---------- ------- ----------
870834 FD021 FD1424B 10752514
16595156 S3TA03B Not Required Not Required
10752514 FD1424B S3TA03B 16595156
10756167 SU03B Included with Kit Included with Kit
14667130 KDAD SU03B 10756167
问题
当公式找不到匹配项时,colC
我如何告诉它只复制 to 的colC
内容colD
?