Logical Functions
Sveip for å vise menyen
A function that results in TRUE or FALSE is called a logical function.
In Excel, you can use logical expressions:
>(greater than);<(less than);=(equals);<>(not equal to);>=(greater than or equal to);<=(less than or equal to).
Examples of use:
| Function | Result |
|---|---|
| 3.14 > 0 | TRUE |
| 5 < 1/2 | FALSE |
| 3/2 = 1.5 | TRUE |
| 6 <> 2*3 | FALSE |
| 8 >= 24/3 | TRUE |
| 10 <= 100/15 | FALSE |
Logical functions in Excel include IF, AND, OR, NOT.
The general form of the IF function is:
IF(logical_expression;value_if_TRUE;value_if_FALSE)
These functions are most often used as arguments in the IF function, and very rarely on their own.
Task: Calculating Tax Coefficients Based on Employee Count
Background:
You are provided with a dataset of 5 companies. Each company has a different number of employees. The tax coefficient for each company is determined based on the number of employees they have. The tax rules are as follows:
- Companies with less than 20 employees have a tax coefficient of 0,15;
- Companies with 20 to 50 employees have a tax coefficient of 0,20;
- Companies with more than 50 employees have a tax coefficient of 0,25.
You can try it by yourself:
Task: Calculating Bonus Eligibility
Scenario:
You are tasked with determining employee bonus eligibility. Employees qualify for a bonus if they meet the following criteria:
- They must have been employed for at least one year;
- They must have exceeded their annual sales target.
| _ | A | B | C | D | E |
|---|---|---|---|---|---|
| 1 | Employee Name | Years Employed | Sales Target | Actual Sales | Bonus |
| 2 | Alice | 2 | 100000 | 150000 | |
| 3 | Bob | 0.5 | 80000 | 90000 | |
| 4 | Carol | 3 | 120000 | 115000 |
1. What formula can you use in Excel to determine if these employees are eligible for a bonus? Write the formula in cell E2 and drag it down.
2. Determine the results of such functions
Great job finishing Chapter 3! Now, let's dive into the next chapter and discover more exciting Excel skills!
Takk for tilbakemeldingene dine!
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår