Professional Documents
Culture Documents
Session10A - Logical Function
Session10A - Logical Function
PRODUCT COST If Cost < 5000 then "Very GOOD" Else "BAD"
MOBILE ₹ 11,000 Bad
WEB CAMERA ₹ 2,500
GARMENT ₹ 6,000
SHOES ₹ 4,000
HEADPHONE ₹ 3,900
TV ₹ 20,000
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
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
(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)
UNITS COST
limit 1 500 3.00 Units Orderedè 2000
limit 2 1200 2.70 Costè
limit 3 2000 2.30 =IF(G7<=500, G7*C7,
limit 4 >2000 2.00 IF(G7<=1200,G7*C8,
SOLUTIONè 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
=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)
=AND(TRUE, FALSE) Apply formula in E6
=AND(D6>=1,D7<=200)
1
=AND(1=1,2=2,3=23) Values Result
=AND(2>1,2=2,3<23) 0
0
=AND(1,2) 1 200
=AND(0,2) 0
=AND(-1,2) 1
LOGICAL APPLICATION RESULT
=OR(TRUE, TRUE)
=OR(1=1, 2=2, 3=3) Apply formula in E6
=OR(D6>1,D7<200)
=OR(1=1 , 2=2 , 3=23)
=OR(FALSE , FALSE) Values Result
=OR(2>1 , 2=2 , 3<23) 0
=OR(1 , 2) 200
=OR(0 , 0) 1
=OR(-1 , 0)
LOGICAL APPLICATION DESCRIPTION RESULT
NOT(FALSE) It gives reverse of False
NOT(TRUE) It gives reverse of True
NOT(2+2=4)
NOT(2+2=1)
NOT(0) 0 is false so result will be true
A B Check A>B USING NOT
10 20
12 10
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
Criteria Amount
Sales Goal ₹ 500,000
Account Goal 5
Commission Rate 5%
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
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%
NGE","IN RANGE")
IF the dress colour is NOT RED or GREEN, increase NEW PRICE by 10% otherwise LEAVE BLANK
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
SE
SE
Use XOR to find out if the teams should play the third game to decide final WIN