You are on page 1of 22

Employee ID Last Name First Name Title Birth Date Home Phone

E001 Davolio Nancy Sales Representative 08-Dec-48 (206) 555-9857


E002 Fuller Andrew Vice President, Sales 19-Feb-52 (206) 555-9482
E003 King Janet Sales Representative 30-Aug-63 (206) 555-3412
E004 Peacock Margaret Sales Representative 19-Sep-37 (206) 555-8122
E005 Paul Steven Sales Manager 04-Mar-55 (71) 555-4848

VLOOKUP CAN ONLY DO A LEFT LOOKUP AND NOT A RIGHT LOOKUP

E002 Andrew

Use Data Validation to create the list here

Janet (206) 555-3412

Lookup value should be the first column in the array

3355 Janet Given extn no, get employee n


USE INDEX AND MATCH

Match will give the position, index


Extension
5467 4
3457
3355
5176
3453

Lookup functions
Vlookup
Hlookup
Index
Match

extn no, get employee name


NDEX AND MATCH

will give the position, index will pull out the value)
Pitstop Motors Ltd has service stations in three different towns.
Each service station sells four different types of motor fuel: diesel and premium, regular and unleaded petrol.

The following table shows:


a)      The price per gallon of each fuel type
b)      The number of gallons of each fuel type sold by each service station during one week

Fuel Type Price per Gallon Create a formula to show the amounts earned by the
Diesel 1.43 type of petrol at the service stations.
Premium 2.07
Regular 1.96
Unleaded 1.85

Station Fueltype Total Gallons sold Revenue


Shildon Diesel 740 1058.2 Do Vlookup and in the s
Premium 513 1061.91
Regular 469 919.24
Unleaded 1490 2756.5
Richmond Diesel 2018 2885.74
Premium 988 2045.16
Regular 1863 3651.48
Unleaded 4108 7599.8
Gainford Diesel 1683 2406.69
Premium 784 1622.88
Regular 1008 1975.68
Unleaded 3771 6976.35
nd unleaded petrol.

he amounts earned by the sales of each

Do Vlookup and in the same cell, multiply it with total gallons sold

1058.2 Can also do this using range name 'fuel'


shows the following sales in its four music departments for last week:

USICLAND LTD - Weekly sales analysis

Table 1

Items CD LP Tape Video


Cost price £7.75 £3.85 £4.50 £9.00
Selling price £11.50 £6.75 £7.99 £13.50

Table 2
Item Classical Country Easy Pop/Rock Total Total Total
Listening Sales Cost Price Selling Price
CD 233 91 312 562 1198 £9,284.50 £13,777.00
LP 181 43 241 226 691 £2,660.35 £4,664.25
Tape 163 213 488 729 1593 £7,168.50 £12,728.07
Video 37 72 106 184 399 £3,591.00 £5,386.50

Total

must now carry out the following tasks:


Calculate
1) Total sales
Total Cost Price=
2) Total sales * Cost Price of Item
Total Selling Price=
3) Total sales * Selling Price of Item
Gross Profit=Total
4) Selling Price-Total Cost Price
Gross
Profit s
£4,492.50
£2,003.90
£5,559.57
£1,795.50

Alt + = will give sum


Employee ID Last Name First Name Title Birth Date Hire Date

E001 Davolio Nancy Sales Representative 08-Dec-48 01-May-92

E002 Fuller Andrew Vice President, Sales 19-Feb-52 14-Aug-92

E003 Leverling Janet Sales Representative 30-Aug-63 01-Apr-92

E004 Peacock Margaret Sales Representative 19-Sep-37 03-May-93

E005 Buchanan Steven Sales Manager 04-Mar-55 17-Oct-93

E006 Suyama Michael Sales Representative 02-Jul-63 17-Oct-93

E007 King Robert Sales Representative 29-May-60 02-Jan-94

E008 Callahan Laura Inside Sales Coordinator 09-Jan-58 05-Mar-94

E009 Dodsworth Anne Sales Representative 27-Jan-66 15-Nov-94

RANGES

select list and call it emp


Address City Postal Code Country Home Phone Extension

