简体   繁体   English

如果第二列匹配,如何在Excel中查找2列并返回值

[英]How to Lookup for 2 columns in Excel and Return Value if second column Matches

I have one worksheet with All the URL's of 60 styles that have multiple Children styles that are different by colors. 我有一个工作表,其中包含60种样式的所有URL,这些样式具有多种不同颜色的子样式。

For Example: 例如:

Website/SH70_BLACK_2.jpg,
Website/SH70_BLACK_3.jpg,
Website/SH70_BLUE_1.jpg,
Website/SH70_BLUE_2.jpg,
Website/GN02_PINK_2.jpg,
Website/GN02_PINK_3.jpg,
Website/GN02_PINK_4.jpg,
Website/GN02_YELLOW_1.jpg,
Website/GN02_YELLOW_2.jpg,
Website/GN02_YELLOW_3.jpg,
Website/GN02_YELLOW_4.jpg,
Website/GN03B_BLUE_1.jpg,
Website/GN03B_BLUE_2 (1).jpg,
Website/GN03B_BLUE_2.jpg,
Website/GN03B_BLUE_3.jpg,
Website/GN03B_GRAY_1.jpg,
Website/GN03B_GRAY_2.jpg,
Website/GN03B_GRAY_3.jpg,
Website/GN03B_GRAY_4.jpg,
Website/GN03B_RED_1.jpg,

And in my inventory program, the SKU is GN03B_RED, GN03B_GRAY and so on... I could do a "Text to column" in excel and separate SKU from color. 在我的库存计划中,SKU为GN03B_RED,GN03B_GRAY等...我可以在excel中执行“文本到列”,并将SKU与颜色分开。 But how do I Lookup for 2 columns in Excel and Return Value if second column Matches (ie; the color)? 但是,如果第二列匹配(即颜色),我如何在Excel中查找2列并返回值?

您可以使用索引并与数组公式(ctrl + shift + enter)匹配:

=index(the column you want to return,match(1stlookupcol&2ndlookupcol,0))

暂无
暂无

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

相关问题 如何在excel中执行查找以返回多个列和行多个匹配项? - How to perform lookup to return multiple columns and rows multiple matches in excel? 如果在其他2列中满足条件,如何在excel中使用查找从第三列返回值 - How do i use a lookup in excel to return a value from a third column, if criteria are met in 2 other columns 如何在 excel 中查找数据并在其旁边返回值? - How to lookup data in excel and return value next to it? 如果在其中一列中找到查找值,则返回第一列的值 - Return value of the first column if lookup value is found in one of columns 在第一列中查找与键匹配的值,然后将其用作键以从第三列返回值 - Lookup a value that matches a key in one column then apply that as a key to return a value from a third column Excel-如何将列标题与行标题(日期)匹配并在VBA中返回查找值 - Excel - how to match a column header with a row header (dates) and return a lookup value in VBA 如何返回列与值匹配的数组 - How to return an array where a column matches a value Excel-多列中的查找值 - Excel - Lookup value in multiple columns Excel-如何比较2列中的单元格,如果B列匹配,则使用B列中匹配单元格旁边的C列中的值? - 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? 如何从最后一个单元格中查找秒不等于0,并返回标头值 - How to LOOKUP second from last cell not equal to 0, and return header value
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM