Votre panier est actuellement vide !
Étiquette : function
How to use the ROUND function in Excel
The ROUND function adjusts a number to a specified number of digits, either rounding up or down as needed.
The ROUND function uses these arguments:
=ROUND(number, num_digits)Number (Required): The value you want to round
Num_digits (Required): The number of decimal places to round toUSING THE ROUND FUNCTION
Let’s round the number 1844,123 to various precision levels:
- One decimal place:
=ROUND(A1; 1)→ Returns 1844,1

- Two decimal places:
=ROUND(A1; 2)→ Returns 1844,12

- Nearest integer:
=ROUND(A1; 0)→ Returns 1844

- Nearest 10:
=ROUND(A1; -1)→ Returns 1840

- Nearest 100:
=ROUND(A1; -2)→ Returns 1800

- Nearest 1000:
=ROUND(A1; -3)→ Returns 2000

Note: Positive num_digits rounds decimal places, zero rounds to whole numbers, and negative num_digits rounds to left of the decimal point.
- One decimal place:
How to use the ROUNDDOWN function in Excel
The ROUNDDOWN function rounds a number down (toward zero) to a specified number of digits.
The ROUNDDOWN function uses these arguments:
=ROUNDDOWN(number; num_digits)Number (Required): The value you want to round down
Num_digits (Required): The number of digits to round toUSING THE ROUNDDOWN FUNCTION
Let’s round down 1233,345 to various precision levels:
- One decimal place:
=ROUNDDOWN(A1; 1) → Returns 1233,3

- Two decimal places:
=ROUNDDOWN(A1; 2) → Returns 1233,34

- Nearest integer:
=ROUNDDOWN(A1; 0) → Returns 1233

- Nearest 10:
=ROUNDDOWN(A1; -1) → Returns 1230

- Nearest 100:
=ROUNDDOWN(A1; -2) → Returns 1200

- Nearest 1000:
=ROUNDDOWN(A1; -3) → Returns 1000

Note: Unlike the standard ROUND function, ROUNDDOWN always rounds numbers downward regardless of the digit value.
- One decimal place:
How to use the RANDBETWEEN function in Excel
The RANDBETWEEN function generates a random integer between two specified numbers. This function recalculates automatically whenever the worksheet is opened or modified.
The RANDBETWEEN function uses these arguments:
=RANDBETWEEN(bottom, top)Bottom (Required): The smallest integer that can be returned
Top (Required): The largest integer that can be returnedUSING THE RANDBETWEEN FUNCTION
To see how this function works, examine the following example:

- The formula =RANDBETWEEN(A2; B2) has been applied above
- Each time the worksheet recalculates, a new random number appears as seen below;

IMPORTANT NOTES
- The function generates a new value with each worksheet recalculation
- To prevent automatic recalculation:
- Enter the formula in the formula bar
- Press F9 to convert it to a static value
- To generate multiple random numbers at once:
- Select multiple cells
- Enter the RANDBETWEEN function
- Press Ctrl + Enter to fill all selected cells
How to use the MOD function in Excel
The MOD function returns the remainder after dividing one number (dividend) by another (divisor).
The MOD function uses these arguments:
=MOD(number, divisor)Number (Required): The dividend (number to be divided)
Divisor (Required): The number to divide byUSING THE MOD FUNCTION
Let’s find the remainder of dividing cell A2 by B2 in the table below:

- Select an empty cell
- Enter the formula:
=MOD(A2, B2)- A2 contains the dividend
- B2 contains the divisor

- The result will display in the selected cell

IMPORTANT NOTES
- #DIV/0! error occurs when:
- The divisor is zero
- The result will have:
- The same sign (+/-) as the divisor
How to use the SUMIFS function in Excel
The SUMIFS function adds cells that meet multiple specified conditions. These conditions can evaluate dates, numbers, and text values. The function supports logical operators (<, >, ≤, etc.) and wildcard characters (*, ?).
The SUMIFS function uses these arguments:
=SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], …)Sum_range: The range of cells to sum
Criteria_range1: The range where the first condition will be applied
Criteria1: The condition that determines which cells to include
Criteria_range2: (Optional) Additional range for second conditionUSING THE SUMIFS FUNCTION

Let’s calculate the total quantity of Apples supplied by Pete:
- Select an empty cell
- Enter the formula:
=SUMIFS(C2:C6, A2:A6, « apples », B2:B6, « Pete »)- C2:C6 contains quantities to sum
- A2:A6 contains product names
- « apples » is our product criteria
- B2:B6 contains supplier names
- « Pete » is our supplier criteria

- Press Enter to see the result: 180

IMPORTANT NOTES
- Always enclose text criteria in double quotes (e.g., « orange »)
- All criteria ranges must match the size of sum_range
- #VALUE! error appears when:
- Ranges have different sizes
- Cell references in criteria are incorrectly quoted
- SUMIFS works with cell ranges, not arrays
How to use the SUMIF function in Excel
The SUMIF function calculates the total of cells that meet specific conditions. These conditions can be based on dates, numbers, or text values. The function supports logical operators (<, >, =, etc.) and wildcard characters (*, ?).
The SUMIF function uses these arguments:
=SUMIF(range; criteria; [sum_range])Range (Required):
This is the group of cells that will be checked against your criteria.Criteria (Required):
This determines which cells to include in the sum. You can use:- Numbers (like 10, 0.5, or 12:00)
- Text (such as « January », « North »)
- Expressions (for example, « >100 » or « <=50 »)
Sum_range (Optional):
These are the actual cells to add together. If you leave this out, Excel will sum the cells in your range instead.HOW TO USE SUMIF FUNCTION
Let’s see how this works with two practical examples: calculating January sales using the table below;

