Excel Functions and Formulas: Getting Started Guide
Excel's functions and formulas are its core functions, both of which perform calculations, but are created, function and work in different ways. This article will explain both in an easy-to-understand manner to help you become an Excel expert. If you don't understand any terms, please refer to our Excel Glossary.
Detailed explanation of functions and formulas
The main difference between a formula and a function is that anyone can create a formula, and a function is predefined by a Microsoft programmer.
Excel formula
Excel formulas are used to perform basic mathematical calculations. Create a formula, first enter the equal sign (=), and then write the calculated parameters.
For example, enter:
in cell B2<code>=20+40</code>
Press Enter, Excel adds 20 and 40, and the result (60) will be displayed in the cell where the formula is entered.
Excel can also calculate the values ??already in the spreadsheet. Enter:
in cell B3<code>=B2*10</code>
Press Enter to multiply the value in cell B2 by 10.
Same, enter:
in cell B4<code>=B2*B3</code>
Press Enter to multiply the values ??in cells B2 (60) and B3 (600) to a result of 36,000.
When creating an Excel formula, the number of parameters is not limited. For example, enter:
in cell B5<code>=B3*5-(2+8)</code>
Add 2 and 8, then multiply the value in B3 by 5, and subtract the former by the latter, and the result is 2,990.
Excel follows the standard mathematical order of operations - PEMDAS (first brackets, then exponents, then multiplications and divisions, and finally adds and subtractions).
Excel function
Excel functions work similarly. They also start with an equal sign (=) and can perform calculations. However, Excel formulas are limited to basic mathematical operations, while functions are more powerful.
For example, the AVERAGE function can calculate the average value of a set of numbers, and the MAX function can find the maximum value in the range.
Excel functions follow a specific syntax:
<code>=a(b)</code>
where a is the function name (for example, AVERAGE or MAX), and b is the parameter used to enable the function to perform calculations.
For example, enter:
in cell A1<code>=AVERAGE(20,30)</code>
Press Enter to calculate the average of 20 and 30, and the result is 25.
We can also enter in cell B2:
<code>=AVERAGE(A1:A5)</code>
Let Excel calculate the average of all values ??in cells A1 to A5 (the colon indicates that the cells mentioned and all cells in between).
Excel has hundreds of functions, from the most basic functions to more complex functions. It's nearly impossible to remember all functions, especially considering that Microsoft developers are constantly adding new functions. Excel provides a function assistant to help you choose the most appropriate function and guide you through the entire process.
To start this assistant, click the "fx" icon above the first row of the spreadsheet, or press Shift F3.
You can then enter some keywords in the Search Function field to find the function you want. The Select Category drop-down menu displays different groups of function, including financial, statistical, and logical categories. When you select a function in the list under category, you will see a short description of the function's function's function.
After finding the function you want to use, click OK. You will then see a new dialog box that guides you through the entire process.
Combination of formulas and functions
Formulas and functions can be used in combination. For example, enter:
<code>=20+40</code>
calculates the sum of the values ??in cells A1 to A10 and divides the sum by 2.
Cells and formula bars
In Excel, once you enter a formula in a cell or use a function, the cell will display the calculation result instead of the formula itself. For example, when we enter:
in cell A3<code>=B2*10</code>
and press Enter, the calculation results will be displayed in cell A3, not the formula itself.
If you find an error that requires modification of the formula, you can use the formula bar located at the top of the Excel worksheet. You can also see the name box in the upper left corner, which indicates the active cell.
In other words, in the example below, the name box tells us that A3 is the active cell, the formula bar tells us what is entered in cell A3, and cell A3 itself shows the result of what we entered.
Copy formulas and functions
Excel provides convenient copying functions.
In the following example, we want to add all the values ??in cells A1 to A8, so we will enter:
in cell A9:<code>=B2*B3</code>
and press Enter.
We also want to add the values ??in cells B1 to B8. However, instead of entering the new formula using the SUM function in B9, we can:
- Select cell A9, press Ctrl C, and then press Ctrl V in cell B9, or
- Drag the fill handle in the lower right corner of cell A9 to cell B9.
Because the cell references in the formula are relative by default, the method of calculating the values ??of cells A1 to A8 entered in cell A9 is also suitable for calculating the values ??of cells B1 to B8 in B9.
In some cases, you may not want the references in the formula to be relative. In this case, take some time to understand the difference between relative citations, absolute citations and mixed citations.
10 commonly used basic functions
If you are new to Excel or its functions, open a new spreadsheet and enter some random values ??in cells A1 to A9 (A10 is left blank). Then, try some of the following functions:
在單元格 | 輸入以下內(nèi)容并按 Enter 鍵 | 功能 |
---|---|---|
B1 | =SUM(A1:A10) | SUM 函數(shù)將 A1 到 A10 單元格中的所有值相加。 |
B2 | =AVERAGE(A1:A10) | AVERAGE 函數(shù)將計(jì)算 A1 到 A10 單元格中所有值的平均值。 |
B3 | =CONCAT(A1:A3) | CONCAT 函數(shù)將 A1 到 A3 單元格中的所有值連接在一起。 |
B4 | =COUNT(A1:A10) | COUNT 函數(shù)將告訴您 A1 到 A10 中包含數(shù)字的單元格數(shù)量。 |
B5 | =COUNTA(A1:A10) | COUNTA 函數(shù)將告訴您包含任何值的單元格數(shù)量(換句話說,非空單元格)。 |
B6 | =COUNTBLANK(A1:A10) | COUNTBLANK 函數(shù)將告訴您 A1 到 A10 中空白單元格的數(shù)量。 |
B7 | =MIN(A1:A10) | 這將告訴您 A1 到 A10 單元格中最小的數(shù)字。 |
B8 | =MAX(A1:A10) | 這將告訴您 A1 到 A10 單元格中最大的數(shù)字。 |
B9 | =TODAY() | 易失性 TODAY 函數(shù)返回今天的日期。 |
B10 | =RAND() | 易失性 RAND 函數(shù)返回 0 到 1 之間的隨機(jī)數(shù)。 |
Volatile functions are recalculated when you make any changes to an Excel spreadsheet or reopen the spreadsheet.
5 more advanced functions
In a new worksheet or new workbook, enter Laura, Lucy, Liam, Lilly, Liz, and Luke in cells A1 to A6, and enter the numbers 1 to 6 in cells B1 to B6.
Now, try some of the following functions:
在單元格 | 輸入以下內(nèi)容并按 Enter 鍵 | 功能 |
---|---|---|
C1 | =IF(B6>1,"YES","NO") | IF 函數(shù)將評(píng)估單元格 B6 中的值是否大于 1,如果大于 1 則返回“YES”,否則返回“NO”。在本例中,它將返回“YES”。 |
C2 | =VLOOKUP("Liam",A1:B6,2) | VLOOKUP 函數(shù)將在單元格 A1 到 B6 中查找“Liam”,返回在第二列中找到該單詞的數(shù)字。在本例中,它將返回“3”。 |
C3 | =SUMIF(A1:B6,"Li*",B1:B6) | SUMIF 函數(shù)將在單元格 A1 到 B6 中查找以“Li”開頭的值,返回在滿足此條件的單元格 B1 到 B6 中的值的總和。在本例中,它將返回“12”,因?yàn)?Liam、Lilly 和 Liz 旁邊的數(shù)字加起來是 12。 |
C4 | =COUNTIF(B1:B6,3) | COUNTIF 函數(shù)將告訴您 B1 到 B6 中有多少個(gè)單元格包含數(shù)字 3。在本例中,它將返回“1”,因?yàn)橹挥袉卧?B3 包含此值。 |
C5 | =LEFT(A1,3) | LEFT 函數(shù)將告訴您單元格 A1 中最左邊的三個(gè)字符,在本例中是“Lau”。 |
Learning Excel's formulas and functions is a continuous learning process! We also have a lot of articles about Excel to help you become an Excel power user.
The above is the detailed content of The Beginner's Guide to Excel's Formulas and Functions. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Quick LinksRecalculating Formulas in Manual Calculation ModeDebugging Complex FormulasMinimizing the Excel WindowMicrosoft Excel has so many keyboard shortcuts that it can sometimes be difficult to remember the most useful. One of the most overlooked

