Excel Tutorial - Example of how to use the VLOOKUP function excel的教程-例如怎樣使用v lookup函數
Posted on September 5, 2007 at 1:50 pm張貼於2007年9月5日在下午1點50分
Welcome to Online Tech Tips , a great resource for computer tutorials, technology news, software reviews, and personal computing tips.歡迎網上高新技術小費,豐厚的資源,計算機技術指南,科技新聞,軟件審查,以及個人電腦的提示。 If you're new here and you like the content, you can subscribe to my如果你是來這裡和你喜歡的內容,你可以訂閱我的 RSS feed rss的飼料 to get daily tips.獲得每日小費。 Thanks for visiting!感謝來訪!
Table of Contents for Excel Tutorials 目錄的excel教程
- Microsoft Excel Basics Tutorial - Learning how to use Excel微軟的excel基礎教程-學習如何使用e xcel
- Excel Tips & Tricks - How to unprotect only a portion of an Excel spreadsheet excel的提示與秘訣-如何u nprotect只有部分的e xcel電子表格
- Excel Basics - How to use the Conditional Sum wizard excel的基本問題-如何利用有條件森嚮導
- How to use Data Validation in Microsoft Excel to create dropdown lists如何使用數據驗證,在微軟的excel創造的下拉式列表
- Excel Tutorial - How to make a simple graph or chart in Excel excel的教程-如何使一個簡單的圖形或圖表,在e xcel
- Excel Tutorial - Example of how to use the VLOOKUP function excel的教程-例如怎樣使用v lookup函數
Here’s a quick tutorial for those who need help using the VLOOKUP function in Excel.這裡的快速補習,為那些需要幫助的使用vlookup函數中出類拔萃。 VLOOKUP is a very useful function for easily searching through one or more columns in large worksheets to find related data. vlookup是一個非常有用的功能,很容易搜尋通過一個或多個欄目,在大的工作,以找到相關數據。 You can use HLOOKUP to do the same thing for one or more rows of data.你可以使用hlookup做同樣的事,一個或多個行的數據。 Basically when using VLOOKUP, you’re asking “Here’s a value, find that value in this other set of data, and then return to me the value of another column in that same set of data.”基本上當使用vlookup ,你問: "這裡的價值,發現價值,在這方面其他的一套數據,然後返回我的價值,另一欄在同一套數據。 "
So you might ask how this can be useful?因此,你可能會問,如何才能建立起這種有用嗎? Well, take for example, the following那麼,採取例如,以下 sample spreadsheet抽樣試算 I have created for this tutorial.我創造了這個教程。 The spreadsheet is very simple: one sheet has information on a couple of car owners such as name, id of the car, color and horsepower.該電子表格很簡單:一張資產負債表的資料,一對夫婦的車主,如姓名,身份證的車,顏色及馬力。 The second sheet has the id of the cars and their actual model names.第二板有身份證的汽車和他們的實際型號名稱。 The common data item between the two sheets is the car id.共同數據項之間的兩個產品是汽車身份證。
Now if I wanted to display the name of the car on sheet 1, I can use VLOOKUP to lookup each value in the car owners sheet, find that value in the second sheet, and then return the second column (the car model) as my desired value.現在,如果我想要顯示的名稱車,第1頁,我可以用vlookup來查找每個價值在車主板,發現價值,在第二板,然後再回到第二欄(汽車模型)為我理想的價值。 So how do you go about this?那麼你怎麼去嗎? Well first you’ll need to enter the formula into cell H4 .以及第一,你需要輸入公式到細胞h4 。 Notice that I have already entered the full formula into cell F4 through F9 .公告說,我已經進入了全面的公式到細胞f4的通過f9 。 We’ll walk through what each parameter in that formula actually means.我們將步行通過什麼每個參數在這一公式真正意義是什麼。
Here’s what the formula looks like complete:這裡的是什麼公式看起來像完成:
=VLOOKUP(B4,Sheet2!$A:$B,2,FALSE) vlookup = ( b4的, sheet2 !元甲 : $ b時2 ,虛假)
There are 5 parts to this function:有5個部分,此功能:
1. =VLOOKUP - The = denotes that this cell will contain a function and in our case that is the VLOOKUP function to search through one or more columns of data. 1 。 = vlookup -=指這個細胞將包含一個函數,並在我們的情況是這樣v lookup函數,以尋找通過一個或多個欄目的數據。
2. B4 - The first argument for the function. 2 。 b4的 -第一個論點,為功能。 This is the actual search term that we want look for.這是實際的搜索來說,我們希望尋找。 The search word or value is whatever is entered into cell B4.搜索詞或價值的是,無論是進入細胞b4的。
3. Sheet2!$A:$B - The range of cells on Sheet2 that we want to search through to find our search value in B4. 3 。 sheet2 !元甲 : $人員b -射程細胞對s heet2這是我們希望通過搜索找到我們的搜索價值b 4的。 Since the range resides on Sheet2, we need to precede the range with the name of the sheet followed by an !.由於射程寓於對sheet2 ,我們必須先於該範圍與名稱的資產負債表後進行了! 。 If the data is on the same sheet, there is no need for the prefix.如果數據是同一片,所以沒有必要為這個前綴。 You can also use named ranges here if you like.您也可以使用命名幅度在這裡如果你喜歡。
4. 2 - This number specifies the column in the defined range that you want to return the value for. 4 。 2 -這個數目明柱,在確定的範圍內,你是想回到自己的價值。 So in our example, on Sheet2, we want to return the value of Column B or the car name, once a match is found in Column A. Note, however, that the column’s position in the Excel worksheet does not matter.因此,在我們的例子裡,對sheet2 ,我們想回到自己的價值, b欄或賽車的名義,一次比賽是在發現柱答:但是,注意到欄的位置在excel工作不要緊。 So if you move the data in Columns A and B to D and E, let’s say, as long as you defined your range in argument 3 as $D:$E , the column number to return would still be 2.因此,如果你提出的數據,在欄目a及b d和e ,讓我們說,只要你確定了你的射程在論據3 元d組: 元英,列序號,以回報仍然會2 。 It’s the relative position rather than the absolute column number.它的相對位置,而不是絕對的列序號。
5. False - False means that Excel will only return a value for an exact match. 5 。 假 -假是指善於將只返回一個值,為精確匹配。 If you set it to True, Excel will look for the closest match.如果您設為true ,善於將尋找最接近的匹配。 If it’s set to False and Excel cannot find an exact match, it will return #N/A .如果它的內容,以虛假和excel無法找到一個準確匹配,將返回#版 n / a 。