Example 1: Calculate January Sales
- Click on an empty cell
- Type the formula:
=SUMIF(A2:A8; « Jan »; C2:C8)- A2:A8 contains month names

-
- « Jan » is our condition
-
- C2:C8 has the sales numbers

- Press Enter to see the result: 81037
Example 2: Calculate USA Sales
- Select an empty cell
- Enter the formula:
=SUMIF(B2:B8; « USA »; C2:C8)- B2:B8 lists countries

-
- « USA » is our criteria
-
- C2:C8 contains the sales figures

- Hit Enter to view the total USA sales

IMPORTANT NOTES
- If you see #VALUE!, your criteria might be too long (over 255 characters)
- When you don’t specify sum_range, Excel sums the cells in your range
- Always put text criteria in « double quotes »
- Wildcards work in SUMIF:
- matches multiple characters (e.g., « A* » finds « Apple »)
-
- ? matches one character (e.g., « J?n » finds « Jan » or « Jun »)
How to use the SUM function in Excel
The SUM function adds or totals the values of selected cells, rows, or columns.
Syntax
=SUM(number1, [number2], …)
How to Insert the SUM Function
- Select a cell and type =SUM(.
- In the function arguments, select the desired cells or range.
- Press Enter to display the result.
Arguments
- number1 (Required): The first value or range to sum.
- [number2], [number3], … (Optional): Additional values or ranges to include in the sum.
USING THE SUM FUNCTION
Example: Calculate the total sales from Monday to Friday.

To calculate the sales from Monday to Friday using SUM, follow the steps below
Steps:
- Select an empty cell.
- Enter the function with the cell range:
=SUM(A2:B6)

- Press Enter—the result (e.g., 113,327) will appear.

NOTES WHEN USING THE SUM FUNCTION
- #VALUE! Error: Occurs if the criteria exceed 255 characters.
- Ignored Cells: The SUM function automatically skips empty cells and text values.
- Valid Arguments: Can include constants, ranges, named ranges, or cell references.
- Error Handling: If any argument contains an error, the SUM function returns an error.
How to use the FIND function in Excel
Similar to the SEARCH function, the FIND function also locates the position of a substring within a string. However, unlike the SEARCH function, the FIND function is case-sensitive, meaning it distinguishes between uppercase and lowercase letters when searching for the exact text.
The syntax for the FIND function is:
=FIND(find_text; within_text; [start_num])- find_text: The text or substring you want to find.
- within_text: The text in which you want to search for the substring.
- start_num (optional): The position in the text where the search should begin. If omitted, the search starts from the first character.
Practical Example of the FIND Function
Example 1:
Find the position of « GROWTH » in cell B2 in the table below.
- Go to cell C2 and type:
=FIND(« GROWTH »; B2; 1) - Press Enter.

The position of « GROWTH » in cell B2 is 22.
How to use the SEARCH function in Excel
The SEARCH function is used to locate the position of a substring within a string. For example, it can find the position of the letter « S » in the word « JOURNALISM. » The SEARCH function is case-insensitive, meaning it does not distinguish between uppercase and lowercase letters.
The syntax for the SEARCH function is:
=SEARCH(find_text; within_text; [start_num])- find_text: The text or substring you want to find.
- within_text: The text in which you want to search for the substring.
- start_num (optional): The position in the text where the search should begin. If omitted, the search starts from the first character.
Practical Examples of the SEARCH Function
Example 1:
Search for the position of « T » in cell A1 in the table below.
- Go to cell B2 and type:
=SEARCH(« T »; A1; 1)

- Press Enter.
The position of « T » in cell A1 is 3.
Example 2:
Search for the position of « MAN » in cell C1 in the table below.
- Go to cell D2 and type:
=SEARCH(« MAN »; C1; 1)S

- Press Enter.
The position of « MAN » in cell D1 is 2.
How to use the DDB function in Excel
The DDB function calculates the depreciation of an asset for a specific period using the double-declining balance method or another specified method by adjusting the factor argument. It uses the following arguments:
=DDB(cost; salvage; life; period; [factor])
- Cost (Required Argument): This is the initial cost of the asset.
- Salvage (Required Argument): This is the value of the asset at the end of its depreciation, also known as the salvage value.
- Life (Required Argument): This is the number of periods over which the asset depreciates, often referred to as the asset’s useful life.
- Period (Required Argument): This is the specific period for which the depreciation is calculated.
- Factor (Optional Argument): This is the rate at which the balance declines. If omitted, it defaults to 2 (double-declining balance method).
Using the DDB Function
Let’s calculate the depreciation of an asset with an initial cost of £300 000, a salvage value of £5 000 after 5 years, and a depreciation period of 2 years. We will use the DDB function with a factor of 1.
To calculate the depreciation using the DDB function:
- Select an empty cell and enter the function with its arguments:
=DDB(B3; B4; B5; B6; B7)
(Where B3 = Cost, B4 = Salvage, B5 = Life, B6 = Period, B7 = Factor)

- Press Enter, and the depreciation value of the asset will be displayed as £48000,00, as shown in the table below.

Important Notes When Using the DDB Function
- A #VALUE! error occurs if any of the arguments provided are non-numeric.
- A #NUM! error occurs in the following cases:
- If the cost or salvage value is less than 0.
- If the life of the asset is less than or equal to zero.
- If the period argument is less than or equal to 0 or greater than the life value.
- If the factor argument is less than 1.