简体   繁体   中英

VLOOKUP not giving expected results (Google Sheets)

I'm trying to build an excel sheet and i want to retrieve the values in column J (Salida) who match the criteria in columns G and I (Comedor and Index). :

在此处输入图像描述

To achieve that goal I'm using this formula in cell K17;

=vLOOKUP(concatenate(G17;I17); G7:J; 4; FALSE)

Let's see what I'm getting step by step:

=CONCATENATE(G17;I17)  // This gives me "A1" as String 

=Type(G17) returns 2 //String
=Type(I17) returns 2 //String


G7:J // the complete range where my criteria columns are in first positions

4 // The column index starting from the beginning of the range (Salida)

False // Exact match

And the error I'm receiving is "A1" not found in VLOOKUP evaluation but I have no idea about what's going on. Any help would be appreciated.

在此处输入图像描述

try:

=INDEX(VLOOKUP(G17&I17; {G7:G&I7:I \ J7:J}; 2; 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