简体   繁体   中英

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.

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. But how do I Lookup for 2 columns in Excel and Return Value if second column Matches (ie; the color)?

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

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

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