简体   繁体   中英

Vlookup Based On 2 Columns - Google Sheets

I'm consolidating two sheets that are populated via two separate google forms. I'm trying to find a row where 2 column items match to return a different cell via vlookup.

Example: I need to get value in 'NAMES SHEET'!C4 to appear in 'SHOPS SHEET'!C3 .

I'm trying to match both the DATE and SHOP columns - but have had no luck.

I've tried using 'NAMES SHEET'!A4&'NAMES SHEET'!B4 as my search parameters, but it concats the two cells together. I've been stuck at this a while- any suggestions would be greatly appreciated!

在此处输入图片说明 在此处输入图片说明

use in 'SHOPS SHEET'!C3 :

=ARRAYFORMULA(IFNA(VLOOKUP(A3:A&B3:B, 
 {'NAMES SHEET'!A3:A&'NAMES SHEET'!B3:B, 'NAMES SHEET'!C3:C}, 2, 0)))

You can use FILTER in 'SHOPS SHEET'!C3 :

=IFNA(FILTER('NAMES SHEET'!C3:C, 'NAMES SHEET'!A3:A = A3:A, 'NAMES SHEET'!B3:B = B3:B))

Not you case probably, but if there are data like this in NAMES SHEET there will be a problem with VLOOKUP using concatenated columns:

在此处输入图片说明

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