Movatterモバイル変換


[0]ホーム

URL:


Menu
×
See More 
Sign In
+1 Get Certified Upgrade Teachers Spaces Get Certified Upgrade Teachers Spaces
   ❮   
     ❯   

Excel Tutorial

Excel HOMEExcel IntroductionExcel Get StartedExcel OverviewExcel SyntaxExcel RangesExcel FillExcel Move CellsExcel Add CellsExcel Delete CellsExcel Undo RedoExcel FormulasExcel Relative ReferenceExcel Absolute ReferenceExcel Arithmetic OperatorsExcel ParenthesesExcel Functions

Excel Formatting

Excel FormattingExcel Format PainterExcel Format ColorsExcel Format FontsExcel Format BordersExcel Format NumbersExcel Format GridsExcel Format Settings

Excel Data Analysis

Excel SortExcel FilterExcel TablesExcel Conditional FormatExcel Highlight Cell RulesExcel Top Bottom RulesExcel Data BarsExcel Color ScalesExcel Icon SetsExcel Manage Rules (CF)Excel Charts

Table Pivot

Table Pivot Intro

Excel Case

Case: Poke MartCase: Poke Mart, Styling

Excel Functions

ANDAVERAGEAVERAGEIFAVERAGEIFSCONCATCOUNTCOUNTACOUNTBLANKCOUNTIFCOUNTIFSIFIFSLEFTLOWERMAXMEDIANMINMODENPVORRANDRIGHTSTDEV.PSTDEV.SSUMSUMIFSUMIFSTRIMVLOOKUPXOR

Excel How To

Convert Time to SecondsDifference Between TimesNPV (Net Present Value)Remove Duplicates

Excel Examples

Excel ExercisesExcel SyllabusExcel Study PlanExcel CertificateExcel Training

Excel References

Excel Keyboard Shortcuts


ExcelVLOOKUP Function


VLOOKUP Function

TheVLOOKUP function is a premade function in Excel, which allows searches across columns.

It is typed=VLOOKUP and has the following parts:

=VLOOKUP(lookup_value,table_array,col_index_num, [range_lookup])

Note: The column which holds the data used to lookup must always be to the left.

Note: The different parts of the function are separated by a symbol, like comma, or semicolon;

The symbol depends on yourLanguage Settings.

Lookup_value: Select the cell where search values will be entered.

Table_array: The table range, including all cells in the table.

Col_index_num: The data which is being looked up. The input is the number of the column, counted from the left:

Range_lookup: TRUE if numbers (1) or FALSE if text (0).

Note:Both 1 / 0 and True / False can be used inRange_lookup.

How to use theVLOOKUP function.

  1. Select a cell (H4)
  2. Type=VLOOKUP
  3. Double click the VLOOKUP command
  4. Select the cell where search value will be entered (H3)
  5. Type (,)
  6. Mark table range (A2:E21)
  7. Type (,)
  8. Type the number of the column, counted from the left (2)
  9. Type True (1) or False (0) (1)
  10. Hit enter
  11. Enter a value in the cell selected for the Lookup_valueH3(7)

Let's have a look at an example!

Use theVLOOKUPfunction to find the Pokemon names based on theirID#:

H4 is where the search result is displayed. In this case, the Pokemons names based on their ID#.

H3 selected aslookup_value. This is the cell where the search query is entered. In this case the PokemonsID#.

The range of the table is marked attable_array, in this exampleA2:E21.

The number2 is entered ascol_index_number. This is the second column from the left and is the data that is being looked up.

An illustration for selectingcol_index_number2.

Ok, so next -1(True)is entered asrange_lookup. This is because the most left column has numbers only. If it was text,0(False) would have been used.

Good job! The function returns the#N/A value. This is because there have not been entered any value to the Search ID#H3.

Let us feed a value to it, typeH3(7):

Have a look at that! TheVLOOKUP function has successfully found the Pokemon Squirtle which has the ID#7.

One more time, type(H3)4:

It still works! The function returned Charmanders name, which has4 as its ID#.That's great.



×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning.
Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness
of all content. While using W3Schools, you agree to have read and accepted ourterms of use,cookies andprivacy policy.

Copyright 1999-2025 by Refsnes Data. All Rights Reserved.W3Schools is Powered by W3.CSS.


[8]ページ先頭

©2009-2025 Movatter.jp