Skip to main content

Vlookup with columns function

You can use the VLOOKUP function in Excel to search for a specific value in a table and return a corresponding value from a specified column, even if that column is not the first one in the table. To do this, you will need to use the COLUMN function in conjunction with the VLOOKUP function. The COLUMN function returns the column number of a specified cell. For example, COLUMN(A1) would return 1, since A1 is in column 1. You can use this function in conjunction with the VLOOKUP function to specify a column other than the first one in the table. Example: =VLOOKUP(A2,B2:D5,COLUMN(C1),FALSE) In this example, the function will look for the value in A2 in the first column of the table B2:D5, and return the corresponding value from the column represented by C1. Note that when you use the COLUMN function in the VLOOKUP function, the column number you provide must be relative to the table range, not the entire worksheet.

Comments

Popular posts from this blog

Vlookup with wildcard

The VLOOKUP function in Excel can be used with wildcard characters to find and retrieve data based on a partial match of a lookup value. The wildcard characters that can be used with VLOOKUP are the "*" (asterisk) and "?" (question mark) characters. The "*" (asterisk) character is used to match any sequence of characters, while the "?" (question mark) character is used to match any single character. To use a wildcard character with VLOOKUP, you need to include the wildcard character in the lookup value within quotation marks. For example, to find the price of a product that starts with the letter "A" and has any number of characters after it, you can use the following formula: =VLOOKUP("A*",A1:C10,3,FALSE) This formula will look for the value "A*" in the first column of the range A1:C10, and if it finds a match, it will return the value in the third column of the same row. Similarly, if you want to find a pro...

vlookup with vstack

Get multiple lookup values in single cell