You are on page 1of 29

OPERATOR LOGICAL

NAME TYPE DATA 1 DATA 2 APPLICATION RESULT


EQUAL TO = 10 20 IS DATA1=DATA2 0
LESS THAN < 10 20 IS DATA1<DATA2 1
GREATER THAN > 10 20 IS DATA1>DATA2 0
NOT EQUAL TO <> 10 20 IS DATA1<>DATA2 1
LESS THAN OR
<= 10 20 IS DATA1<=DATA2 1
EQUAL TO
GREATER THAN
OR EQUAL TO >= 10 20 IS DATA1>=DATA2 0
If Function has three Parts
PART 1 - Logical Test
PART 2 - Value if PART 1 TRUE
PART 3 - Value if PART 1 FALSE

=IF(PART1, PART2, PART3)

PRODUCT COST If Cost < 5000 then "Very GOOD" Else "BAD"
MOBILE ₹ 11,000 Bad
WEB CAMERA ₹ 2,500 very good
GARMENT ₹ 6,000 bad
SHOES ₹ 4,000 very good
HEADPHONE ₹ 3,900 very good
TV ₹ 20,000 bad
If Function has three Parts FOR OPENING A LOCK, ACTIVITY CODE IN '1001'. GIVE COD
PART 1 - Logical Test ● IF THE CODE IS CORRECT THEN STATUS ' LOCK OPEN
PART 2 - Value if PART 1 TRUE ● IF THE CODE IS CORRECT THEN STATUS ' WRONG CO
PART 3 - Value if PART 1 FALSE
CODEè
=IF(PART1, PART2, PART3) STATUSè
A LOCK, ACTIVITY CODE IN '1001'. GIVE CODE IN GREEN
ODE IS CORRECT THEN STATUS ' LOCK OPEN'
ODE IS CORRECT THEN STATUS ' WRONG CODE'

1001
lock open
Shown below is the Projected Cash inflow of Two Projects. Write a formula in RED CELL to find ou
which project is better. IF cash flow for both Projects is same than it should reflect"Equal CashFlo

Project A Project B
Year 1 12 34
Year 2 16 54
Year 3 34 60
Year 4 56 58
Year 5 60 80
TOTAL CASHFLOW 178 286 PROJECT B IS BETTER
(in ₹ Cr.)
ula in RED CELL to find out
uld reflect"Equal CashFlow"
Find out the division, If above 60% - FIRST , Above 50% - SECOND
Above 33% - THIRD and less than 33% - FAIL (Use Nested IF)

Name MAX Marks Marks Obtained %age Division


Student1 500 380 76 first EXCELLENT
Student2 500 100 20 fail FAIL
Student3 500 390 78 first EXCELLENT
Student4 500 160 32 fail FAIL
Student5 500 260 52 second SECOND
Student6 500 380 76 first EXCELLENT
75 ex
e Nested IF) 60
50
33
33
If I order upto 500 units of product, I pay Rs 3 per unit. If I order between 501-1200units, I
pay Rs 2.70 per unit and If I order 1201-2000 units, I pay Rs 2.30 per unit. If I order more
than 2000 units, I pay Rs 2.00 per unit.
Write a formula (IN RED CELL) to calculate cost for Units Order
Number of units shall be IN GREEN CELL

UNITS COST
limit 1 500 3.00 Units Orderedè 2000
limit 2 1200 2.70 Costè 4600
limit 3 2000 2.30 =IF(G7<=500, G7*C7,
limit 4 >2000 2.00 SOLUTIONè IF(G7<=1200,G7*C8,
IF(G7<=2000,C9*G7,C10*G7)))
If I order upto 500 units of product, I pay $ 3 per unit.
If I order between 501-1200units, I pay $ 2.50 per unit after 500 units but pay $ 3 for first 500 units
If I order 1201-2000 units, I pay $ 2 per unit after 1200 units but pay $ 2.5 for 501-1200 units
If I order more than 2000 units, I pay $ 1.5 per unit after 2000 units.
Write a formula (IN RED CELL) to calculate cost…!! Number of units shall be IN GREEN CELL

UNITS COST MAX COST


limit 1 500 3.00 1500 Units Orderedè 2001
limit 2 1200 2.50 1750 Costè
limit 3 2000 2.00 1600 =IF(H8<=B8,C8*H8,
limit 4 >2000 1.50 IF(H8<=B9,D8+(H8-B8)*C9,
SOLUTION 1è IF(H8<=B10,D8+D9+(H8-B9)*C10,
D8+D9+D10+(H8-B10)*C11)))

=IF(H8<=500,3*H8,
IF(H8<=1200,1500+(H8-500)*2.5,
SOLUTION 2è IF(H8<=2000,1500+1750+(H8-1200)*2,
1500+1750+1600(H8-2000)*1.5)))
00 units
s

*C10,
8-B10)*C11)))

