docs:microsoft_office:excel:vlookup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docs:microsoft_office:excel:vlookup [2013/11/04 11:23] billhdocs:microsoft_office:excel:vlookup [2015/05/04 10:11] (current) – [Tips] billh
Line 4: Line 4:
 **Example:** **Example:**
 <code> <code>
-=VLOOKUP(A3,Sheet1!A:B,2,FALSE)+=IFERROR(VLOOKUP(A3,Sheet1!A:B,2,FALSE),"")
 </code> </code>
 +  * the VLOOKUP function is "wrapped" in an IFERROR function above so that any results where matches are not found will show blank instead of the Excel default of "#N/A"
   * A3 holds the common identifier (primary key) in table 1   * A3 holds the common identifier (primary key) in table 1
   * Sheet1!A:B defines the table 2 area   * Sheet1!A:B defines the table 2 area
Line 16: Line 17:
   * if you are having trouble getting results and your common identifier is a number, make sure that values in both tables are actually numbers   * if you are having trouble getting results and your common identifier is a number, make sure that values in both tables are actually numbers
     * look for the green arrow in the upper left of a cell, and a yellow flag to the right; clicking on the yellow flag allows you to convert one or more cells to a number     * look for the green arrow in the upper left of a cell, and a yellow flag to the right; clicking on the yellow flag allows you to convert one or more cells to a number
-    * search Excel help for "convert to number"+    * [[Convert Text to Number]]
   * if you are comparing text, make sure you don't have odd characters in the strings, or empty space at the beginnings or ends; press F2 and examine a definite match carefully to find problems   * if you are comparing text, make sure you don't have odd characters in the strings, or empty space at the beginnings or ends; press F2 and examine a definite match carefully to find problems
  
 ===== External Links ===== ===== External Links =====
   * [[http://blogs.office.com/b/microsoft-excel/archive/2010/06/10/solutions-to-three-common-problems-when-using-vlookup.aspx|Solutions to Three Common Problems when Using VLOOKUP()]]   * [[http://blogs.office.com/b/microsoft-excel/archive/2010/06/10/solutions-to-three-common-problems-when-using-vlookup.aspx|Solutions to Three Common Problems when Using VLOOKUP()]]
  • docs/microsoft_office/excel/vlookup.1383589400.txt.gz
  • Last modified: 2013/11/04 11:23
  • by billh