You are on page 1of 28

1 2 3 4

ID Employee Name Address Frequency


154 Paige Jones 427 John A. Creighton Boulevard Anytown, USA 12345 26
240 Elijah Ward 888 192nd Street Anytown, USA 12345 26
319 Elizabeth Marshall 530 Dodge Street Anytown, USA 12345 52
331 Cooper Smith 271 Dodge Street Anytown, USA 12345 12
428 Isabella Harris 715 136th Street Anytown, USA 12345 26
451 Kaylee Perez 772 North 30th Street Anytown, USA 12345 12
527 Kimberly Hall 652 Regency Parkway Drive Anytown, USA 12345 12
540 Jesus Clark 803 Fontenelle Boulevard Anytown, USA 12345 52
665 Kylie Woods 245 Fontenelle Boulevard Anytown, USA 12345 26
981 Jackson Stephens 827 Harrison Street Anytown, USA 12345 52
5 6 7 8
Salary Tax Rate Insurance 401k (Retirement Benefits) Employee ID
42,900.00 15% 100.00 8% 319
64,600.00 16% 200.00 7% Employee Address
72,300.00 24% 300.00 3% 530 Dodge Street Anytown, USA 12345
99,700.00 20% 300.00 5%
57,600.00 25% 100.00 5%
82,800.00 23% 200.00 7%
41,700.00 17% 300.00 4%
83,100.00 18% 200.00 5%
70,400.00 21% 100.00 1%
50,200.00 18% 100.00 8%

We want to fill out a simplified paystub

The user will select an employee ID fro


data, the employee’s name, address, a

