active-technologies.com Computer Repair Network Management and Maintenance Summerville SC (843) 225-5648               
  • Login
  • Register
  • Home
  • About Us
  • Projects
  • Legalease
  • Green Policy
  • Recommendations
  • CIM Manufacturing Demo
  • Contact Us

You are here

Home | Excel

Services

  • What We Do
  • Computer Repair
  • Network Service
  • Backup System
  • Network Assessment
  • Disaster Recovery
  • Data Recovery
  • Technology Planning
  • Technology Partner
  • AntiVirus
  • Web Page Design
  • Mobile Web
  • Web Hosting
  • Identity Management
  • Search Optimization
  • Content Manager

Navigation

  • Forums
  • Recent content

Scan 2 Call

Excel: VLOOKUP

Submitted by gma on Thu, 09/22/2011 - 05:31

VLOOKUP searches for a value in the leftmost column of a table, and then returns a value in the same row from a column you specify in the table. Use VLOOKUP instead of HLOOKUP when your comparison values are located in a column to the left of the data you want to find.

VLOOKUP will work with a list where the table arguments are sorted, and you will get the closest match to a table argument that does not exceed your lookup value.
(for sorted lists use TRUE or default for a *close* match)

Syntax: (As always look in HELP for more information)
     VLOOKUP(lookup_value,table_array,col_index_num,range_lookup)
     range_lookup can be TRUE or FALSE, if omitted the default is TRUE

VLOOKUP will work with a list where the arguments are unordered, and you either get an exact match or fail with #N/A!.
(Whether sorted or not when an *exact* match is required so is the use of FALSE)

To suppress N/A errors:
=IF(ISNA(VLOOKUP(...,...,...,False)),"Item not found",VLOOKUP(...,...,...,False))

A cause of #VALUE! error is a zero value for col_index_num value in the function.

Do not mix cells defined as numbers with cells defined as text in the argument column of your table.  Some tips on determining data type and actual content of your data.  Your table must be consistent, but your lookup value can be forced to look like the table by using one or the other of these tricks (Peo Sjoblom 3003-01-15).

        =VLOOKUP(TEXT(A1,"00000"),Table,2,FALSE)

     or =VLOOKUP(A1+0,Table,2,FALSE)

This is the simplest example that I can come up with.  Note the use of TRUE in the formulas indicating that the value found in the table does not have to be an exact match but must be less than or equal to the lookup_value used.  For VLOOKUP the first column of the range is the used to match the argument, the 2 used in the example indicates to return the second column of the table.  Since TRUE is used an exact match is not required, but because an exact match is not equired, the table must be in ordered in ascending order to obtain the correct result.  If VLOOKUP can’t find lookup_value, and range_lookup is TRUE, it uses the largest table argument value that is less than or equal to lookup_value.

‹ Excel: Transpose Rows To Columns OR Columns To Rows up Excel: VLOOKUP To Find Your Perfect Match ›
  • Printer-friendly version

No comments available.

Add new comment

More information about text formats

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
Are you Human or a Computer Program???
Image CAPTCHA
Enter the characters shown in the image.

News

  • News

References

  • Outlook
  • Excel
  • Word
  • Access
  • General
  • Open Source
  • Smart Phones
  • Security
  • ShareWare
  • webERP
  • Site map

Search form


vcard

Copyright © 2004-2012 Active Technologies, LLC
Your Computer Network & Internet Services provider
(Powered by designhostseo.com)