0% found this document useful (0 votes)
4 views30 pages

Logical Assignment

The document provides an overview of various Excel functions including IF, AND, OR, NOT, IFERROR, and XOR, explaining their syntax, purpose, and examples of usage. It highlights how these functions can be used for decision-making, error handling, and logical tests in spreadsheets. Additionally, it discusses the differences between these functions and how they can be combined for more complex logic.

Uploaded by

Såmarth Tyagi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views30 pages

Logical Assignment

The document provides an overview of various Excel functions including IF, AND, OR, NOT, IFERROR, and XOR, explaining their syntax, purpose, and examples of usage. It highlights how these functions can be used for decision-making, error handling, and logical tests in spreadsheets. Additionally, it discusses the differences between these functions and how they can be combined for more complex logic.

Uploaded by

Såmarth Tyagi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 30

Name Samarth Tyagi

ID 2025/10759
Course Name DS

IF Function:

Question01- What is the basic syntax of the IF function in Excel?

Answer 01 The syntax of the "IF" function is as follows:


=IF(logical_test, value_if_true, value_if_false)

Name Maths science


Samarth 63 53
Aryan 38 37
Ishita 74 65
Parag 75 49

Question 02- How does the IF function work in Excel, and what is its primary purp

Answer 02 The if function is used to make decisions according to conditions.It checks the condition and r
Primary purpose of "IF" function is helping in decision making

Example:
EMPLOYEE NAME CREDIT Rating
Surya 4.0
Pratyaksh 5.5
Purva 6.5
Samarth 3.0

Question 03- Provide an example of using the IF function to conditionally format c

Answer 03- EXAMPLE- Imagine you are hosting a party and you have invited the guests.Now,y
so creating to table where if guest is going to attend the party then it w

Guest Age
Samarth 21
Aryan 32
Ishita 35
Parag 29
Surya 44

Question 04- What is the difference between the IF function and the IFS function

Answer 04- IF function is used for single condition on the other hand IFS function is used for multiple con

Name Math English


Samarth 36 37
Aryan 50 62
Ishita 56 65
Parag 89 50
Surya 75 88
Pratyaksh 78 52
Purva 96 59

Question 05- How can you nest multiple IF functions to create more complex logic

Answer 05- Nested IF in excel is when we used multiple ifs for multiple conditions

Name Math English


Samarth 36 37
Aryan 50 62
Ishita 56 65
Parag 89 50
Surya 75 88
Pratyaksh 78 52
Purva 96 59

AND FUNCTION:

Question 01- Explain the purpose of the AND function in Excel, and how is it used

Answer 01- AND function shows that if all the given condition is TRUE,then it will give TRUE. If any conditi

NAME SCIENCE
Samarth 83
Aryan 1
Ishita 42
Parag 46
Surya 84
Pratyaksh 4
Purva 65

Question 02- Provide an example of using the AND function to check if multiple co

Answer 02 CUSTOMER NAME TOTAL BILL DIFFERENT PRODUCT


SAMARTH 2000 2
ARYAN 20500 4
ISHITA 13000 5
PARAG 30000 12
SURYA 23400 9
PRATYAKSH 700 1
PURVA 33000 13
SAMARTH 44200 15
ARYAN 1200 2
ISHITA 21000 10

Question 03- What happens if you use the AND function with only one logical con

Answer 03- If we use AND function with only one logical condition in excel then it will automatically retur
If value satisfy the condition it will automatically return true

NAME CREDIT RATING CREDIT RATING>5.0


SAMARTH 5.1 TRUE
ARYAN 5.5 TRUE
ISHITA 6.0 TRUE
PARAG 3.0 FALSE
SURYA 6.2 TRUE

Question 04- How can you use the AND function in conjunction with the IF functio

Answer 04-

OR FUNCTION:

Question 01- What is the primary use of the OR function in Excel, and how does it

Answer 01- OR function shows TRUE even if single condition is TRUE and shows FALSE If all conditions are
wheres, AND functions shows TRUE if all the conditions are TRUE otherwise it shows FALSE

Question 02- Give an example of using the OR function to check if at least one of

Answer 02 S.NO CUSTOMER NAME TOTAL BILL


1 ISHITA 21000
2 PARAG 20500
3 SURYA 13000
4 PRATYAKSH 30000
5 PURVA 23400
6 SAMARTH 700
7 ARYAN 33000

Question 03- Explain how the NOT function can be combined with the OR function

Answer 03- When we use NOT function,it will reverse the value of OR function

S.NO CUSTOMER NAME TOTAL BILL