*2.5,
8-1200)*2,
00(H8-2000)*1.5)))
LOGICAL
APPLICATION RESULT
=AND(TRUE, TRUE) 1
=AND(TRUE, FALSE) 0 Apply formula in E6
1 1 =AND(D6>=1,D7<=200)
=AND(1=1,2=2,3=23) 0 Values Result
=AND(2>1,2=2,3<23) 1 0
0
=AND(1,2) 1 200
=AND(0,2) 0
=AND(-1,2) 1 0
LOGICAL APPLICATION RESULT
=OR(TRUE, TRUE) 1
=OR(1=1, 2=2, 3=3) 1 Apply formula in E6
=OR(1=1 , 2=2 , 3=23) 1 =OR(D6>1,D7<200)
=OR(FALSE , FALSE) 0 Values Result
=OR(2>1 , 2=2 , 3<23) 1 0
0
=OR(1 , 2) 1 200
=OR(0 , 0) 1
=OR(-1 , 0) 1
LOGICAL APPLICATION DESCRIPTION RESULT
NOT(FALSE) It gives reverse of False 1
NOT(TRUE) It gives reverse of True 0
NOT(2+2=4) 0
NOT(2+2=1) 1
NOT(0) 0 is false so result will be true 1
A B Check A>B USING NOT
10 20 1
12 10 0
LOGICAL APPLICATION RESULT
=TRUE()
=FALSE()
=TRUE
=FALSE

=IF(10<5,TRUE,) 0
=IF(10<5,TRUE) 0
Apply formula in green cell using IF-AND functions
Display message"IN RANGE" if the value in red cell is (1) more than DATA1 and (2) less
than DATA2
Display message "OUT OF RANGE" if value in red cell if above is not true

DATA 1 DATA 2
-1 200

Supply value Result


1 INRANGE
Sales People need to exceed both SALES AND ACCOUNT GOAL to earn Commission

Criteria Amount
Sales Goal ₹ 500,000
Account Goal 5
Commission Rate 5%

Salesperson Total Sales Accounts Commission


Ramamurty S. ₹ 100,260 9 NO COMMISSION
P K Gulati ₹ 1,500,222 7 75011.1
R S Suneja ₹ 285,660 3 NO COMM
Dev Raj Sharma ₹ 600,649 4 NO COMM
In the game of dice, one dice is tossed.
If value of dice (IN RED CELL) on the roll is 2,3 or 4 than it means a TRUE or
WIN.
If value of dice (IN RED CELL) on the roll is 1,5,6 than it means a LOSS or
FALSE
Write Formula in GREEN CELL to check green cell and decide WIN or LOSS

TOSS RESULT
5 LOSS
In the game, two dice are tossed. If the total (IN GREEN CELL)of the dices on the roll is
● is 2,3 or 12 than it means a LOSS.
● is 7 or 11 than it is a WIN.
● If TOTAL is 4,5,6,8,9,10 than "KEEP PLAYING" otherwise "WRONG DATA"

TOSSè -1
RESULTè WRONGDATA
on the roll is

G DATA"
Sales People need to exceed either Commission OR Account Goals to Earn Commission
Sales People need to exceed both Bonus AND Account Goals to earn Bonus
Criteria Amount
Commission Goal ₹ 500,000
Account Goal 5
Commission Rate 5%
Bonus Goal ₹ 750,000
Bonus% 8%

Salesperson Total Sales Accounts Commission Bonus


Ramamurty S. ₹ 100,260 9 ₹ 5,013.00 NO BONUS
P K Gulati ₹ 1,500,222 7 ₹ 75,011.10 ₹ 120,017.76
R S Suneja ₹ 285,660 3 NO COMM NO BONUS
Dev Raj Sharma ₹ 600,649 4 ₹ 30,032.45 NO BONUS
Apply formula in green cell
Display message"IN RANGE" If the value in red cell is more than A6 and less than A7.
But if not between A6 and A7 than shall display message "OUT OF RANGE".

Values Supply value Result


1
-10
200

=IF(NOT(AND(B6>A6,B6<A7)),"OUT OF RANGE","IN RANGE")


d less than A7.
GE".

NGE","IN RANGE")
IF the dress colour is NOT RED or GREEN, increase NEW PRICE by 10% otherwise LEAVE BLANK

DRESS CATEGORY DRESS COLOUR OLD PRICE


A1 RED ₹ 1,000.00
B2 YELLOW BLUE ₹ 1,800.00
A3 VIOLET ₹ 2,000.00
A1 GREEN ₹ 3,500.00
B3 PURPLE ₹ 4,000.00
A2 WHITE ₹ 1,400.00
B2 BLACK ₹ 3,000.00
ase NEW PRICE by 10% otherwise LEAVE BLANK

NEW PRICE (+10%)

1980
XOR Exclusive OR
For two given logical statements, the XOR function would return -
● TRUE if one of the statements is true
● FALSE if both/all statements are true. ● FALSE if both/all statements are false

LOGICAL APPLICATION RESULT REASON


=XOR(3>1, 1<-1) 1 First argument is TRUE, second is FALSE
=XOR(2>4,3>5) Both are TRUE
=XOR(1<0,2<1) Both are FALSE
=XOR(J7="excel",J8>0) First argument is TRUE, second is FALSE
=XOR(TRUE,TRUE) Both are TRUE
s are false

SE

SE
Use XOR to find out if the teams should play the third game to decide final WIN

TEAM GAME 1 RESULT GAME 2 RESULT SHOULD TEAM PLAY GAME 3


ALPHA LOST WON YES
BRAVO WON WON
CHARLIE LOST LOST
DELTA WON LOST
EARTH LOST WON

You might also like