Excel Tutorial - Example of how to use the VLOOKUP function Excel Tutorial - Beispiel für die Verwendung der VLOOKUP Funktion

Posted on September 5, 2007 at 1:50 pm Erschienen am 5. September 2007 um 1.50 Uhr

Here’s a quick tutorial for those who need help using the VLOOKUP function in Excel. Hier eine schnelle Anleitung für diejenigen, die Hilfe für die Verwendung der VLOOKUP Funktion in Excel. VLOOKUP is a very useful function for easily searching through one or more columns in large worksheets to find related data. VLOOKUP ist eine sehr nützliche Funktion für die einfache Suche durch eine oder mehrere Spalten in großen Arbeitsblätter zu finden Daten. You can use HLOOKUP to do the same thing for one or more rows of data. Sie können HLOOKUP, das gleiche zu tun, was für eine oder mehrere Zeilen von Daten. 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.” Grundsätzlich, wenn Sie VLOOKUP, können Sie fragt: "Hier Wert feststellen, dass dieser Wert in anderen Satz von Daten, und kehren Sie dann zu mir den Wert einer anderen Spalte in der gleichen Reihe von Daten."

So you might ask how this can be useful? So dass Sie sich fragen, wie diese kann nützlich sein? Well, take for example, the following Nun, nehmen Sie zum Beispiel die folgenden sample spreadsheet Beispieltabelle I have created for this tutorial. Ich habe für dieses 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. Die Tabelle ist sehr einfach: ein Blatt hat Informationen über ein paar Autobesitzer wie Name, ID des Autos, Farbe und PS. The second sheet has the id of the cars and their actual model names. Das zweite Blatt hat die ID des Autos und ihren tatsächlichen Namen Modell. The common data item between the two sheets is the car id. Die gemeinsame Daten Punkt zwischen den beiden Blättern ist das Auto 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. Nun, wenn ich wollte, um die Namen der Wagen auf der Seite 1, ich kann VLOOKUP, um dort jeden Wert in der Autobesitzer Blatt, finden Sie diesen Wert in der zweiten Blatt, und sie dann wieder in der zweiten Spalte (das Auto Modell) als meine Gewünschten Wert. So how do you go about this? Also wie kann man über diesen? Well first you’ll need to enter the formula into cell H4 . Nun erstes müssen Sie in die Formel in Zelle H4. Notice that I have already entered the full formula into cell F4 through F9 . Beachten Sie, dass ich schon in der vollen Formel in die Zelle F4 durch F9. We’ll walk through what each parameter in that formula actually means. Wir gehen durch die einzelnen Parameter in der Formel eigentlich bedeutet.

Here’s what the formula looks like complete: Hier ist es, was die Formel aussieht wie abgeschlossen:

=VLOOKUP(B4,Sheet2!$A:$B,2,FALSE) = VLOOKUP (B4, Sheet2! $ A: $ B, 2, FALSE)

There are 5 parts to this function: Es gibt 5 Teile zu dieser Funktion:

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 - Das = bedeutet, dass diese Zelle enthält eine Funktion, und in unserem Fall, das ist die VLOOKUP Funktion für die Suche durch ein oder mehrere Spalten von Daten.

2. B4 - The first argument for the function. 2. B4 - Das erste Argument für die Funktion. This is the actual search term that we want look for. Dies ist der eigentliche Begriff suchen, die wir sehen wollen. The search word or value is whatever is entered into cell B4. Der Suchbegriff oder Wert ist, was ist, die Zelle 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! $ A: $ B - Das Spektrum der Zellen auf Sheet2, wir wollen, dass die Suche über unsere Suche Wert in B4. Since the range resides on Sheet2, we need to precede the range with the name of the sheet followed by an !. Da das Spektrum der sich auf Sheet2, müssen wir vor dem Bereich mit dem Namen des Blattes, gefolgt von einer!. If the data is on the same sheet, there is no need for the prefix. Wenn die Daten auf dem gleichen Blatt, gibt es keine Notwendigkeit für die Vorsilbe. You can also use named ranges here if you like. Sie können auch den Namen reicht hier, wenn Sie möchten.