507 - 20th Ave. E. Apt. 2A Seattle 98122 USA (206) 555-9857 5467

908 W. Capital Way Tacoma 98401 USA (206) 555-9482 3457

722 Moss Bay Blvd. Kirkland 98033 USA (206) 555-3412 3355

4110 Old Redmond Rd. Redmond 98052 USA (206) 555-8122 5176

14 Garrett Hill London SW1 8JR UK (71) 555-4848 3453

Coventry House Miner Rd. London EC2 7JR UK (71) 555-7773 428
Edgeham Hollow
London RG1 9SP UK (71) 555-5598 465
Winchester Way
4726 - 11th Ave. N.E. Seattle 98105 USA (206) 555-1189 2344

7 Houndstooth Rd. London WG2 7LT UK (71) 555-4444 452

array1
headings
Employee Details

Emp ID E008

First Name Laura


Last Name Callahan
Title Inside Sales Coordinator
Birth Date 09-Jan-58
Hire Date 05-Mar-94
Address 4726 - 11th Ave. N.E.
City Seattle
Postal Code 98105
Country USA
Home Phone (206) 555-1189
Extension 2344

Employee Details

Emp ID E009

First Name Anne


Last Name Dodsworth
Title Sales Representative
Birth Date 27-Jan-66
Hire Date 15-Nov-94
Address 7 Houndstooth Rd.
City London
Postal Code WG2 7LT
Country UK
Home Phone (71) 555-4444
Extension 452
The Price of items for diff sizes are given below

USE V LOOKUP AND MATCH


Items Small Med Large
Jackets 250 380 550
Sweaters 150 300 420
Pants 320 460 620

Item Size Price Item Size


Sweaters Large 420
SE V LOOKUP AND MATCH

Price
Customer Date TourName Number of Tickets
Larry 5/22/2000 British Isles 2
Larry 8/14/2000 Europe 21 Days 2
Larry 4/17/2000 Europe 21 Days 2
Chien 10/30/2000 Europe 15 Days 3
Chien 5/29/2000 China 2
Chien 7/10/2000 British Isles 3
Chien 6/19/2000 Historical USA 1
Kathleen 11/6/2000 Europe 21 Days 1
Kathleen 4/3/2000 British Isles 2
Kathleen 1/31/2000 Yucatan 2
Kathleen 3/27/2000 Historical USA 2
Kathleen 12/25/2000 British Isles 1
Kathleen 12/25/2000 British Isles 1
Kathleen 2/28/2000 Europe 10 Days 3
Doug 6/12/2000 African Safari 2
Doug 4/17/2000 Historical USA 3
Doug 12/18/2000 British Isles 1
John 9/4/2000 Europe 15 Days 2
John 11/6/2000 African Safari 2
John 3/13/2000 Europe 15 Days 2
Rebecca 4/17/2000 Western Canada 2
Rebecca 3/13/2000 Europe 21 Days 4
Rebecca 8/14/2000 African Safari 2
Rebecca 4/3/2000 Historical USA 2
Rebecca 10/23/2000 Europe 10 Days 2
Rebecca 3/20/2000 Western Canada 3
Cindy 2/21/2000 Europe 15 Days 3
Cindy 5/29/2000 Europe 21 Days 1
Cindy 7/10/2000 Historical USA 2
Cindy 2/14/2000 Europe 21 Days 2
Papa 2/14/2000 Europe 21 Days 1
Papa 4/3/2000 Yucatan 3
Papa 4/24/2000 African Safari 2
Papa 2/28/2000 Europe 15 Days 4
Papa 7/31/2000 Europe 21 Days 3
Papa 6/19/2000 Russia and the Baltics 1
Papa 2/7/2000 British Isles 1
Robert 3/13/2000 British Isles 3
Robert 3/13/2000 British Isles 2
Robert 3/20/2000 Europe 15 Days 1
Robert 9/11/2000 Historical USA 1
Bart 10/16/2000 Western Canada 2
Bart 3/6/2000 Yucatan 3
Bart 2/7/2000 British Isles 2
Todd 6/5/2000 Russia and the Baltics 2
Todd 1/3/2000 Europe 10 Days 3
Todd 6/26/2000 British Isles 2
Russell 8/14/2000 Europe 21 Days 3
Russell 7/17/2000 Yucatan 2
FirstClass Cost Agent
Yes 4000 Lindquist
No 5900 Black
No 5900 Fuentes
Yes 8400 Fuentes Calculate Cost
No 6300 Norton Cost=Price of tour * no of tickets
No 5250 Norton Price of tour depends on First class
No 1450 Wyatt The tour prices r given on tours sheet
No 2950 Black
rst give next sheet table Yes 4000
a name, then do a simple Fuentes
v lookup to get normal price. Then instead of col index 2, use an if function as col index cound
No 1350 Clay
Yes 3400 Burr
No 1750 Clay
if(E2 =yes,vlookup(c2,prices,3,0),vlookup(c2,priices,2,0)*D2)-----THIS IS ANOTHER WAY OF DOIN
No 1750 Chang
No 5250 Clay
Yes 4600 Chang
Yes 5100 Norton
Yes 2000 Wyatt
Yes 5600 Black
No 3990 Clay
No 4900 Clay
No 1990 Clay
Yes 12800 Clay
No 3990 Black
No 2900 Clay
No 3500 Lindquist
Yes 3600 Wyatt
No 7350 Wyatt
No 2950 Wyatt
Yes 3400 Chang
No 5900 Fuentes
No 2950 Wyatt
No 2025 Chang
Yes 4600 Chang
No 9800 Clay
No 8850 Norton
No 2795 Wyatt
Yes 2000 Chang
No 5250 Clay
No 3500 Clay
No 2450 Norton
No 1450 Wyatt
Yes 2400 Burr
No 2025 Clay
No 3500 Fuentes
Yes 6000 Burr
No 5250 Norton
No 3500 Black
Yes 9600 Fuentes
Yes 2000 Fuentes
our * no of tickets
ends on First class
given on tours sheet