Hopefully, you can now see how this function can be of use, especially if you have lots of data exported out from a normalized database.但願你們現在可以看到這個功能可以使用,特別是如果你有大量的數據輸出從一個正常化的數據庫。 There may be a main record that has values stored in lookup or reference sheets.有可能是一個主要記錄有自己的價值,存放在查找或參考表。 You can pull in other data by “joining” the data using VLOOKUP.你可以從其他數據由"參與"的數據,用vlookup 。
Another thing you may have noticed is the use of the $ symbol in front of the column letter and row number.另一件事,你可能已經注意到,是用美元符號在前面一欄的文字和行號。 The $ symbol tells Excel that when the formula is dragged down to other cells, that the reference should remain the same.美元符號告訴excel的時候公式是拉低到其他細胞,即提及應保持不變。 For example, if you were to copy the formula in cell F4 to H4, remove the $ symbols and then drag the formula down to H9, you’ll notice that the last 4 values become #N/A.舉例來說,如果你要複製公式在細胞f4的,以h4 ,罷免美元符號,然後再拖下去公式降至h9的,你會看到,近4價值觀成為#版n /甲

The reason for this is because when you drag the formula down, the range changes according to the value for that cell.究其原因,是因為當你拖拽公式的情勢下,各種變化,據以價值為細胞。 So as you can see in the picture above, the lookup range for cell H7 is Sheet2!A5:B8 .所以大家可以看到在圖片上面,查找範圍為細胞h7的是sheet2 !第5條: b8 。 It simply kept adding 1 to the row numbers.它只是將加入1適用於連續號碼。 To keep that range fixed, you need to add the $ symbol before the column letter and row number.為了不讓這種射程固定的,你需要添加$符號前柱信,並連續編號。
One note: if you’re going to set the last argument to True, you need to make sure that the data in your lookup range (the second sheet in our example) is sorted in ascending order otherwise it will not work!一注:如果你是去定最後的論點屬實,你要確保數據在你的查找範圍(第二板在我們的例子) ,是整理排列,否則它不會工作!
Any questions, post a comment!任何問題,後一個評論!
Technorati Tags: technorati的標籤: vlookup , , vlookup function vlookup函數 , , how to use vlookup如何使用vlookup , , vlookup help vlookup幫助 , , vlookup examples vlookup例子 , , vlookup tutorial vlookup補習
Bookmark, Share or Email this article. 書籤,分享或電郵這篇文章。
If you enjoyed this post, make sure you 如果你享受這個職位時,要確保你 subscribe to my RSS feed 訂閱我的rss飼料 ! !
» Filed Under »存檔下 MS Office Tips女士辦公室貼士
Related Posts相關職位
- How to use Data Validation in Microsoft Excel to create dropdown lists如何使用數據驗證,在微軟的excel創造的下拉式列表
- Excel Basics - How to use the Conditional Sum wizard excel的基本問題-如何利用有條件森嚮導
- Microsoft Excel Basics Tutorial - Learning how to use Excel微軟的excel基礎教程-學習如何使用e xcel
- Excel Tips & Tricks - How to unprotect only a portion of an Excel spreadsheet excel的提示與秘訣-如何u nprotect只有部分的e xcel電子表格
- Excel Tutorial - How to make a simple graph or chart in Excel excel的教程-如何使一個簡單的圖形或圖表,在e xcel
