1 ISHITA 21000
2 PARAG 20500
3 SURYA 13000
4 PRATYAKSH 30000
5 PURVA 23400
6 SAMARTH 700
7 ARYAN 33000

NOT FUNCTION:

Question 01- Describe the purpose of the NOT function in Excel and its role in log

Answer 01- NOT function in excel is used to reverse the value. It works only single condtion

NAME SALARY >25000


SAMARTH 28000 FALSE
ARYAN 30000 FALSE
ISHITA 22000 TRUE
PARAG 18000 TRUE

Question 02- Provide an example of using the NOT function to reverse the outcom

Answer 02 S.NO CUSTOMER NAME TOTAL BILL


1 ISHITA 21000
2 PARAG 20500
3 SURYA 13000
4 PRATYAKSH 30000
5 PURVA 23400
6 SAMARTH 700
7 ARYAN 33000

Question 03- How does the NOT function affect logical expressions that contain o

Answer 03- #NOT function with AND

NAME CREDIT RATING CREDIT RATING>5.0


SAMARTH 5.1 1
ARYAN 5.5 TRUE
ISHITA 6.0 TRUE
PARAG 3.0 FALSE
SURYA 6.2 TRUE

#NOT function with OR

S.NO CUSTOMER NAME TOTAL BILL


1 ISHITA 21000
2 PARAG 20500
3 SURYA 13000
4 PRATYAKSH 30000
5 PURVA 23400
6 SAMARTH 700
7 ARYAN 33000

IFERROR FUNCTION:

Question 01- What is the IFERROR function in Excel, and when would you use it?

Answer 01- IFERROR function is used to handle errors in formulas when an error occurs.It is used to hand
data.

Question 02- Provide an example of using the IFERROR function to handle errors

Answer 02 EMP_ID SALES TARGET TOTAL SALE


1010 374
1011 17
1012 823
1013 1355 1985
1014 172 1467

Question 03- How can you nest the IFERROR function with other functions, like IF

Answer 03-

XOR FUNCTION:

Question 01- What is the XOR function in Excel, and in what situations would you
Answer 01- XOR Function is used at the place of OR but with multiple condition. It is use to check whethe
of two conditions is true but not both.

Question 02- Provide an example of a logical test where the XOR function is the m

Answer 02 Computer Hard Drive RAM


PC1 512 4
PC2 1000 6
PC3 512 8
PC4 360 8
PC5 128 4
PC6 512 4
PC7 360 6
PC8 512 8

Question 03- You have a list of student scores in column A, and you want to calcu

Answer 03- NAME MARKS GRADE


SAMARTH 98 A
ARYAN 82 B
ISHITA 23 F
PARAG 76 C
SURYA 71 C
PRATYAKSH 81 B
PURVA 45 F

Question 04- In a sales dataset, you want to determine if a sale is considered a "L

Answer 04- ORDER AMOUNT SALES


$ 1,101.00 Large Sale
$ 796.00 Small Sale
$ 1,338.00 Large Sale
$ 1,333.00 Large Sale
$ 840.00 Small Sale
$ 1,233.00 Large Sale
$ 626.00 Small Sale

Question 05- You have a list of job applicants, and you want to filter those who m

Answer 05- Name Qualificaton Experience


SAMARTH Bachelors 4
ARYAN Masters 2
ISHITA Masters 2
PARAG Bachelors 5
SURYA Bachelors 5
PRATYAKSH Masters 5
PURVA Masters 4

Question 06- In a project management sheet, you want to check whether a task i

Answer 06- Task Submition Completion


1 Submitted Incomplete
2 Submitted Completed
3 Overdue Completed
4 Submitted Completed
5 Submitted Completed
6 Overdue Completed
7 Submitted Incomplete
8 Overdue Incomplete

IMPORTANT QUESTION

Question 01- What are logical functions in Excel, and how are they used in spread

Answer 01- Logical function in excel is used to help in making decision according to the condition. Return

Some logical function are- IF , NESTED IF, AND ,OR , NOT , XOR etc

Question 02- Can you explain the primary differences between the IF, AND, and O

Answer 02 IF Function=The if function is used to make decisions according to conditions.It checks the co

AND Function= It Checks Whether all arguments are true then return true if any of the argum

OR Function= It Checks Whether any of the arguments are True and return True or False retu

Question 03- When would you use the IF function in Excel, and can you provide a

Answer 03- The "IF" function is a powerful logical function in Excel that allows you

EXAMPLE-
Name Maths
Samarth 63
Aryan 38
Ishita 74
Parag 75
Question 04- How can the IF function be nested within itself to create more comp

