|

# » Combine the VLookup and Match formulas in Microsoft Excel

The VLookup formula returns data from any column you choose in the data table, simply change the number of the column in the third argument.

Although it sounds simple, there is a catch.
• How can you determine the number of a column in a data table that contains numerous columns?
• How can you easily change the number of the column in the third argument of the VLookup formula?
• How can you easily change the column number in multiple formulas in a worksheet from which complex reports are prepared or in a sheet that contains multiple VLookup formulas?

Solution

Insert the Match formula in the third argument of the VLookup formula.

Step 1: Define 2 names, see screen shot

1. Select Row 1, press Ctrl+F3, type the name Row1 in the Names in workbook field, and click OK.

2. Select the data table by pressing Ctrl+*. Then press Ctrl+F3, enter Data in the Names in workbook field, and click OK.

Step 2: Enter the Match formula

1. Open an adjacent worksheet, and select cell A1.

2. In cell A1 type 4/1/2001.

3. In cell B1, enter the formula =MATCH (A1, Row1, 0).
(Be careful to enter the value 0 in the third argument to specify the search for an exact value.)

4. Results of calculation: 7.

Step 3: Enter the Vlookup formula

1. Enter the account number 201 into cell A2.

2. Enter the formula =VLOOKUP(A2,Data,B1) in cell B2. In the third argument of the VLookup formula, select a cell which contains the Match formula.

3. Calculation results: 7,981.

• Step 4: Combine the formulas

1. In the formula bar (Match formula) of cell B1, select the formula without the = sign, press Ctrl+C, and click the Cancel sign (from the left of the formula in the formula bar). Select cell B2, and in the formula bar, select the address B1.
2. Press Ctrl+V and press Enter.

3. The final result is a nested formula is
=VLOOKUP (A2, Data, MATCH(A1, Row 1, 0))

Screenshot // Combine the VLookup and Match formulas in Microsoft Excel

#### Book Store:

Rate This Tip
 1 2 3 4 5
Rating: 2.41     Views: 341694
Payroll Project
AudreyWooten  Posted on: 31-12-1969
I have set up my chart
I have name my tables
I figured out the formula for the Fed tax
but I can't put together the formula
for Fed tax combined with Marital Status And dependents
Divyesh Bharucha  Posted on: 31-12-1969
I am using vlookup to have data in sheet2 from data of sheet1, havinf certain criteria, eventually data in sheet1 having other data to, can i find the the unlinked cell or data in data sheet1
Select special cells
JR  Posted on: 31-12-1969
Search fot the tip:( at the search box on the left upper side of this screen)
Selecting cells that only contain Text in Microsoft Excel

VLOOKUP formula for 2 table matches
Floyd D. Knox  Posted on: 31-12-1969
I am trying to formulate the correct syntax for VLOOKUP to find matches of birthdates and last names in the main data table from another source data table that contains some of the same bithdates and last names. I would like to get a true response in an identified column in the main data table beside the birthdates and last names that matches the birthdates and last names from the source data table. I am using Office 2000. I also have access to Office XP. Either one is fine. Whatever is easiest.
compare data in spreadsheet to data out
jerry  Posted on: 31-12-1969
I need to determine if what was loaded into a system actually loaded. I am able to get the source spreadsheet and then dump the results into another spreadsheet. Headings are consistent so Part # is one and UPC is another. (there are about 25 more but Im keeping it simple). The other spreadsheet will have the same information unless an error has occurred which is what I am trying to find out. How do I let excel 2000 look at the part number and then go across and compare things like UPC, weight, etc against the other sheet and note where an error has occurred? Any help would be appreciated
Vlookup
Mike  Posted on: 31-12-1969
I am doing a vlookup to have data from Sheet 1 populate into Sheet 2. The lookup that I am using is all numerical (ie: 7545774), and even though the data is on Sheet 1 it doesn't populate back into Sheet 2. However on the numbers that do have some letters in them (ie: 754E432), the data populates back into Sheet 2. I have formated the data into text and tried other things but nothing seems to work besides putting a ' in front of the data. The problem is I have about 4500 rows to bring over so this is not a solution. Any advice would be appriecated
vlookup with delete funciton
chris  Posted on: 31-12-1969
is there a way to do a vlookup function..and if there is a value match from table 1 and table 2..then to delete that row in able 2?
Give me Result Formula
Raja Sheraz Akthar  Posted on: 31-12-1969
sir plz give me some Result sheet formula
Name
Comment Title