4. 2 - This number specifies the column in the defined range that you want to return the value for. 4. 2 - Diese Zahl gibt die Spalte in der definierten Bereich, die Sie wollen den Wert. 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. Also in unserem Beispiel, auf Sheet2, wollen wir den Wert der Spalte B oder das Auto, wenn eine Übereinstimmung gefunden wird in der Spalte A. Beachten Sie jedoch, dass die Spalte Position in der Excel Arbeitsblatt spielt keine Rolle. 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. Also, wenn Sie die Daten in Spalten A und B, D und E, sagen wir mal, so lange, wie Sie Ihren Bereich definiert als Argument 3 als $ D: $ E, die Spalte Anzahl die Rückkehr würde noch 2. It’s the relative position rather than the absolute column number. Es ist die relative Position eher als die absolute Zahl Spalte.

5. False - False means that Excel will only return a value for an exact match. 5. Falsch - Falsch bedeutet, dass nur die Rückkehr Excel wird ein Wert für eine genaue Übereinstimmung. If you set it to True, Excel will look for the closest match. Wenn Sie es auf "True", übertreffen wird, die nach dem nächsten Spiel. If it’s set to False and Excel cannot find an exact match, it will return #N/A . Wenn es auf False und Excel können keine genaue Übereinstimmung finden, wird es wieder # 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. Wir hoffen, Sie können jetzt sehen, wie Sie diese Funktion nutzen können, vor allem, wenn Sie viele Daten exportiert werden aus einer Datenbank normalisiert. There may be a main record that has values stored in lookup or reference sheets. Es kann auch eine grundlegende Werte, die in Bezug Lookup oder Blätter. You can pull in other data by “joining” the data using VLOOKUP. Sie können ziehen in den anderen Daten durch "Beitritt" der Daten mit Hilfe VLOOKUP.

Another thing you may have noticed is the use of the $ symbol in front of the column letter and row number. Eine weitere Sache, die Sie vielleicht bemerkt haben, ist die Nutzung von $ Symbol vor der Spalte Buchstaben und Zeilennummer. The $ symbol tells Excel that when the formula is dragged down to other cells, that the reference should remain the same. Das Symbol $ sagt Excel, dass, wenn die Formel gezogen zu anderen Zellen, dass der Verweis soll gleich bleiben. 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. Zum Beispiel, wenn Sie sich zum Kopieren Sie die Formel in der Zelle F4 H4, entfernen Sie das $ Symbole und ziehen Sie die Formel bis H9, werden Sie feststellen, dass die letzten 4 Werte zu # N / A

The reason for this is because when you drag the formula down, the range changes according to the value for that cell. Der Grund dafür ist, wenn Sie die Maus bewegen, weil die Formel, die Palette ändert sich je nach dem Wert für die Zelle. So as you can see in the picture above, the lookup range for cell H7 is Sheet2!A5:B8 . So, wie Sie sehen können, die im Bild oben, der Suchtabelle für Zelle H7 ist Sheet2! A5: B8. It simply kept adding 1 to the row numbers. Es ist einfach gehalten Hinzufügen von 1 bis die Zeile Zahlen. To keep that range fixed, you need to add the $ symbol before the column letter and row number. Um diesem Bereich fest, dann müssen Sie das $ Symbol vor dem Schreiben Spalte und Zeile.

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! Ein Hinweis: Wenn Sie sich an die letzte Argument auf "True", die Sie benötigen, um sicherzustellen, dass die Daten in Ihrer Suchtabelle Reihe (auf dem zweiten Blatt in unserem Beispiel) ist aufsteigend sortiert, sonst wird es nicht funktionieren!

Any questions, post a comment! Fragen, einen Kommentar!

Technorati Tags: Technorati Tags: , , , , ,

If you enjoyed this post, make sure you Wenn Ihnen dieser Post, machen Sie sicher, dass Sie subscribe to my RSS feed Abonnieren meinem RSS-Feed ! !

» Filed Under »Unter Abgelegt MS Office Tips MS Office Tipps

Related Posts Verwandte Beiträge

Please post your comments/suggestions! Bitte stellen Sie Ihre Kommentare und Anregungen!