Analysis Conditional Logic
Analysis Conditional Logic
1. IF Function
Definition: Returns one value if a condition is true and another value if it’s false.
Assignment:
1. Create a Dataset:
Name Score
Alice 85
Bob 76
Charlie 92
Diana 65
2. Task:
o Drag the formula down to apply it to the other cells. This will mark scores 80 and
above as "Pass" and others as "Fail".
2. IFS Function
Definition: Evaluates multiple conditions and returns a value corresponding to the first true
condition.
Assignment:
1. Create a Dataset:
Name Score
SHIVANJALI DEORE
Alice 85
Bob 76
Charlie 92
Diana 65
2. Task:
o In cell C1, enter the formula: =IFS(B1>=90, "Excellent", B1>=80, "Good", B1>=70,
"Average", TRUE, "Needs Improvement").
o Drag the formula down to apply it to the other cells. This categorizes scores into
different performance levels.
3. SWITCH Function
Definition: Evaluates an expression against a list of values and returns the result corresponding
to the first match.
Assignment:
1. Create a Dataset:
Grade
2. Task:
o In cell B1, enter the formula: =SWITCH(A1, "A", "Excellent", "B", "Good", "C",
"Average", "D", "Below Average", "Unknown").
o Drag the formula down to apply it to the other cells. This will translate letter
grades into descriptive performance levels.
4. SUMPRODUCT Function
Definition: Multiplies corresponding components in given arrays and returns the sum of those
products.
Assignment:
1. Create a Dataset:
SHIVANJALI DEORE
Quantity Price
10 5
15 3
8 7
2. Task:
o This will calculate the total revenue (Quantity * Price) for the items.
5. Conditional SUMPRODUCT
Definition: Uses SUMPRODUCT with conditions to sum products based on specific criteria.
Assignment:
1. Create a Dataset:
A 10 5
B 15 3
A 8 7
B 12 6
2. Task:
6. LET Function
Definition: Allows you to define and name calculation results to use in a formula, improving
readability and performance.
Assignment:
1. Create a Dataset:
Value1 Value2
10 5
20 15
SHIVANJALI DEORE
30 25
2. Task:
o This formula calculates the sum of the ranges A1:A3 and B1:B3 using named
variables x and y.
7. LAMBDA Function
Assignment:
1. Create a Dataset:
Value
10
20
30
2. Task:
▪ Name: Square
o In cell B1, enter =Square(A1) and drag down to apply it to other cells. This
calculates the square of each value.
8. Name Manager
Assignment:
Data
100
200
SHIVANJALI DEORE
300
2. Task:
o Name it SalesData.
o Use the name SalesData in a formula. For example, in cell B1, enter
=SUM(SalesData).
SHIVANJALI DEORE