[英]Excel - How to Compare Cells from 2 Columns then if Column B Matches, Use the Value in Column C next to the Matching Cell in Column B?
I don't know who else to ask, so if you can help, I'd really appreciate it. 我不知道还有谁要问,所以如果您能提供帮助,我将不胜感激。
I have 4 columns: 我有4栏:
In column A, I have an updated list of 1000 product Sku's ie. 在A栏中,我有1000个产品Sku的更新列表,即。 A1001 from column C. In column B, its empty. C列中的A1001。在B列中,其为空。 In column C, I have the old list of 1500 sku's In column D, I have a name value that corresponds to the sku in column C. ie. 在C列中,我有1500 sku的旧列表。在D列中,我有一个对应于C列中sku的名称值。 Pita bread 皮塔饼
Sample Data: 样本数据:
A B C D A10897 () A10897 PITA A15006 () A15006 CANDLE A15008 () A15016 TOMATO A15009 () A15017 MILK A10900 () A10900 BREAD A10901 () A10901 WHEAT
So far, I've tried 3 formulas, but its not returning the correct name. 到目前为止,我已经尝试了3个公式,但公式未返回正确的名称。
=IF(ISNA(VLOOKUP(E2,$B$2:$B$9999,1,FALSE)),"No",F2)
What excel formula will compare a cell in column A with column C to see if they match, and if they do, show the value of the cell in column D next to column C into cell in column B beside the matched cell in column A. excel公式将比较A列中的单元格与C列是否匹配,如果匹配,则在A列中与之匹配的单元格旁边,将C列旁边的D列中的单元格显示为B列中的单元格。
Like This: 像这样:
A B C D A10897 PITA A10897 PITA A15017 MILK A15006 CANDLE A10901 WHEAT A15016 TOMATO ... (NO MATCH) A15017 MILK ... (NO MATCH) A10900 BREAD ... (NO MATCH) A10901 WHEAT etc...
Please help despair 请帮助绝望
Thank you. 谢谢。
这应该工作:
=IFERROR(VLOOKUP(A2,$C$2:$D$9999,2,0),"(NO MATCH)")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.