Quick Links Copy, Move, and Link Cell Elements

1. Check the automatic recovery folder, open "Recover Unsaved Documents" in Word or enter the C:\Users\Users\Username\AppData\Roaming\Microsoft\Word path to find the .asd ending file; 2. Find temporary files or use OneDrive historical version, enter ~$ file name.docx in the original directory to see if it exists or log in to OneDrive to view the version history; 3. Use Windows' "Previous Versions" function or third-party tools such as Recuva and EaseUS to scan and restore and completely delete files. The above methods can improve the recovery success rate, but you need to operate as soon as possible and avoid writing new data. Automatic saving, regular saving or cloud use should be enabled

Quick Links Let Copilot Determine Which Table to Manipu

Grouping by month in Excel Pivot Table requires you to make sure that the date is formatted correctly, then insert the Pivot Table and add the date field, and finally right-click the group to select "Month" aggregation. If you encounter problems, check whether it is a standard date format and the data range are reasonable, and adjust the number format to correctly display the month.

Microsoft Teams is not complicated to use, you can get started by mastering the basic operations. To create a team, you can click the "Team" tab → "Join or Create Team" → "Create Team", fill in the information and invite members; when you receive an invitation, click the link to join. To create a new team, you can choose to be public or private. To exit the team, you can right-click to select "Leave Team". Daily communication can be initiated on the "Chat" tab, click the phone icon to make voice or video calls, and the meeting can be initiated through the "Conference" button on the chat interface. The channel is used for classified discussions, supports file upload, multi-person collaboration and version control. It is recommended to place important information in the channel file tab for reference.

MicrosoftTeamsusesalotofmemoryprimarilybecauseitisbuiltonElectron,whichrunsmultipleChromium-basedprocessesfordifferentfeatureslikechat,videocalls,andbackgroundsyncing.1.Eachfunctionoperateslikeaseparatebrowsertab,increasingRAMusage.2.Videocallswithef

Quick Links Check the File's AutoSave Status
