Σεμινάριο Excel - παράδειγμα για το πώς να χρησιμοποιήσει τη λειτουργία VLOOKUP
Ταχυδρομημένος στις 5 Σεπτεμβρίου 2007 στις 1:50 μ.μ.
Σιγουρευτείτε για να διαβάσετε άλλες θέσεις από τη σειρά σεμιναρίων Excel!
- Σεμινάριο βασικών της Microsoft Excel - που μαθαίνει πώς να χρησιμοποιήσει Excel
- Άκρες & τεχνάσματα Excel - πώς στο unprotect μόνο μια μερίδα ενός υπολογισμού με λογιστικό φύλλο (spreadsheet) Excel
- Βασικά Excel - πώς να χρησιμοποιήσει τον υπό όρους μάγο ποσού
- Πώς να χρησιμοποιήσει την επικύρωση στοιχείων στη Microsoft Excel για να δημιουργήσει τους εξελισσόμενους καταλόγους
- Σεμινάριο Excel - πώς να κάνει μια απλό γραφική παράσταση ή ένα διάγραμμα σε Excel
- Σεμινάριο Excel - παράδειγμα για το πώς να χρησιμοποιήσει τη λειτουργία VLOOKUP
Εδώ είναι ένα γρήγορο σεμινάριο για εκείνους που χρειάζονται τη χρησιμοποίηση βοήθειας VLOOKUP λειτουργία σε Excel. VLOOKUP είναι μια πολύ χρήσιμη λειτουργία για εύκολα να ψάξει μέσω ενός ή περισσότερων στήλες στα μεγάλα φύλλα εργασίας για να βρεί τα σχετικά στοιχεία. Μπορείτε να χρησιμοποιήσετε HLOOKUP για να κάνετε το ίδιο πράγμα για έναν ή περισσότερους σειρές από τα στοιχεία. Βασικά κατά χρησιμοποίηση VLOOKUP, το ρωτάτε ότι «εδώ είναι μια αξία, βρίσκει εκείνη την αξία σε αυτό το άλλο σύνολο στοιχείων, και έπειτα την επιστροφή σε με η αξία μιας άλλης στήλης σε εκείνο το ίδιο σύνολο στοιχείων.»
Έτσι δύναμη ρωτάτε πώς αυτό μπορεί να είναι χρήσιμο; Καλά, πάρτε παραδείγματος χάριν, ο ακόλουθος υπολογισμός με λογιστικό φύλλο (spreadsheet) δειγμάτων Έχω δημιουργήσει για αυτό το σεμινάριο. Ο υπολογισμός με λογιστικό φύλλο (spreadsheet) είναι πολύ απλός: ένα φύλλο έχει τις πληροφορίες για τους μερικούς ιδιοκτήτες αυτοκινήτων όπως το όνομα, η ταυτότητα του αυτοκινήτου, το χρώμα και η ιπποδύναμη. Το δεύτερο φύλλο έχει την ταυτότητα των αυτοκινήτων και των πραγματικών πρότυπων ονομάτων τους. Το κοινό στοιχείο στοιχείων μεταξύ των δύο φύλλων είναι η ταυτότητα αυτοκινήτων
Τώρα εάν θέλησα να επιδείξω το όνομα του αυτοκινήτου στο φύλλο 1, μπορώ να χρησιμοποιήσω VLOOKUP στη συμβούλευση κάθε αξία στο φύλλο ιδιοκτητών αυτοκινήτων, να διαπιστώσει ότι αξία στο δεύτερο φύλλο, και επιστρέφω έπειτα τη δεύτερη στήλη (το πρότυπο αυτοκινήτων) ως επιθυμητή αξία μου. Τόσο πώς πηγαίνετε για αυτό; Καλά πρώτα θα πρέπει να εισαγάγετε τον τύπο στο κύτταρο H4. Ειδοποίηση ότι έχω εισαγάγει ήδη τον πλήρη τύπο στο κύτταρο F4 μέσω F9. Θα περπατήσουμε μέσω αυτό που κάθε παράμετρος σε εκείνο τον τύπο σημαίνει πραγματικά.
Εδώ είναι τι ο τύπος μοιάζει με πλήρη:
=VLOOKUP (B4, Sheet2! $A: $B, 2, ΨΕΥΤΙΚΑ)
Υπάρχουν 5 μέρη σε αυτήν την λειτουργία:
1. =VLOOKUP - = Δείχνει ότι αυτό το κύτταρο περιέχει μια λειτουργία και στην περίπτωσή μας που είναι η λειτουργία VLOOKUP για να ψάξει μέσω μιας ή περισσότερων στηλών των στοιχείων.
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.
3. Sheet2!$A:$B - The range of cells on Sheet2 that we want to search through to find our search value in B4. Since the range resides on Sheet2, we need to precede the range with the name of the sheet followed by an !. 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. 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. 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. 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. If you set it to True, Excel will look for the closest match. If it’s set to False and Excel cannot find an exact match, it will return #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.
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. 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.

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. It simply kept adding 1 to the row numbers. 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: vlookup, vlookup function, how to use vlookup, vlookup help, vlookup examples, vlookup tutorial
If you enjoyed this post, make sure you subscribe to my RSS feed!
» Filed Under MS Office Tips
Related Posts
- How to use Data Validation in Microsoft Excel to create dropdown lists
- Excel Basics - How to use the Conditional Sum wizard
- Microsoft Excel Basics Tutorial - Learning how to use Excel
- Excel Tips & Tricks - How to unprotect only a portion of an Excel spreadsheet
- Excel Tutorial - How to make a simple graph or chart in Excel
























