You are on page 1of 2

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 B C D E F G H I

DGET Page 1 of 2 J

DGET
Product Bulb Neon Spot Other Bulb Spot Spot Other Bulb Neon Bulb Bulb Bulb Bulb Bulb Bulb Wattage 200 100 60 10 80 100 200 25 200 100 100 10 60 80 100 40 Life Hours 3000 2000 8000 1000 unknown 3000 unknown 3000 2000 unknown 800 1000 1000 2000 1000 Brand Horizon Horizon Sunbeam Horizon Horizon Horizon Sunbeam Sunbeam Sunbeam Sunbeam Horizon Sunbeam Sunbeam Horizon Horizon This is the Database range. Box Boxes In Value Of Unit Cost Quantity Stock Stock 4.50 4 3 54.00 2.00 15 2 60.00 0.00 0.80 25 6 120.00 0.20 40 3 24.00 1.25 10 4 50.00 2.50 15 1 37.50 0.50 10 3 15.00 5.00 3 2 30.00 1.80 20 5 180.00 0.25 10 5 12.50 0.20 25 2 10.00 0.15 25 1 3.75 0.20 30 2 12.00 0.80 10 5 40.00 0.10 20 5 10.00

How many boxes of a particular item do we have in stock? Life Hours

Product Bulb

Wattage 100

Brand Horizon 5 =DGET(B3:I19,H3,C23:F24)

The number in stock is :

What Does It Do ? This function examines a list of information and produces one result. If more than one record matches the criteria the error #NUM is shown. If no records match the criteria the error #VALUE is shown. Syntax =DGET(DatabaseRange,FieldName,CriteriaRange) The DatabaseRange is the entire list of information you need to examine, including the field names at the top of the columns. The FieldName is the name, or cell, of the values to Get, such as "Value Of Stock" or I3. The CriteriaRange is made up of two types of information. The first set of information is the name, or names, of the Fields(s) to be used as the basis for selecting the records, such as the category Brand or Wattage. The second set of information is the actual record which needs to be selected, such as Horizon as a brand name, or 100 as the wattage. Formatting No special formatting is needed.

Excel Function Dictionary 1998 - 2000 Peter Noneley A 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 B C D E F Example 1 This example extracts information from just one record. How many boxes of a particular item do we have in stock? Life Hours G H I

DGET Page 2 of 2 J

Product Bulb

Wattage 100

Brand Horizon 5 =DGET(B3:I19,H3,C51:F52)

The number in stock is :

Example 2 This example extracts information from multiple records and therefore shows the #NUM error. How many boxes of a particular item do we have in stock? Life Hours

Product Bulb

Wattage 100

Brand

The number in stock is :

#NUM!

=DGET(B3:I19,H3,C63:F64)

Example 3 This example extracts information from no records and therefore shows the #VALUE error. How many boxes of a particular item do we have in stock? Life Hours

Product Bulb

Wattage 9999

Brand

The number in stock is : #VALUE! =DGET(B3:I19,H3,C64:F65)

Example 4 This example uses the =IF() function to display a message when an error occurs. How many boxes of a particular item do we have in stock? Life Hours

Product Bulb

Wattage 9999

Brand

The number in stock is : #VALUE! =DGET(B3:I19,H3,C85:F86) No such product.


=IF(ISERR(F88),CHOOSE(ERROR.TYPE(F88)/3,"No such product.","Duplicates products found."),"One product found.")

You might also like