index 2, use an if function as col index cound be 3 or 2 depending upon whether first class is Yes or No

s,2,0)*D2)-----THIS IS ANOTHER WAY OF DOING THIS


TourName Normal Price First Class Price
Europe 10 Days 1750 1950
Europe 15 Days 2450 2800
Europe 21 Days 2950 3200
Yucatan 675 1000
China 3150 3500
Russia and the
Baltics 2795 3000
Western Canada 995 1200
Historical USA 1450 1700
British Isles 1750 2000
African Safari 1995 2300
Caribbean Cruise 675 1100
Marks Grade
0 F
40 E USE VLOOKUP, HERE GIVE THE LAST PARAMETER AS 1 FOR A CLO
50 D
60 C
70 B
80 A

Names Marks Grade


Frank 81 A
Ben 37 F
Joy 55 D
Steve 46 E
Ricky 64 C
Peter 75 B
Andrew 43 E
ST PARAMETER AS 1 FOR A CLOSE MATCH
SumProduct Function

Region Product Quantity Price Rep


North P1 12 10.00 Jones
South P2 10 15.00 Jones
East P3 5 22.00 Gill
West P1 8 10.00 Gill
North P4 4 18.00 Ho
South P2 9 15.00 Ho
East P3 13 22.00 Ho
West P4 15 18.00 Ho
North P1 20 10.00 Ho
Jones
Gill
Jones
1423 this is to get the individual products and sum th #NAME? Gill

Summary
Total sales of P1
select Product array, * with the other 2 arrays Rep
400 Jones
Jones
Gill
Gill
Ho
Ho
Item Price Units
Binders 19.99 3
Pens 1.29 40
Pens 4.99 28
Binders 10.99 33
Binders 15.99 9
Pens 1.99 29
Binders 19.99 39
Pens 1.29 4
Pens 4.99 49
Binders 14.99 49
Binders 15.00 21
Pens 1.99 48
Pens 4.99 28

3129.61
Summary

Item Sales
Binders 794.48
Pens 147.12 use rep = jones*item=bindes*price array * units array
Binders 677.67
Pens 279.44
Binders 923.52
Pens 307.38

You might also like