You are on page 1of 11

Syntax

IF(logical_test, value_if_true,value_if_false)

English Remark Remedial? Maths Remark


Ron 48 80
Manson 18 77
James 66 49
Julie 60 30
Don 76 27
June 55 41
Emily 15 66

Sales Goal $ 150,000.00


Comm Rate 0.05%
Bonus Rate 6.25%

Sales Rep. Sales Comm. Earned


Emela $ 149,000.00
April $ 198,322.00
Megan $ 120,933.00
Grace $ 98,700.00
Glory $ 134,899.00
James $ 149,500.00
Julian $ 167,000.00
Debbie $ 122,500.00

Sales Rep Qtr1 Qtr2 Qtr3 Qtr4 Total


Caleb 8195 7000 8223 4900
Sharon 6738 8700 2395 6738
Robert 9500 6651 1043 2093
Romell 1225 5429 6700 9832
Joshua 1348 7419 2500 1225
Total 27006 35199 20861 24788

Budget Example
Budget Amt $ 100.00
Tasks Expenses Within Budget/Over Budget
Task1 $ 200.00
Task2 $ 50.00
Task3 $ 100.00
Task4 $ 60.00

Multiple Ifs
<100 Within Budget
>100 Over Budget
100 Exact Budget

Budget Amt $ 100.00


Tasks Expenses Within Budget/Over Budget/Exact Budget
Task1 $ 200.00
Task2 $ 50.00
Task3 $ 100.00
Task4 $ 60.00

If Average Score is Then return Students Mark Grade


Greater than 89 A Alex 90
From 80 to 89 B Bean 75
From 70 to 79 C Carol 66
From 60 to 69 D Deana 40
Less than 60 F
Remedial?
Syntax
AND(logical1,logical2,…)

Formula Used Result


=AND(TRUE,TRUE) 1

Data Result
100 Out of range =IF(AND(1<A11,A11<100),"In range", "Out of range")

Extra 10% for Sales and Status=2 STAFF ONLY

Last Name First Name Hire Date Department Status


Abramas Alice 11/30/1992 Sales 2
Adelheim John 11/18/1988 Administration 2
Albrecht Horst 11/21/1997 Production 2
Bachman Vance 12/15/1997 Development 7
Baker Amy 5/9/1986 Production 4
Baker Christine 7/28/1988 Administration 4
Callaghan Ronald 9/22/1998 Development 2
Caracio Terry 4/15/1992 Sales 2
Carpenter John 5/27/1993 Sales 2
Davis Henry 9/2/1993 Production 2
Deal Laura 5/17/1995 Production 2
Deibler Karl 9/22/1990 Development 2
Eastburn George 6/17/1998 Administration 3
Edwards Fred 9/13/1998 Sales 4
Edwards Susan 1/19/1996 Sales 2
Faraco Janice 12/22/1993 Sales 2
Feldgus Ernest 11/21/1989 Sales 2
Fimbel Josephine 9/22/1997 Production 2
Fredericks Miller 10/5/1978 Production 3
Johnson Jon 1/10/1982 Administration 3
Killough Frank 12/15/1983 Sales 7
Messick Steve 1/8/1982 Production 3
Parker Paul 4/5/1972 Production 2
Roy Audrey 8/17/1973 Production 2
Sticklebaugh Wendy 6/24/1978 Production 3
Trimbach Doug 11/24/1968 Production 2
Wang Will 2/27/1993 Production 4
Weinstein Perry 8/31/1981 Sales 3
Out of range") 2
3
4
7

AND
Salary New Salary
$25,000 27500
$23,000
$27,500
$45,000
$19,000
$22,000
$62,000
$33,000
$32,000
$28,000
$30,000
$24,000
$50,000
$35,000
$35,000
$29,000
$24,000
$40,000
$40,000
$25,000
$45,000
$28,000
$48,000
$21,000
$32,000
$16,000
$22,000
$32,000
Syntax
OR(logical1,logical2,…)

Formula Used Result


=OR(TRUE) 1

Data Result
100 Out of range =IF(AND(1<A11,A11<100),"In range", "Out of range")

Either Sales or Status=2 will get another 10% more

Last Name First Name Hire Date Department Status


Abramas Alice 11/30/1992 Sales 2
Adelheim John 11/18/1988 Administration 2
Albrecht Horst 11/21/1997 Production 2
Bachman Vance 12/15/1997 Development 7
Baker Amy 5/9/1986 Production 4
Baker Christine 7/28/1988 Administration 4
Callaghan Ronald 9/22/1998 Development 2
Caracio Terry 4/15/1992 Sales 2
Carpenter John 5/27/1993 Sales 2
Davis Henry 9/2/1993 Production 2
Deal Laura 5/17/1995 Production 2
Deibler Karl 9/22/1990 Development 2
Eastburn George 6/17/1998 Administration 3
Edwards Fred 9/13/1998 Sales 4
Edwards Susan 1/19/1996 Sales 2
Faraco Janice 12/22/1993 Sales 2
Feldgus Ernest 11/21/1989 Sales 2
Fimbel Josephine 9/22/1997 Production 2
Fredericks Miller 10/5/1978 Production 3
Johnson Jon 1/10/1982 Administration 3
Killough Frank 12/15/1983 Sales 7
Messick Steve 1/8/1982 Production 3
Parker Paul 4/5/1972 Production 2
Roy Audrey 8/17/1973 Production 2
Sticklebaugh Wendy 6/24/1978 Production 3
Trimbach Doug 11/24/1968 Production 2
Wang Will 2/27/1993 Production 4
Weinstein Perry 8/31/1981 Sales 3
Out of range")

Salary New Salary


$25,000 27500
$23,000
$27,500
$45,000
$19,000
$22,000
$62,000
$33,000
$32,000
$28,000
$30,000
$24,000
$50,000
$35,000
$35,000
$29,000
$24,000
$40,000
$40,000
$25,000
$45,000
$28,000
$48,000
$21,000
$32,000
$16,000
$22,000
$32,000

You might also like