Note
VLOOKUP(Value you want to look up, r
The FALSE argument tells VLOOKUP to
The secret to VLOOKUP is to organize y
Employee Name Check # Net Pay
Elizabeth Marshall 164 $ 796.99
ployee Address
0 Dodge Street Anytown, USA 12345
Pay (= Salary / Frequency) Deductions
1,390.38 Taxes 251.68
Insurance 300.00
Retirement 41.71

Total $ 593.39

want to fill out a simplified paystub form by pulling the information from this table when an employee’s ID is selected.

e user will select an employee ID from a data validation list in cell L3. From that piece of
a, the employee’s name, address, and other information will be pulled into the form.

OOKUP(Value you want to look up, range where you want to lookup the value, the column number in the range containing the return v
e FALSE argument tells VLOOKUP to return a value only if it finds an exact match.
e secret to VLOOKUP is to organize your data so that the value you look up is to the left of the return value you want to find.
D is selected.

ange containing the return value, Exact Match or Approximate Match – indicated as 0/FALSE or 1/TRUE).

you want to find.


Regional Sales Report
Region 2010 2011 2012 2013 Total
South 1,525,017 1,504,678 1,227,847 1,019,616 5,277,158
Northeast 2,704,237 2,135,564 1,411,782 716,535 6,968,118
North 3,563,687 4,441,886 4,805,431 3,716,674 16,527,678
West 4,489,700 2,651,064 796,330 2,898,601 10,835,695
Mid-Atlantic 2,167,319 1,357,850 776,850 3,024,542 7,326,561
Canada 1,861,239 3,578,280 4,069,389 1,475,301 10,984,209
Total 16,311,199 15,669,322 13,087,629 12,851,269 57,919,419

Region: North
Year: 2011
Sales: 4,441,886
City State Store #
Chandler AZ 6493
Glendale CA 4369 State: NH
Fort Collins CO 4505 City: Manchester
Gainesville FL 8745 Store: 2608
Peoria IL 6273
Indianapolis IN 9384 LOOKUP City: Manchester
Lafayette LA 5654 LOOKUP Store: 2608
Grand Rapids MI 3972
St. Louis MO 8816
Billings MT 3331
Raleigh NC 3335
Manchester NH 2608
Elizabeth NJ 4122
Albuquerque NM 1022
Toledo OH 7681
Tulsa OK 8567
Portland OR 3507
Erie PA 7326
Providence RI 4643
Clarksville TN 8304
Carrollton TX 7676
Tacoma WA 4938
Green Bay WI 1701
Note

Not all tables will have the value that you want to lookup in the leftmost coloum
In this sheet we discuss functions that return values to the right of the value yo
The figure shows the location of the stores by city and state. You need to return
This data set assumes there is only one store per State
There are certain limitations with using VLOOKUP—the VLOOKUP function can

Index requires three arguments.


=INDEX(data range, row number, column number)
Excel goes to the data range and returns you the value in the intersection of th
The INDEX function actually uses the result of the MATCH function as its argum

MATCH Function
The syntax is: =MATCH(Value, Single-column data range, FALSE)
It tells Excel, "Search the data range and tell me the relative row number where
The first arguement is the lookup value: the value we want to find
The second argument of the MATCH function can only be a range that is one ro
The third argument is the Match Type. For exact matches only, set this argume

How to create a drop down list?


kup in the leftmost coloumn.
o the right of the value you are looking up
d state. You need to return the citry and store number when the user selects the state from a drop down list.

he VLOOKUP function can only look up a value from left to right. This means that the column containing the value you look up should a

e in the intersection of the (row number)th row and the (column number)th column.
TCH function as its argument.

elative row number where you find a match for (data).


want to find
y be a range that is one row tall or one column wide. If you send a range that is a rectangle, MATCH returns #N/A error
ches only, set this argument to FALSE or 0.

F:\Teaching\
Information
Technology for
Business
Applications\Misc\
How to create a
Drop Down
List.docx
value you look up should always be located to the left of the column containing the return value. Now if your spreadsheet isn't built th
r spreadsheet isn't built this way, then do not use VLOOKUP. Use the combination of INDEX and MATCH functions instead.
tions instead.
City Chongqing São Paulo Kathmandu Casablanca Lisbon Mumbai
Temp 50 73 48 55 48 73

Your City: Casablanca


Your Temp: 55

INDEX: 55
Honiara Edmonton Anadyr Lhasa
82 12 41 39
Company CEO Salary
Activision Blizzard Inc Robert A. Kotick #N/A
CBS Corp Leslie Moonves 62,157,026
Cheniere Energy Inc Charif Souki #N/A
Credit Acceptance Corp Brett A. Roberts #N/A
Discovery Communications Inc David M. Zaslav #N/A
Disney (Walt) Co Robert A. Iger #N/A
Exxon Mobil Corp R. W. Tillerson 40,266,501
Gamco Investors Inc Mario J. Gabelli 68,970,486
HCA Holdings Inc Richard M. Bracken #N/A
Honeywell International Inc David M. Cote 33,247,178
Jefferies Group Llc Richard B. Handler #N/A
Level 3 Communications Inc James Q. Crowe #N/A
Liberty Interactive Corp Gregory B. Maffei 45,302,040
Mckesson Corp John H. Hammergren 51,744,999
Nike Inc Mark G. Parker 35,212,678
Nuance Communications Inc Paul A. Ricci #N/A
Oracle Corp Lawrence J. Ellison #N/A
Pall Corp Lawrence Kingsley #N/A
Ralph Lauren Corp Ralph Lauren 36,325,782
Tesla Motors Inc Elon Musk #N/A
Viacom Inc Philippe P. Dauman #N/A
Yahoo Inc Marissa A. Mayer 36,615,404
Name 2012 Salary Note
David M. Cote 33,247,178
Gregory B. Maffei 45,302,040 The first table shows a list of companies
John H. Hammergren 51,744,999 The second table shows CEOs and their
Leslie Moonves 62,157,026 A VLOOKUP function is used to combine
Mario J. Gabelli 68,970,486 However, salary information for all of th
Marissa A. Mayer 36,615,404
Mark G. Parker 35,212,678
R. W. Tillerson 40,266,501
Ralph Lauren 36,325,782
able shows a list of companies and CEOs.
d table shows CEOs and their salaries
P function is used to combine the two tables
salary information for all of the CEOs are not available, hence the #N/A errors
Company CEO Salary
Activision Blizzard Inc Robert A. Kotick
CBS Corp Leslie Moonves 62,157,026
Cheniere Energy Inc Charif Souki
Credit Acceptance Corp Brett A. Roberts
Discovery Communications Inc David M. Zaslav
Disney (Walt) Co Robert A. Iger
Exxon Mobil Corp R. W. Tillerson 40,266,501
Gamco Investors Inc Mario J. Gabelli 68,970,486
HCA Holdings Inc Richard M. Bracken
Honeywell International Inc David M. Cote 33,247,178
Jefferies Group Llc Richard B. Handler
Level 3 Communications Inc James Q. Crowe
Liberty Interactive Corp Gregory B. Maffei 45,302,040
Mckesson Corp John H. Hammergren 51,744,999
Nike Inc Mark G. Parker 35,212,678
Nuance Communications Inc Paul A. Ricci
Oracle Corp Lawrence J. Ellison
Pall Corp Lawrence Kingsley
Ralph Lauren Corp Ralph Lauren 36,325,782
Tesla Motors Inc Elon Musk
Viacom Inc Philippe P. Dauman
Yahoo Inc Marissa A. Mayer 36,615,404
Name 2012 Salary
David M. Cote 33,247,178 IF ISNA
Gregory B. Maffei 45,302,040
John H. Hammergren 51,744,999 F:\Teaching\
Information Technology for Bu
Leslie Moonves 62,157,026
Mario J. Gabelli 68,970,486
Marissa A. Mayer 36,615,404
Mark G. Parker 35,212,678
R. W. Tillerson 40,266,501
Ralph Lauren 36,325,782
Region Department Manager Budget
Mid-Atlantic Legal Jose Palmer 4,406,018
Canada Legal Audrey Washington 2,564,165
North Logistics Samantha Allen 1,443,535
Mid-Atlantic Customer Service Katherine Nichols 2,834,014
Pacific Northwest Quality Asurance David Gordon 1,119,596
Mid-Atlantic Operational Lillian Hart 2,949,401
Mid-Atlantic Sales Claire Peterson 2,371,246
East Inventory Hannah Porter 3,043,499
Mid-Atlantic Services Victoria Gomez 1,621,716
South Accounting Brooke Bailey 697,697
Mid-Atlantic Insurance Layla Green 1,458,914
North Sales Alex Cox 2,922,128
North Business Development Genesis Mills 3,699,755
South Business Development Isaac Chavez 930,133
Pacific Northwest Services Adam Howard 2,609,312
South Quality Asurance Evelyn Burns 1,660,933
Mid-Atlantic Business Development Jack Black 644,173
Pacific Northwest Customer Service Wyatt Harris 4,487,298
Mid-Atlantic Marketing Maria Cook 1,391,005
North IT Gianna Freeman 3,660,829
East Market Development Thomas Rivera 2,478,092
Canada Licenses Peyton Powell 4,873,822
South Licenses Eli Marshall 896,582
Canada Management Joseph Jordan 2,069,914
Mid-Atlantic Management Savannah Stone 3,653,753
East Research & Development Adam Cox 4,201,604
Southwest Marketing Kaylee Hart 1,767,245
Southwest Supply Chain Mackenzie Griffin 694,393
East IT Nathaniel Kennedy 759,059
Pacific Northwest IT Riley James 3,122,720
East Legal Jordan Morgan 3,269,238
South Finance Faith Green 1,189,542
Southwest Services Jasmine Cox 2,012,197
Southwest Operational Gabriella West 1,971,418
Canada Purchasing Landon Garcia 2,189,297
Pacific Northwest Inventory Chloe Sanchez 4,822,701
East Sales Anna Greene 2,346,810
Canada Business Development Aaron Myers 3,443,800
Pacific Northwest Marketing Kyle Palmer 1,738,454
South Legal Brooklyn Coleman 2,592,508
Canada Operational Samuel Gardner 2,581,251
North Research & Development Katelyn Marshall 3,825,424
East Customer Service Cole Lee 2,077,279
Region: South
Department: Accounting
Budget: 697,697
Manager: Brooke Bailey
Wages over But not over Base amount Percentage
- 325 - 0.0%
325 1,023 - 10.0%
1,023 3,163 69.80 15.0%
3,163 6,050 390.80 25.0%
6,050 9,050 1,112.56 28.0%
9,050 15,906 195.56 33.0%
15,906 17,925 4,215.03 35.0%
17,925 4,921.68 39.6%

Bi-weekly wage: 2,307.69


Withholding allowances: 2
Allowance: 303.80
Wage less allowance: 2,003.89
Withholding amount: 216.93
Wages over But not over Base amount Percentage
17,925 4,921.68 39.6%
15,906 17,925 4,215.03 35.0%
9,050 15,906 195.56 33.0%
6,050 9,050 1,112.56 28.0%
3,163 6,050 390.80 25.0%
1,023 3,163 69.80 15.0%
325 1,023 - 10.0%
- 325 - 0.0%

Bi-weekly wage: 2,307.69


Withholding allowances: 2
Allowance: 303.80
Wage less allowance: 2,003.89
Withholding amount: #N/A

INDEX and MATCH: 216.93


Married person
Wages over But not over Base amount Percentage
- 325 - 0.0%
325 1,023 - 10.0%
1,023 3,163 69.80 15.0%
3,163 6,050 390.80 25.0%
6,050 9,050 1,112.56 28.0%
9,050 15,906 195.56 33.0%
15,906 17,925 4,215.03 35.0%
17,925 4,921.68 39.6%

Single person
Wages over But not over Base amount Percentage
- 87 - 0.0%
87 436 - 10.0%
436 1,506 34.90 15.0%
1,506 3,523 195.40 25.0%
3,523 7,254 699.65 28.0%
7,254 15,667 1,744.33 33.0%
15,667 15,731 4,520.62 35.0%
15,731 4,543.02 39.6%

Married or Single: Single


Bi-weekly wage: 4,038.46
Withholding allowances: 3
Allowance: 455.70
Wage less allowance: 3,582.76
Withholding amount: 716.38
Regional Sales Report
Region 2010 2011 2012 2013 Total
South 1,525,017 1,504,678 1,227,847 1,019,616 5,277,158
Northeast 2,704,237 2,135,564 1,411,782 716,535 6,968,118
North 3,563,687 4,441,886 4,805,431 3,716,674 16,527,678
West 4,489,700 2,651,064 796,330 2,898,601 10,835,695
Mid-Atlantic 2,167,319 1,357,850 776,850 3,024,542 7,326,561
Canada 1,861,239 3,578,280 4,069,389 1,475,301 10,984,209
Total 16,311,199 15,669,322 13,087,629 12,851,269 57,919,419

Region: Mid-Atlantic
Year:
Sales: 7,326,561
Invoice # Item Count Amount
IN6787 53 555.73
IN4374 160 940.56 Last Invoice Last Amount
IN5061 40 3,026.10 IN6513 3,326.98
IN4305 146 4,885.94
IN1477 84 969.46
IN5552 97 2,979.33
IN8685 200 2,950.74
IN1491 40 3,970.50
IN2408 155 3,332.94
IN6513 75 3,326.98

You might also like