Sunteți pe pagina 1din 1

Excel Function Dictionary 1998 - 2000 Peter Noneley A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 B C D E F G H

LOOKUP (Vector) Page 1 of 1 I J

LOOKUP (Vector)
Name Alan Bob Carol David Eric Francis Gail Jan 10 20 30 40 50 60 70 Feb 80 90 100 110 120 130 140 Eric 120 =LOOKUP(F12,D4:G10,F4:F10) Mar 97 69 45 51 77 28 73

Type a Name in this cell : The Feb value for this person is :

What Does It Do ? This function looks for a piece of information in a list, and then picks an item from a second range of cells. Syntax =LOOKUP(WhatToLookFor,RangeToLookIn,RangeToPickFrom) The WhatToLookFor should be a single item. The RangeToLook in can be either horizontal or vertical. The RangeToPickFrom must have the same number of cells in it as the RangeToLookin. Be careful not to include unnecessary heading in the ranges as these will cause errors. Formatting No special formatting is needed. Example The following example shows how the =LOOKUP() function was used to match a name typed in cell G41 against the list of names in C38:C43. When a match is found the =LOOKUP() then picks from the second range E38:J38. If the name Carol is used, the match is made in the third cell of the list of names, and then the function picks the third cell from the list of values. RangeToLookIn Alan Bob Carol David Eric Fred RangeToPickFrom 15 20

10

25

30

Type a name : Value :

Carol 15 =LOOKUP(G41,C38:C43,E38:J38)

Problems The list of information to be looked through must be sorted in ascending order, otherwise errors will occur, either as #N/A or incorrect results.

S-ar putea să vă placă și