USING V-LOOKUP INEXCELhttp://CompensationInsider.com
The problem   You have 2 Excel files with one needing some of    the information from the other to be complete. The    2 ...
The solution   The V-lookup function in Excel allows you to    “copy” data from one column from the source    file into t...
Uses and advantages ofvlookup   You can use this to participate in compensation    surveys, for example if your bonus inf...
Important preliminary actions   Identify the common denominator between the    2 files and make sure it is identical.    ...
Important preliminary actionscont’d   Assuming file A is where you want to import data    (main file) and file B is where...
Step 1 – Select “vlookup” into Excel functions (fx),where you want to insert the nationality into themain file
Step 2 - Fill in the blanks
What each field means   Lookup value : is the common identifier, selected    in file A / main file (where you want to imp...
Step 3 - You will see the result onthe screen, click OK
Step 4 – Extend to the wholecolumn and you’re done
Results – pay attention   As you noticed, the file reported “N/A” for    Claudette because she is not in the August file ...
Recommended – notmandatory   I recommend doing a copy/paste special >    Values of the imported data so that you can    t...
Want to know more ?   On my blog CompensationInsider.com, I share    Excel, social media, presentation and other    usefu...
Upcoming SlideShare
Loading in...5
×

Using Vookup in Excel - Compensation Insider Sunday Skills

1,485

Published on

This function allows you to import data from one file to another, like a copy/paste but when the 2 files don't have the same number of rows, for example with employee data as of 2 different dates.

Very useful for importing information when preparing for compensation surveys for example.

Check out my blog : http://CompensationInsider.com if you are interested in Compensation & Benefits and want to receive free "technical" tips every other Sunday.

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,485
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Using Vookup in Excel - Compensation Insider Sunday Skills

  1. 1. USING V-LOOKUP INEXCELhttp://CompensationInsider.com
  2. 2. The problem You have 2 Excel files with one needing some of the information from the other to be complete. The 2 files have some similar information but a simple cut/paste will not work. For example : Employee data file as of May 1st, with employee address. The other file has employee data as of August 1st, and includes nationality. You need to include nationality in the first file but between May and August, some employees left and others were hired so you can’t just copy/paste nationality into the first file easily. The risk of error in manual copying is too great and it takes too much time.
  3. 3. The solution The V-lookup function in Excel allows you to “copy” data from one column from the source file into the main file, using a common piece of info that it will “look up” into both files to import only information that is relevant. For example, using the employee ID number as common piece of info, it will import Nationality into the file with the address. It will skip employees who are not present into both files.
  4. 4. Uses and advantages ofvlookup You can use this to participate in compensation surveys, for example if your bonus information is in a different file from salary and allowances information. Vlookup imports the data into your main file and once it’s done you only need to check the employees with N/A result because they are present in the main file but not in the source file (where you import from) : they are usually new hires or employees who left or transferred. You save time compared to a normal copy/paste, reduce error risks, and focus only on particular
  5. 5. Important preliminary actions Identify the common denominator between the 2 files and make sure it is identical.  In Compensation & Benefits, I recommend to use Employee ID because this number never changes. (Name spelling can vary from one file to another, female employees may change their name when getting married or divorced). Ensure both files are ordered in the same manner (eg : file is ordered by employee name from A to Z or employee ID smallest to largest)
  6. 6. Important preliminary actionscont’d Assuming file A is where you want to import data (main file) and file B is where you are taking the data from (source file). In file B, count the “column number” of the data you want to import with respect to the common identifier. “Column number 1” is the column which has the common identifier.  For example : Employee ID is in column A, Nationality is in Column B, the “column number” of Nationality is 2  For example, Employee ID is in column C, Nationality in in column G, the “column number” of Nationality is 5
  7. 7. Step 1 – Select “vlookup” into Excel functions (fx),where you want to insert the nationality into themain file
  8. 8. Step 2 - Fill in the blanks
  9. 9. What each field means Lookup value : is the common identifier, selected in file A / main file (where you want to import the data to) Table Array : is the selection of columns in file B (source file), from common denominator (Employee ID) to the data to import (Nationality). Simply go to file B and select the columns. In our example go to Nationality tab and select columns A to D. Col index num : is the “column number” of the data you want to import. In our example, type 4 Range lookup : always type False
  10. 10. Step 3 - You will see the result onthe screen, click OK
  11. 11. Step 4 – Extend to the wholecolumn and you’re done
  12. 12. Results – pay attention As you noticed, the file reported “N/A” for Claudette because she is not in the August file where we imported the data from. She may have left the company for example, or be transferred to another department. The import also did not copy data for Issam, present in August (we have Nationality for him) but not in May. He may be a new hire or have been transferred in from another department.
  13. 13. Recommended – notmandatory I recommend doing a copy/paste special > Values of the imported data so that you can then “play” with your main file without messing the vlookup. You can then easily filter the file and focus only on the employees with “N/A” results : they are the ones which are into your main file but not into the file with the data to be imported so you’ll have to search the info in a different way for them
  14. 14. Want to know more ? On my blog CompensationInsider.com, I share Excel, social media, presentation and other useful “technical” tips for Compensation & Benefits and HR professionals, every other Sunday. I also cover C&B topics and career advice the rest of the week. Feel free to check it out and subscribe by email or RSS. Find out more about me and why I started this blog. © Sandrine Bardot and CompensationInsider.com 2011
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×