Thursday, May 16, 2013

How to Compare Data in Excel with VLOOKUP


1. Open the Excel 2010 spreadsheet that contains that data you want to compare. Click on the top cell of the first empty column in your spreadsheet.
2. Enter the following formula into the cell:=vlookup(A1,B:B,1,False)Change 'A1' to the top cell in the first column of data. Change the 'B's in 'B:B' to the letter of the column where the second set of data is located. Keep the '1,' as this tells VLOOKUP that you want to check the first column in the 'B:B' range. 'False' specifies that you want to search for an exact match, instead of an approximate one.
3. Press 'Enter' to complete the formula and have Excel run it. If the first entry in the first column appears in your second column, its name appears in the cell where you wrote the formula. If not, '#N/A' appears in the cell.
4. Select the cell where you entered your formula. Move your mouse pointer to the bottom-right corner of the cell. Click and hold the mouse button, then drag the mouse down until you reach the last cell where you want to use the formula. Release the mouse button. When you copy formulas like this, Excel will use relative references, so the 'A1' in the formula will change to, for example, 'A2,' 'A3' or 'A4' depending on what row the formula is in. The column where you entered the formulas will now display all the items from the first column that also appear in the second.

Blogger news