Answer 04- Product Price QTY


Computer 42112 3
Laptop 45782 2
Mobile 25142 4
Charger 1500 4
Power bank 1200 1
Earbuds 2500 2

Question 05- Describe the purpose of the AND function in Excel. Give an example

Answer 05- AND Function= It Checks Whether all arguments are true then return true if any of the argum

NAME SCIENCE MATHS


Samarth 83 88
Aryan 1 10
Ishita 42 97
Parag 46 6
Surya 84 79
Pratyaksh 4 78
Purva 65 19

Question 06- When is the OR function typically employed in Excel, and how does

Answer 06- OR function shows TRUE even if single condition is TRUE and shows FALSE If all conditions are

S.NO CUSTOMER NAME TOTAL BILL


1 ISHITA 21000
2 PARAG 20500
3 SURYA 13000
4 PRATYAKSH 30000
5 PURVA 23400
6 SAMARTH 700
7 ARYAN 33000

Question 07- How does the NOT function work in Excel, and can you provide an e

Answer 07- NOT function in excel is used to reverse the value. It works only single condtion

EXAMPLE-

S.NO CUSTOMER NAME TOTAL BILL


Column1 Column2 Column3
1 ISHITA 21000
2 PARAG 20500
3 SURYA 13000
4 PRATYAKSH 30000
5 PURVA 23400
6 SAMARTH 700
7 ARYAN 33000
Question 08- In Excel, what is the function that helps handle errors in formulas, a

Answer 08- IFERROR function in Excel is used to handle errors in formulas when an error occurs.It is used
data.

EMP_ID SALES TARGET TOTAL SALE


1010 374
1011 17
1012 823
1013 1355 1985
1014 172 1467
English Total Marks
76 192
40 115
72 211
27 151

d what is its primary purpose?

tions.It checks the condition and return the values in "TRUE" and "FALSE"

CREDIT
NO Credit
NO Credit
Extend Credit
NO Credit

n to conditionally format cells based on a specific criteria.

you have invited the guests.Now,you want to check which one of the guest are coming
going to attend the party then it will change color of the cell to green otherwise red

Attending party Color


No
Yes
Yes
No
Yes

tion and the IFS function in Excel?

S function is used for multiple condditions

Science SST
62 73
42 25
34 30
30 87
39 41
64 43
76 99

create more complex logical tests in Excel?

Science SST
62 73
42 25
34 30
30 87
39 41
64 43
76 99

Excel, and how is it used in logical tests?

hen it will give TRUE. If any condition is FALSE,then it will give FALSE

MATHS ENGLISH
88 70
10 9
97 27
6 84
79 53
78 71
19 44

ion to check if multiple conditions are met simultaneously.

if customer bill>20000 AND different product>=10 Discount -30%


FALSE
FALSE
FALSE
TRUE
FALSE
FALSE
TRUE
TRUE
FALSE
TRUE

with only one logical condition in Excel?

cel then it will automatically return true.

unction with the IF function to create more complex logical tests?

in Excel, and how does it differ from the AND function?

d shows FALSE If all conditions are FALSE


TRUE otherwise it shows FALSE

to check if at least one of multiple conditions is true.

PRODUCT Total bill>15000 or Product>=4


5 TRUE
2 TRUE
4 TRUE
6 TRUE
3 TRUE
1 FALSE
4 TRUE

bined with the OR function to negate logical conditions in Excel.

PRODUCT Total bill>15000 or Product>=4


5 1
2 TRUE
4 TRUE
6 TRUE
3 TRUE
1 FALSE
4 TRUE

n Excel and its role in logical tests.

only single condtion

ion to reverse the outcome of a logical test.

PRODUCT Total bill>15000 or Product>=4


5 1
2 TRUE
4 TRUE
6 TRUE
3 TRUE
1 FALSE
4 TRUE

xpressions that contain other functions like AND or OR?

Using NOT func. With AND


FALSE
FALSE
FALSE
TRUE
FALSE

PRODUCT Total bill>15000 or Product>=4


5 1
2 TRUE
4 TRUE
6 TRUE
3 TRUE
1 FALSE
4 TRUE

when would you use it?

n an error occurs.It is used to handle invalid

unction to handle errors in formulas.

IFERROR
Wrong Data
0
Wrong Data
0.682619647355164
0.117246080436264

th other functions, like IF or VLOOKUP, to manage errors in your worksheets?

what situations would you use it?


ondition. It is use to check whether only one

the XOR function is the most suitable choice.

