Professional Documents
Culture Documents
E002 Andrew
Lookup functions
Vlookup
Hlookup
Index
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.
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
Do Vlookup and in the same cell, multiply it with total gallons sold
Table 1
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
RANGES
507 - 20th Ave. E. Apt. 2A Seattle 98122 USA (206) 555-9857 5467
722 Moss Bay Blvd. Kirkland 98033 USA (206) 555-3412 3355
4110 Old Redmond Rd. Redmond 98052 USA (206) 555-8122 5176
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
array1
headings
Employee Details
Emp ID E008
Employee Details
Emp ID E009
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
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