Result OR Result XOR


1 1
TRUE 0
TRUE FALSE
TRUE TRUE
FALSE FALSE
TRUE TRUE
TRUE TRUE
TRUE FALSE

A, and you want to calculate the grade for each student based on the following criteria: A for scores a

f a sale is considered a "Large Sale" if the order amount is greater than $1,000, and "Small Sale" if it's

want to filter those who meet at least one of the two criteria: they have either a Master's degree or mor

Eligiblity
Not Eligible
Eligible
Eligible
Not Eligible
Not Eligible
Eligible
Eligible

to check whether a task is overdue or incomplete. A task is overdue if the due date has passed (Colum

Result
Pending
Done
Pending
Done
Done
Pending
Pending
Pending

w are they used in spreadsheets?

according to the condition. Return value in TRUE or FALSE according to the conditon

etween the IF, AND, and OR functions in Excel?

ding to conditions.It checks the condition and return the values in "TRUE" and "FALSE"

hen return true if any of the arguments is false so retrun false.

True and return True or False return False if all arguments are false.

el, and can you provide an example of a real-world scenario where it is beneficial?

on in Excel that allows you to perform different calculations or actions based on a specified condition. I

science English
53 76
37 40
65 72
49 27
self to create more complex logical tests?

Total
126336
91564
100568
6000
1200
5000

n Excel. Give an example of a situation where it would be useful.

hen return true if any of the arguments is false so retrun false.

ENGLISH Result
70 PASS
9 FAIL
27 FAIL
84 FAIL
53 PASS
71 FAIL
44 FAIL

d in Excel, and how does it work in logical tests?

d shows FALSE If all conditions are FALSE

PRODUCT Total bill>15000 or Product>=4


5 TRUE
2 TRUE
4 TRUE
6 TRUE
3 TRUE
1 FALSE
4 TRUE

and can you provide an example of how it can be used to manipulate logical conditions?

only single condtion

PRODUCT Total bill>15000 or Product>=4


Column4 Column5
5 1
2 TRUE
4 TRUE
6 TRUE
3 TRUE
1 FALSE
4 TRUE
ndle errors in formulas, and can you explain how it works?

as when an error occurs.It is used to handle invalid

IFERROR
Wrong Data
0
Wrong Data
0.682619647355164
0.117246080436264
Percentage Result
64% Pass
38% Fail
70% Pass
50% Pass

according to their ag

Hindi Total Marks Percentage Grade(if) Grade(IFS)


48 256 51.20% Pass Second
44 223 44.60% Fail Third
27 212 42.40% Fail Third
93 349 69.80% Pass First
76 319 63.80% Pass First
36 273 54.60% Pass Second
55 385 77.00% Pass Distinction

Hindi Total Marks Percentage Grade(Nested if)


48 256 51.20% SECOND
44 223 44.60% THIRD
27 212 42.40% THIRD
93 349 69.80% FIRST
76 319 63.80% FIRST
36 273 54.60% SECOND
55 385 77.00% DISTINCTION

Result
PASS
FAIL
FAIL
FAIL
PASS
FAIL
FAIL
Using NOT Function
FALSE
FALSE
FALSE
FALSE
FALSE
TRUE
FALSE

Using NOT Function


FALSE
FALSE
FALSE
FALSE
FALSE
TRUE
FALSE
Using NOT Function
FALSE
FALSE
FALSE
FALSE
FALSE
TRUE
FALSE
IF Function
Consider
Not Consider
Not Consider
Consider
Not Consider
Consider
Consider
Not Consider

g criteria: A for scores above 90, B for scores between 80 and 90, C for scores between 70 and 79, and

0, and "Small Sale" if it's $1,000 or less. Use the IF function to categorize the sales accordingly.

a Master's degree or more than five years of experience. How would you use the OR function to filter th
date has passed (Column A), or it's incomplete (Column B). How can you use the OR function to identif

n a specified condition. It helps you make decisions and automate tasks within your spreadsheet.

Total Marks Percentage Result


192 64% Pass
115 38% Fail
211 70% Pass
151 50% Pass
onditions?

Using NOT Function


Column6
FALSE
FALSE
FALSE
FALSE
FALSE
TRUE
FALSE
according to their ag if age is less than 30 they won't attend the party otherwise they will attend
etween 70 and 79, and F for scores below 70. Write an Excel formula using the IF function to accomplis

es accordingly.

OR function to filter the applicants who meet these conditions?


OR function to identify tasks that meet these criteria?

our spreadsheet.
F function to accomplish this.

You might also like