How to work with the x-el program. How to write a formula in Excel: training, the most necessary formulas

If you've never used a spreadsheet to create documents before, we recommend reading our Excel guide for dummies.

After that, you will be able to create your first spreadsheet with tables, graphs, math formulas, and formatting.

Detailed information about the basic functions and capabilities of the spreadsheet processor.

Description of the main elements of the document and instructions for working with them in our material.

By the way, in order to work more efficiently with Excel tables, you can read our material.

Working with cells. Filling and Formatting

Before proceeding with specific actions, it is necessary to understand the base element any .

An Excel file consists of one or more sheets divided into small cells.

A cell is the basic component of any Excel report, table or graph. Each cell contains one block of information. This can be a number, date, currency, unit of measure, or other data format.

To fill in a cell, simply click on it with the pointer and enter the required information.

To edit a previously filled cell, double-click on it.

Rice. 1 - an example of filling cells

Each cell on the sheet has its own unique address. Thus, calculations or other operations can be carried out with it.

When you click on a cell, a field with its address, name and formula (if the cell is involved in any calculations) will appear in the upper part of the window.

Select the cell "Percentage of shares". Its address is A3. This information is indicated in the properties panel that opens. We can also see the content.

This cell has no formulas, so they are not shown.

More cell properties and functions that can be used in relation to it are available in the context menu.

Click on the cell with the right mouse button.

A menu will open with which you can format the cell, parse the contents, assign a different value, and other actions.

Rice. 2- context menu cells and its main properties

Data sorting

Often users are faced with the task of sorting data on a sheet in Excel. This feature helps you quickly select and view only the data you need from the entire table.

Before you already (we will figure out how to create it later in the article). Imagine that you need to sort the data for January in ascending order.

How would you do it? Banal reprinting of the table is extra work, besides, if it is voluminous, no one will do it.

There is a dedicated function for sorting in Excel. The user only needs:

  • Select a table or block of information;
  • Open masonry "Data";
  • Click on the "Sort" icon;

Rice. 3 - tab "Data"

  • In the window that opens, select the column of the table over which we will carry out actions (January).
  • Next, the sort type (we're grouping by value) and finally the order, ascending.
  • Confirm the action by clicking on "OK".

Rice. 4 - setting sorting options

The data will be automatically sorted:

Rice. 5 - the result of sorting the numbers in the column "January"

Similarly, you can sort by color, font, and other parameters.

Mathematical calculations

Main Excel advantage– the possibility of automatic calculations in the process of filling the table. For example, we have two cells with values ​​2 and 17. How to enter their result in the third cell without doing the calculations yourself?

To do this, you need to click on the third cell, in which the final result of the calculations will be entered.

Then click on the f(x) function icon as shown in the image below.

In the window that opens, select the action you want to apply. SUM is the sum, AVERAGE is the average, and so on.

A complete list of functions and their names in Excel editor can be found on the official Microsoft website.

We need to find the sum of two cells, so click on "SUM".

Rice. 6 - selection of the "SUM" function

There are two fields in the function arguments window: "Number 1" and "Number 2". Select the first field and click on the cell with the number "2".

Its address will be written to the argument string.

Click on "Number 2" and click on the cell with the number "17". Then confirm the action and close the window.

If you need to perform mathematical operations with three or big amount cells, just keep entering the values ​​of the arguments in the fields "Number 3", "Number 4" and so on.

If in the future the value of the summed cells will change, their sum will be updated automatically.

Rice. 7 - the result of the calculations

Creating tables

Excel spreadsheets can store any kind of data.

Using the function quick setup and formatting, in the editor it is very easy to organize a personal budget control system, a list of expenses, digital data for reporting, and more.

They have an advantage over a similar option in other office programs.

Here you have the opportunity to create a table of any dimension. The data is easy to fill. There is a function panel for editing content.

In addition, the finished table can be integrated into a docx file using the usual copy-paste function.

To create a table, follow the instructions:

  • Open the Insert tab. On the left side of the options panel, select Table. If you need to summarize any data, select the "Pivot Table" item;
  • Using the mouse, select a place on the sheet that will be reserved for the table. You can also enter the location of the data in the element creation window;
  • Click OK to confirm the action.

Rice. 8 - creating a standard table

To format appearance the resulting plate, open the contents of the constructor and in the "Style" field, click on the template you like.

If desired, you can create own kind with a different color scheme and selection of cells.

Rice. 9 - table formatting

The result of filling the table with data:

Rice. 10 - completed table

For each table cell, you can also set the data type, formatting, and information display mode. The constructor window contains all the necessary options for further configuration of the plate, based on your requirements.

Tables in Excel are a series of rows and columns of related data that you manage independently.

Working with tables in Excel, you can create reports, make calculations, build graphs and charts, sort and filter information.

If your work involves data processing, then Excel spreadsheet skills can help you save a lot of time and increase efficiency.

How to work with tables in Excel. Step-by-step instruction

Before working with tables in Excel, follow the recommendations for organizing data:

  • Data should be organized in rows and columns, with each row containing information about one record, such as an order;
  • The first row of the table should contain short, unique headings;
  • Each column must contain one type of data, such as numbers, currency, or text;
  • Each row should contain data for one record, such as an order. If applicable, provide a unique identifier for each line, such as an order number;
  • The table must not contain empty rows and absolutely empty columns.

1. Select an area of ​​cells to create a table

Select the area of ​​cells where you want to create a table. Cells can be either empty or contain information.

2. Click the "Table" button on the Quick Access Toolbar

On the Insert tab, click the Table button.

3. Select a range of cells

In the pop-up, you can adjust the location of the data, as well as customize the display of headers. When everything is ready, click “OK”.

4. The table is ready. Fill in with data!

Congratulations, your spreadsheet is ready to be filled! You will learn about the main features in working with smart tables below.

Pre-configured styles are available to customize the table format in Excel. All of them are located on the “Designer” tab in the “Table Styles” section:

If 7 styles are not enough for you to choose from, then by clicking on the button in the lower right corner of the table styles, all available styles will open. In addition to the styles predefined by the system, you can customize your format.

In addition to the color scheme, in the “Constructor” menu of tables, you can configure:

  • Header Row Display – Enables and disables headers in the table;
  • Total row - enables and disables the row with the sum of the values ​​in the columns;
  • Alternating lines - highlights the alternating lines;
  • First column - highlights the “bold” text in the first column with data;
  • Last column - highlights the text in the last column with “bold”;
  • Interleaved Columns - highlights alternating columns;
  • Filter Button - Adds and removes filter buttons in column headers.

How to add a row or column in an Excel table

Even inside an already created table, you can add rows or columns. To do this, right-click on any cell to open a pop-up window:

  • Select “Insert” and left-click on “Table Columns Left” if you want to add a column, or “Table Rows Above” if you want to insert a row.
  • If you want to delete a row or column in a table, then scroll down the list in the pop-up window to the “Delete” item and select “Table Columns” if you want to delete a column or “Table Rows” if you want to delete a row.

How to sort a table in Excel

To sort information when working with a table, click the “arrow” to the right of the column heading, after which a pop-up window will appear:

In the window, select by what principle to sort the data: “ascending”, “descending”, “by color”, “numeric filters”.

To filter information in the table, click the “arrow” to the right of the column header, after which a pop-up window will appear:

  • “Text filter” is displayed when there are text values ​​among the column data;
  • “Filter by color”, as well as text filter, is available when the table has cells that are colored in a color different from the standard design;
  • “Numeric filter” allows you to select data by the following parameters: “Equal to…”, “Not equal to…”, “Greater than…”, “Greater than or equal to…”, “Less than…”, “Less than or equal to…”, “Between…”, “Top 10…”, “Above average”, “Below average”, as well as set up your own filter.
  • In a pop-up window, under “Search”, all data is displayed, by which you can filter, as well as select all values ​​or select only empty cells with one click.

If you want to cancel all created filtering settings, open the pop-up window above the desired column again and click “Remove filter from column”. After that, the table will return to its original form.

How to calculate sum in excel spreadsheet


In the window list, select “Table” => “Total Row”:


A subtotal will appear at the bottom of the table. Click the left mouse button on the cell with the amount.

In the drop-down menu, select the subtotal principle: it can be the sum of column values, “average”, “count”, “number of numbers”, “maximum”, “minimum”, etc.

How to fix a table header in Excel

The tables you work with are often large and contain dozens of rows. Scrolling the table “down” is difficult to navigate in the data if the column headings are not visible. In Excel, it is possible to fix the header in the table in such a way that when you scroll through the data, you will see the column headers.

To fix headers, do the following:

  • Go to the "View" tab in the toolbar and select "Freeze Panes":
  • Select "Freeze Top Row":
  • Now, scrolling the table, you will not lose the headings and you can easily find out where the data is located:

Imagine that we have a ready-made table with sales data by managers:


Formulas in Excel are one of the most important advantages of this editor. Thanks to them, your possibilities when working with tables increase several times and are limited only by the available knowledge. You can do anything. At the same time, Excel will help at every step - in almost any window there are special tips.

To create a simple formula, just follow the following instructions:

  1. Make any cell active. Click on the formula entry bar. Put an equal sign.
  1. Enter any expression. Can be used as numbers

In this case, the affected cells are always highlighted. This is done so that you do not make a mistake with the choice. It is easier to see the error visually than in text form.

What is the formula

Let's take the following expression as an example.

It consists of:

  • the symbol "=" - any formula begins with it;
  • "SUM" function;
  • function argument "A1:C1" (in this case, it is an array of cells from "A1" to "C1");
  • operator "+" (addition);
  • links to cell "C1";
  • operator "^" (exponentiation);
  • constants "2".

Using Operators

Operators in the Excel editor indicate exactly what operations to perform on the specified elements of the formula. The calculation always follows the same order:

  • brackets;
  • exhibitors;
  • multiplication and division (depending on the sequence);
  • addition and subtraction (also depending on the sequence).

Arithmetic

These include:

  • addition - "+" (plus);
=2+2
  • negation or subtraction - "-" (minus);
=2-2 =-2

If you put a minus in front of the number, then it will take a negative value, but the absolute value will remain exactly the same.

  • multiplication - "*";
=2*2
  • division "/";
=2/2
  • percent "%";
=20%
  • exponentiation - "^".
=2^2

Comparison Operators

These operators are used to compare values. The operation returns TRUE or FALSE. These include:

  • the sign of "equality" - "=";
=C1=D1
  • greater than sign - ">";
=C1>D1
  • less sign -<»;
=C1
  • the sign "greater than or equal to" - ">=";
  • =C1>=D1
    • less than or equal sign<=»;
    =C1<=D1
    • "not equal" sign<>».
    =C1<>D1

    Text concatenation operator

    The special character "&" (ampersand) is used for this purpose. With it, you can connect different fragments into one whole - the same principle as with the "CONNECT" function. Here are some examples:

    1. If you want to combine text in cells, then you need to use the following code.
    =A1&A2&A3
    1. In order to insert some character or letter between them, you need to use the following construction.
    =A1&","&A2&","&A3
    1. You can combine not only cells, but also ordinary characters.
    ="Auto"&"Mobile"

    Any text other than links must be enclosed in quotation marks. Otherwise, the formula will throw an error.

    Please note that quotes are used exactly as in the screenshot.

    You can use the following operators to define links:

    • in order to create a simple link to the desired range of cells, it is enough to specify the first and last cell of this area, and the “:” symbol between them;
    • to combine links, use the sign ";";
    • if it is necessary to determine the cells that are at the intersection of several ranges, then a “space” is placed between the links. In this case, the value of the cell "C7" will be displayed.

    Since only it falls under the definition of "intersection of sets." This is the name of this operator (space).

    Use of links

    While working in the Excel editor, you can use links of various kinds. However, most novice users know how to use only the simplest of them. We will teach you how to correctly enter links of all formats.

    Simple Links A1

    As a rule, this type is used most often, since it is much more convenient to compose them than the rest.

    • columns - from A to XFD (no more than 16384);
    • lines - from 1 to 1048576.

    Here are some examples:

    • cell at the intersection of row 5 and column B - "B5";
    • range of cells in column B starting from row 5 to row 25 - "B5:B25";
    • the range of cells in row 5 starting from column B to F - "B5:F5";
    • all cells in row 10 - "10:10";
    • all cells in rows 10 to 15 - "10:15";
    • all cells in column B - "B:B";
    • all cells in columns from B to K - "B:K";
    • the range of cells from B2 to F5 is "B2-F5".

    Sometimes formulas use information from other sheets. It works as follows.

    =SUM(Sheet2!A5:C5)

    The second sheet contains the following data.

    If there is a space in the sheet name, then in the formula it must be indicated in single quotes (apostrophes).

    =SUM("Sheet number 2"!A5:C5)

    Absolute and relative links

    The Excel editor works with three types of links:

    • absolute;
    • relative;
    • mixed.

    Let's consider them more carefully.

    All of the previously mentioned examples belong to relative cell addresses. This type is the most popular. The main practical advantage is that the editor will change the references to a different value during the migration. In accordance with where exactly you copied this formula. For the calculation, the number of cells between the old and new position will be taken into account.

    Imagine that you need to stretch this formula to the entire column or row. You will not manually change letters and numbers in cell addresses. It works as follows.

    1. Enter the formula for calculating the sum of the first column.
    =SUM(B4:B9)
    1. Press the hotkeys Ctrl +C . In order to transfer the formula to the next cell, you need to go there and press Ctrl + V .

    If the table is very large, it is better to click on the lower right corner and, without releasing your finger, stretch the pointer to the end. If there is little data, then copying using hotkeys is much faster.

    1. Now look at the new formulas. The change in the column index happened automatically.

    If you want all links to be preserved when transferring formulas (that is, so that they do not change automatically), you need to use absolute addresses. They are specified as "$B$2".

    =SUM($B$4:$B$9)

    As a result, we see that no changes have occurred. All columns display the same number.

    This type of address is used when it is necessary to fix only a column or row, and not all at the same time. You can use the following constructs:

    • $D1, $F5, $G3 - for fixing columns;
    • D$1, F$5, G$3 - to fix rows.

    Work with such formulas only when necessary. For example, if you need to work with one constant row of data, but only change the columns. And most importantly - if you are going to calculate the result in different cells that are not located along the same line.

    The fact is that when you copy the formula to another line, the numbers in the links will automatically change by the number of cells from the original value. If you use mixed addresses, then everything will remain in place. This is done in the following way.

    1. Let's use the following expression as an example.
    =B$4
    1. Let's move this formula to another cell. Preferably not on the next and on another line. Now you can see that the new expression contains the same string (4) but a different letter, since it was the only one that was relative.

    3D Links

    The concept of "three-dimensional" includes those addresses in which a range of sheets is indicated. An example formula looks like this.

    =SUM(Sheet1:Sheet4!A5)

    In this case, the result will correspond to the sum of all cells "A5" on all sheets, starting from 1 to 4. When compiling such expressions, the following conditions must be observed:

    • arrays cannot use such references;
    • three-dimensional expressions are forbidden to be used where there is an intersection of cells (for example, the "space" operator);
    • When creating formulas with 3D addresses, you can use the following functions: AVERAGE, STDEV, STDEV.V, AVERAGE, STDEV, STDEV.Y, SUM, COUNT, COUNT, MIN, MAX, MIN, MAX, VARR, PRODUCT, VARV, VAR.V and DISPA.

    If you violate these rules, then you will see some kind of error.

    R1C1 format links

    This type of links differs from "A1" in that the number is given not only to rows, but also to columns. The developers decided to replace the normal view with this option for convenience in macros, but they can be used anywhere. Here are some examples of such addresses:

    • R10C10 is an absolute link to the cell, which is located on the tenth line of the tenth column;
    • R - absolute link to the current (in which the formula is indicated) link;
    • R[-2] – relative link to the line, which is located two positions above this one;
    • R[-3]C – relative reference to the cell, which is located three positions higher in the current column (where you decided to write the formula);
    • RC is a relative link to the cell that is five cells to the right and five lines below the current one.

    Name usage

    The Excel program for naming cell ranges, single cells, tables (regular and summary), constants and expressions allows you to create your own unique names. At the same time, there is no difference for the editor when working with formulas - he understands everything.

    You can use the names for multiplication, division, addition, subtraction, calculation of interest, ratios, deviations, rounding, VAT, mortgages, loans, estimates, timesheets, various forms, discounts, salaries, seniority, annuity payments, working with VLOOKUP formulas , "VVD", "INTERIM. RESULTS" and so on. That is, you can do whatever you want.

    Only one thing can be called the main condition - you must determine this name in advance. Otherwise, Excel will not know anything about it. This is done in the following way.

    1. Select a column.
    2. Call the context menu.
    3. Select "Give Name".
    1. Specify the desired name for this object. In this case, you must adhere to the following rules.
    1. Click the "OK" button to save.

    In the same way, you can assign a name to any cell, text or number.

    You can use the information in the table both with the help of names and with the help of ordinary links. This is what the standard looks like.

    And if you try to insert our name instead of the address "D4: D9", you will see a hint. It is enough to write a few characters, and you will see what fits (from the name base) the most.

    In our case, everything is simple - “column_3”. And imagine that you will have a large number of such names. You won't be able to memorize everything.

    Using functions

    There are several ways to insert a function in the Excel editor:

    • manually;
    • using the toolbar;
    • using the Insert Function window.

    Let's take a closer look at each method.

    In this case, everything is simple - you use your hands, your own knowledge and skills to enter formulas in a special line or directly in a cell.

    If you do not have working experience in this area, then it is better to use more lightweight methods at first.

    In this case it is necessary:

    1. Go to the "Formulas" tab.
    2. Click on any library.
    3. Select the desired function.
    1. Immediately after that, the "Arguments and Functions" window will appear with the function already selected. You just have to put down the arguments and save the formula using the "OK" button.

    Substitution Wizard

    You can apply it like this:

    1. Make any cell active.
    2. Click on the "Fx" icon or use the keyboard shortcut SHIFT + F3.
    1. Immediately after that, the "Insert Function" window will open.
    2. Here you will see a large list of different features sorted by category. In addition, you can use the search if you can not find the desired item.

    It is enough to score a word that can describe what you want to do, and the editor will try to display all the suitable options.

    1. Select any function from the proposed list.
    2. To continue, you need to click on the "OK" button.
    1. You will then be asked for "Arguments and Functions". You can do this manually or simply select the desired range of cells.
    2. In order to apply all the settings, you need to click on the "OK" button.
    1. As a result of this, we will see the number 6, although this was already understandable, since the Arguments and Functions window displays a preliminary result. The data is recalculated instantly when any of the arguments changes.

    Using nested functions

    As an example, we will use formulas with logical conditions. To do this, we will need to add some kind of table.

    Then follow the instructions below:

    1. Click on the first cell. Call the "Insert function" window. Select the "If" function. Click "OK" to paste.
    1. Then you will need to compose some kind of logical expression. It must be written in the first field. For example, you can add the values ​​of three cells in one row and check if the sum is greater than 10. In the case of "true", specify the text "More than 10". For a false result - "Less than 10". Then click OK to return to the workspace.
    1. As a result, we see the following - the editor gave out that the sum of the cells in the third row is less than 10. And this is correct. So our code is working.
    =IF(SUM(B3:D3)>10,"Greater than 10","Less than 10")
    1. Now you need to configure the following cells. In this case, our formula simply extends further. To do this, you first need to move the cursor to the lower right corner of the cell. After the cursor changes, you need to make a left click and copy it to the very bottom.
    1. As a result, the editor recalculates our expression for each line.

    As you can see, the copy was very successful because we used the relative links we talked about earlier. If you need to fix addresses in function arguments, then use absolute values.

    There are several ways to do this: use the formula bar or a special wizard. In the first case, everything is simple - click in a special field and manually enter the necessary changes. But writing there is not very convenient.

    The only thing you can do is increase the input field. To do this, just click on the indicated icon or press the key combination Ctrl + Shift + U.

    It is worth noting that this is the only way if you do not use functions in the formula.

    In the case of using functions, everything becomes much simpler. To edit, follow the instructions below:

    1. Make active the cell with the formula. Click on the "Fx" icon.
    1. After that, a window will appear in which you can change the arguments of the function you need in a very convenient way. In addition, here you can find out exactly what the result of recalculating the new expression will be.
    1. To save the changes made, use the "OK" button.

    To remove an expression, just do the following:

    1. Click on any cell.
    1. Click on the Delete or Backspace button. As a result, the cell will be empty.

    You can achieve exactly the same result using the Clear All tool.

    Possible errors when compiling formulas in the Excel editor

    The following are the most common mistakes that users make:

    • The expression uses a huge number of nestings. There should be no more than 64;
    • paths to external workbooks are specified in formulas without the full path;
    • Opening and closing parentheses are misplaced. That is why in the editor in the formula bar all brackets are highlighted in a different color;
    • the names of books and sheets are not taken in quotation marks;
    • numbers are used in the wrong format. For example, if you need to specify $2000, you just need to type 2000 and select the appropriate cell format, since the $ symbol is used by the program for absolute references;
    • required function arguments are not specified. Note that optional arguments are enclosed in square brackets. Everything without them is necessary for the full operation of the formula;
    • Cell ranges are incorrect. To do this, you must use the ":" (colon) operator.

    Error codes when working with formulas

    When working with a formula, you may see the following error options:

    • #VALUE! - This error indicates that you are using the wrong data type. For example, you are trying to use text instead of a numeric value. Of course, Excel can't calculate the sum between two phrases;
    • #NAME? - a similar error means that you made a typo in the spelling of the function name. Or you are trying to enter something that does not exist. You can't do that. In addition, the problem may be in another. If you are sure about the function name, then try to look at the formula more closely. Perhaps you forgot a parenthesis. In addition, you need to take into account that text fragments are indicated in quotation marks. If all else fails, try composing the expression again;
    • #NUMBER! - displaying such a message means that you have some kind of problem with the arguments or with the result of the formula. For example, the number turned out to be too large or vice versa - small;
    • #DIV/0! - This error means that you are trying to write an expression that divides by zero. Excel cannot undo math rules. Therefore, such actions are also prohibited here;
    • #N/A! - The editor can show this message if some value is not available. For example, if you use the functions SEARCH, SEARCH, MATCH, and Excel did not find the fragment you are looking for. Or there is no data at all and the formula has nothing to work with;
    • If you are trying to calculate something and Excel writes the word #REF!, then the wrong range of cells is used in the function argument;
    • #EMPTY! - this error appears if you have an inconsistent formula with overlapping ranges. More precisely, if in reality there are no such cells (which are at the intersection of two ranges). Quite often, this error occurs by accident. It is enough to leave one space in the argument, and the editor will perceive it as a special operator (we talked about it earlier).

    When editing the formula (the cells are highlighted) you will see that they do not actually intersect.

    Sometimes you can see a lot of # characters that completely fill the width of the cell. In fact, there is no error here. This means that you are working with numbers that do not fit in this cell.

    In order to see the value contained there, it is enough to resize the column.

    In addition, you can use cell formatting. To do this, you need to follow a few simple steps:

    1. Call the context menu. Select Format Cells.
    1. Specify the type "General". Use the "OK" button to continue.

    Thanks to this, the Excel editor will be able to translate this number into another format that fits in this column.

    Formula Usage Examples

    The Microsoft Excel editor allows you to process information in any way convenient for you. There are all necessary conditions and opportunities for this. Let's look at some examples of formulas by category. This will make it easier for you to figure it out.

    In order to evaluate the mathematical capabilities of Excel, you need to perform the following steps.

    1. Create a table with some conditional data.
    1. To calculate the amount, enter the following formula. If you only want to add one value, you can use the addition ("+") operator.
    =SUM(B3:C3)
    1. Oddly enough, in the Excel editor you can not take away using functions. For deduction, the usual operator "-" is used. In this case, the code will be the following.
    =B3-C3
    1. In order to determine how much the first number is from the second as a percentage, you need to use this simple construction. If you want to subtract several values, you will have to write a "minus" for each cell.
    =B3/C3%

    Note that the percent symbol is placed at the end, not at the beginning. In addition, when working with percentages, you do not need to additionally multiply by 100. This happens automatically.

    1. Excel can add, taking into account several conditions at once. You can calculate the sum of the cells of the first column, the value of which is greater than 2 and less than 6. And the same formula can be set for the second column.
    =SUMIFS(B3:B9,B3:B9,">2",B3:B9,"<6") =SUMIFS(C3:C9,C3:C9,">2",C3:C9,"<6")
    1. You can also count the number of elements that satisfy some condition. For example, let Excel calculate how many numbers we have greater than 3.
    =COUNTIF(B3:B9,">3") =COUNTIF(C3:C9,">3")
    1. The result of all formulas will be as follows.

    Math functions and graphs

    Using Excel, you can calculate various functions and build graphs on them, and then carry out graphical analysis. As a rule, such techniques are used in presentations.

    As an example, let's try to build graphs for the exponent and some equation. The instruction will be as follows:

    1. Let's create a table. In the first column we will have the original number "X", in the second - the "EXP" function, in the third - the specified ratio. It would be possible to make a quadratic expression, but then the resulting value against the background of the exponent on the graph would practically disappear.

    As we said earlier, the growth of the exponent is much faster than that of the usual cubic equation.

    Similarly, any function or mathematical expression can be represented graphically.

    Everything described above is suitable for modern programs of 2007, 2010, 2013 and 2016. The old Excel editor is significantly inferior in terms of features, number of functions and tools. If you open the official help from Microsoft, you will see that they additionally indicate in which version of the program this function appeared.

    In all other respects, everything looks almost exactly the same. As an example, let's calculate the sum of several cells. For this you need:

    1. Specify some data for calculation. Click on any cell. Click on the "Fx" icon.
    1. Select the "Math" category. Find the "SUM" function and click on "OK".
      1. You can try to recalculate in any other editor. The process will be exactly the same.

      Conclusion

      In this tutorial, we talked about everything related to formulas in the Excel editor, from the simplest to the very complex. Each section was accompanied by detailed examples and explanations. This is done so that the information is accessible even for complete dummies.

      If something does not work out for you, then you are making a mistake somewhere. Perhaps you have typos in expressions or incorrect cell references. The main thing to understand is that everything needs to be driven in very carefully and carefully. Moreover, all functions are not in English, but in Russian.

      In addition, it is important to remember that formulas must begin with the symbol "=" (equal to). Many novice users forget about it.

      Sample File

      In order to make it easier for you to deal with the formulas described earlier, we have prepared a special demo file in which all the above examples were compiled. You can do it from our site absolutely free. If during training you use a ready-made table with formulas based on the data you filled in, you will achieve results much faster.

      Video instruction

      If our description did not help you, try watching the attached video below, which tells the main points in more detail. Perhaps you are doing everything right, but you are missing something. With the help of this video, you should deal with all the problems. We hope these tutorials have helped you. Check us out more often.

    This program is used by a large number of people. Andrey Sukhov decided to record a series of educational video lessons "Microsoft Excel for Beginners" for novice users and we invite you to familiarize yourself with the basics of this program.

    Lesson 1

    In the first lesson, Andrey will talk about the interface of the Excel program and its main elements. You will also understand the workspace of the program, with columns, rows and cells. So here's the first video:

    Lesson 2: How to Enter Data in an Excel Spreadsheet

    In the second video tutorial on the basics of Microsoft Excel, we will learn how to enter data into a spreadsheet, and also get acquainted with the auto-fill operation. I think that the most effective learning is the one built on practical examples. So we will begin to create a spreadsheet that will help us maintain a family budget. Based on this example, we will consider the tools of the Microsoft Excel program. So here's the second video:

    Lesson 3. How to format spreadsheet cells in Excel

    In the third video tutorial on the basics of Microsoft Excel, we will learn how to align the contents of the cells of our spreadsheet, as well as change the width of the columns and the height of the rows of the table. Next, we will get acquainted with the Microsoft Excel tools that allow you to merge table cells, as well as change the direction of text in cells if necessary. So here's the third video:

    Lesson 4. How to format text in Excel

    In the fourth video tutorial on the basics of Microsoft Excel, we will get acquainted with the text formatting operations. For different elements of our table, we will apply different fonts, different font sizes and text styles. We will also change the text color and set a colored background for some cells. At the end of the lesson, we will get an almost ready-made family budget form. So, the fourth video:

    Lesson 5

    In the fifth video tutorial on the basics of Microsoft Excel, we will finalize the family budget form that we started working on in previous lessons. In this lesson, we will talk about cell borders. We will set different borders for different columns and rows of our table. By the end of the lesson, we will have a family budget form completely ready for data entry. So, the fifth video:

    Lesson 6

    In the sixth video tutorial on the basics of Microsoft Excel, we will fill in our family budget form with data. Microsoft Excel allows you to simplify the process of data entry to the maximum, and we will get acquainted with these features. Next, I will talk about data formats in cells and how they can be changed. By the end of the lesson, we will receive a family budget form filled in with initial data. So, the sixth video:

    Lesson 7

    In the seventh video tutorial on the basics of Microsoft Excel, we will talk about the most interesting thing - about formulas and calculations. Microsoft Excel has a very powerful toolkit for performing various calculations. We will learn how to perform basic calculations using spreadsheets, then we will get acquainted with the function wizard, which greatly simplifies the process of creating formulas for performing calculations. So, the seventh video:

    Lesson 8

    In the eighth video tutorial on the basics of Microsoft Excel, we will completely finish working on the family budget form. We will compose all the necessary formulas and carry out the final formatting of rows and columns. The family budget form will be ready and if you keep your family budget, you will be able to adjust it to fit your expenses and income. So, the eighth video:

    Lesson 9

    In the final ninth lesson on the basics of Microsoft Excel, we will learn how to create charts and graphs. Microsoft Excel has a very impressive toolkit for visualizing the results of calculations. In the form of graphs, charts and histograms, you can present any data, both simply entered into a spreadsheet, and data obtained as a result of calculations. So, the final ninth video:

    - Formula entry order

    - Relative, absolute and mixed links

    - Using text in formulas

    Now we pass to the most interesting - creation of formulas. Actually, this is what spreadsheets were developed for.

    How to enter a formula

    You must enter the formula with an equal sign. This is necessary so that Excel understands that it is the formula that is being entered into the cell, and not the data.

    Select an arbitrary cell, for example A1. In the formula bar, enter =2+3 and press Enter. The result (5) will appear in the cell. And the formula itself will remain in the formula bar.

    Experiment with different arithmetic operators: addition (+), subtraction (-), multiplication (*), division (/). To use them correctly, you need to clearly understand their priority.

    The expressions inside the parentheses are executed first.

    Multiplication and division have higher precedence than addition and subtraction.

    Operators with the same precedence are executed from left to right.

    My advice to you is USE BRACKETS. In this case, you will protect yourself from accidental errors in calculations, on the one hand, and on the other hand, brackets make it much easier to read and analyze formulas. If the number of closing and opening brackets in the formula does not match, Excel will display an error message and offer a suggestion for correcting it. Immediately after entering the closing bracket, Excel displays the last pair of brackets in bold (or in a different color), which is very convenient when there are a lot of brackets in the formula.

    Now let's let's try to work using references to other cells in formulas.

    Enter the number 10 in cell A1, and the number 15 in cell A2. In cell A3, enter the formula =A1+A2. The sum of cells A1 and A2 - 25 will appear in cell A3. Change the values ​​of cells A1 and A2 (but not A3!). After changing the values ​​in cells A1 and A2, the value of cell A3 is automatically recalculated (according to the formula).

    In order not to make mistakes when entering cell addresses, you can use the mouse when entering links. In our case, we need to do the following:

    Select cell A3 and enter the equal sign in the formula bar.

    Click on cell A1 and enter a plus sign.

    Click on cell A2 and press Enter.

    The result will be the same.

    Relative, absolute and mixed links

    To better understand the link differences, let's experiment.

    A1 - 20 B1 - 200

    A2 - 30 B2 - 300

    In cell A3, enter the formula =A1+A2 and press Enter.

    Now place the cursor on the lower right corner of cell A3, press the right mouse button and drag to cell B3 and release the mouse button. A context menu will appear in which you need to select "Copy Cells".

    After that, the formula value from cell A3 will be copied to cell B3. Activate cell B3 and see what formula you get - B1 + B2. Why did it happen? When we wrote the formula A1 + A2 in cell A3, Excel interpreted this entry as follows: "Take the values ​​​​from the cell located in the current column two rows higher and add to the value of the cell located in the current column one row higher." Those. copying the formula from cell A3, for example, into cell C43, we get - C41 + C42. This is the beauty of relative links, the formula, as it were, adapts itself to our tasks.

    Enter the following values ​​in the cells:

    A1 - 20 B1 - 200

    A2 - 30 B2 - 300

    Enter the number 5 in cell C1.

    In cell A3, enter the following formula =A1+A2+$C$1. Copy the formula from A3 to B3 in the same way. See what happened. Relative links "adjusted" to the new values, but the absolute one remained unchanged.

    Now try experimenting with mixed links yourself and see how they work. You can refer to other sheets in the same workbook just as you would to cells in the current sheet. You can even link to sheets in other books. In this case, the link will be called an external link.

    For example, to write in cell A1 (Sheet 1) a link to cell A5 (Sheet 2), you need to do the following:

    Select cell A1 and enter the equal sign;

    Click on the label "Sheet 2";

    Click on cell A5 and press the enter key;

    after that, Sheet 1 will be activated again and the following formula will appear in cell A1 = Sheet2! A5.

    Editing formulas is similar to editing text values ​​in cells. Those. it is necessary to activate the cell with the formula by selection or double-clicking, and then edit it using, if necessary, the Del, Backspace keys. Committing changes is done with the Enter key.

    Using text in formulas

    You can perform mathematical operations on text values ​​if the text values ​​contain only the following characters:

    Numbers from 0 to 9, + - e E /

    You can also use five numeric formatting characters:

    $ % () space

    In this case, the text must be enclosed in double quotes.

    Wrong: =$55+$33

    Correct: ="$55"+$"33"

    When performing calculations, Excel converts numeric text to numeric values, so the result of the above formula is 88.

    The text operator & (ampersand) is used to concatenate text values. For example, if cell A1 contains the text value "Ivan", and cell A2 - "Petrov", then entering the following formula in cell A3 =A1&A2, we get "IvanPetrov".

    To insert a space between the first and last name, write: =A1&" "&A2.

    The ampersand can be used to combine cells with different data types. So, if cell A1 contains the number 10, and cell A2 contains the text "bags", then as a result of the formula =A1&A2, we get "10bags". Moreover, the result of such a union will be a text value.

    Excel Functions - Introduction

    Functions

    AutoSum

    Using headings in formulas

    Functions

    Functionexcel is a predefined formula that operates on one or more values ​​and returns a result.

    The most common Excel functions are shorthand for commonly used formulas.

    For example function =SUM(A1:A4) similar to the entry =A1+A2+A3+A4.

    And some functions perform very complex calculations.

    Each function is made up of name And argument.

    In the previous case SUM- This Name functions, and A1:A4-argument. The argument is enclosed in parentheses.

    AutoSum

    Because Since the sum function is used most often, the "Autosum" button has been placed on the "Standard" toolbar.

    Enter arbitrary numbers in cells A1, A2, A3. Activate cell A4 and press the autosum button. The result is shown below.

    Press the enter key. The formula for the sum of cells A1..A3 will be inserted into cell A4. The AutoSum button has a drop-down list from which you can select a different formula for the cell.

    To select a function, use the "Insert function" button in the formula bar. When pressed, the following window appears.

    If you don't know exactly what function you want to apply at the moment, you can search in the "Search for Function" dialog box.

    If the formula is very cumbersome, then you can include spaces or line breaks in the text of the formula. This does not affect the calculation results in any way. To break a line, press Alt+Enter.

    Using headings in formulas

    You can use table headers instead of references to table cells in formulas. Build the following example.

    By default, Microsoft Excel does not recognize headings in formulas. To use headings in formulas, choose Options on the Tools menu. On the Calculations tab, in the Book Options group, select the Allow range names check box.

    In normal writing, the formula in cell B6 would look like this: \u003d SUM (B2: B4).

    When using headings, the formula will look like this: \u003d SUM (Q 1).

    You need to know the following:

    If a formula contains the header of the column/row it is in, then Excel assumes that you want to use the range of cells below the table column header (or to the right of the row header);

    If a formula contains a different column/row header than the one it is in, Excel assumes that you want to use the cell at the intersection of the column/row with that header and the row/column where the formula is located.

    When using headings, you can specify any cell in the table using - range intersections. For example, to refer to cell C3 in our example, you can use the formula =Row2 Sq 2. Notice the space between the row and column headings.

    Formulas containing headings can be copied and pasted, and Excel automatically adjusts them to the desired columns and rows. If an attempt is made to copy the formula to the wrong place, Excel will report this and display the value NAME? in the cell. When changing the names of the headings, similar changes occur in the formulas.

    «Data entry in Excel || Excel || Excel Cell Names

    Cell and range names inexcel

    - Names in formulas

    - Naming in the name field

    - Rules for naming cells and ranges

    Excel cells and ranges of cells can be named and then used in formulas. While formulas containing headings can only be used in the same worksheet as the table, range names can refer to table cells anywhere in any workbook.

    Names in formulas

    The name of a cell or range can be used in a formula. Let us have the formula A1 + A2 in cell A3. If you name cell A1 "Basic" and cell A2 - "Supplement", then the entry Base + Superstructure will return the same value as the previous formula.

    Naming the name field

    To assign a name to a cell (a range of cells), select the corresponding element, and then enter a name in the name field, while spaces cannot be used.

    If the selected cell or range has been given a name, the name field displays that name, not the cell reference. If a name is defined for a range of cells, it will only appear in the name box when the entire range is selected.

    If you want to navigate to a named cell or range, click the arrow next to the name field and select the name of the cell or range from the drop-down list.

    More flexible options for naming cells and their ranges, as well as titles, are provided by the "Name" command from the "Insert" menu.

    Cell and Range Naming Rules

    The name must start with a letter, a backslash (\), or an underscore (_).

    Only letters, numbers, backslashes, and underscores can be used in the name.

    You cannot use names that can be interpreted as cell references (A1, C4).

    Single letters can be used as names, except for the letters R,C.

    Spaces must be replaced with underscores.

    "Excel Functions|| Excel || Arrays Excel»

    Arraysexcel

    - Using arrays

    - Two-dimensional arrays

    - Rules for array formulas

    Arrays in Excel are used to create formulas that return a set of results or operate on a set of values.

    Using Arrays

    Let's look at a few examples in order to better understand arrays.

    Let's calculate, using arrays, the sum of the values ​​in the rows for each column. To do this, do the following:

    Enter numeric values ​​in the range A1:D2.

    Select the range A3:D3.

    In the formula bar, enter =A1:D1+A2:D2.

    Press the key combination Ctrl+Shift+Enter.

    Cells A3:D3 form an array range, and the array formula is stored in each cell of this range. The array of arguments are references to the ranges A1:D1 and A2:D2

    2D arrays

    In the previous example, array formulas were placed in a horizontal one-dimensional array. You can create arrays that contain multiple rows and columns. Such arrays are called two-dimensional.

    Rules for array formulas

    Before entering an array formula, you must select the cell or range of cells that will contain the results. If the formula returns multiple values, you must select a range that is the same size and shape as the source data range.

    Press Ctrl+Shift+Enter to commit the input of an array formula. This causes Excel to wrap the formula in curly braces in the formula bar. DO NOT MANUALLY ENTER CURLY BRACES!

    In a range, you cannot edit, clear, or move individual cells, or insert or delete cells. All cells in the range of the array must be considered as a single unit and edited all of them at once.

    To change or clear an array, select the entire array and activate the formula bar. After changing the formula, press the key combination Ctrl+Shift+Enter.

    To move the contents of an array range, select the entire array and select the Cut command from the Edit menu. Then select the new range and choose Paste from the Edit menu.

    You are not allowed to cut, clear, or edit part of an array, but you can assign different formats to individual cells in an array.

    "Excel Cells and Ranges|| Excel || Formatting in Excel »

    Assigning and removing formats inexcel

    - Format assignment

    - Delete format

    - Formatting with toolbars

    - Formatting individual characters

    - Apply autoformat

    Formatting in Excel is used to facilitate the perception of data, which plays an important role in productivity.

    Format Purpose

    Select the command "Format" - "Cells" (Ctrl + 1).

    In the dialog box that appears (the window will be discussed in detail later), enter the desired formatting options.

    Click the "OK" button

    A formatted cell retains its format until a new format is applied to it or the old one is deleted. When you enter a value into a cell, the format already used in the cell is applied to it.

    Deleting a format

    Select a cell (range of cells).

    Select the command "Edit" - "Clear" - "Formats".

    To delete values ​​in cells, select the "All" command from the "Clear" submenu.

    Keep in mind that when you copy a cell, along with its contents, the format of the cell is also copied. Thus, you can save time by formatting the original cell before using the copy and paste commands.

    Formatting with toolbars

    The most frequently used formatting commands are placed on the "Formatting" toolbar. To apply a format using a toolbar button, select a cell or range of cells, and then click the button. To delete a format, press the button again.

    To quickly copy formats from selected cells to other cells, you can use the Format Painter button on the Formatting toolbar.

    Formatting individual characters

    Formatting can be applied to individual characters of a text value in a cell in the same way as it can be applied to an entire cell. To do this, select the desired characters and then select the "Cells" command from the "Format" menu. Set the desired attributes and click OK. Press the Enter key to see the results of your work.

    Applying AutoFormat

    Excel automatic formats are predefined combinations of number format, font, alignment, borders, pattern, column width, and row height.

    To use autoformat, follow these steps:

    Enter the required data in the table.

    Select the range of cells you want to format.

    From the Format menu, select AutoFormat. This will open a dialog box.

    In the AutoFormat dialog box, click the Options button to display the Edit area.

    Select the appropriate auto-format and click OK.

    Select a cell outside the table to deselect the current block and you will see the formatting results.

    "Excel Arrays|| Excel || Formatting Numbers in Excel »

    Format numbers and text in Excel

    -General format

    -Number formats

    -Money formats

    -Financial formats

    -Percentage formats

    - Fractional formats

    - Exponential formats

    -Text format

    -Additional formats

    -Creation of new formats

    The "Format Cells" dialog box (Ctrl+1) allows you to control the display of numerical values ​​and change the text output.

    Before opening the dialog box, select the cell containing the number you want to format. In this case, the result will always be visible in the "Sample" field. Keep in mind the difference between stored and displayed values. Stored numeric or text values ​​in cells are not affected by formats.

    General format

    Any text or numeric value entered is displayed in the General format by default. In this case, it is displayed exactly as it was entered into the cell, with the exception of three cases:

    Long numeric values ​​are displayed in exponential notation or rounded off.

    The format does not display trailing zeros (456.00 = 456).

    A decimal entered without a number to the left of the decimal point is output with a zero (,23 = 0.23).

    Numeric formats

    This format allows you to output numeric values ​​as integers or fixed-point numbers, and highlight negative numbers with color.

    Money formats

    These formats are similar to number formats, except that instead of a thousands separator, they allow you to control the output of the currency symbol, which you can select from the Symbol list.

    Financial formats

    The financial format basically corresponds to the currency formats - you can display a number with or without a currency unit with a given number of decimal places. The main difference is that the financial format displays the currency left-aligned, while the number itself is right-aligned in the cell. As a result, both the currency and the numbers are vertically aligned in the column.

    Percentage formats

    This format displays numbers as percentages. The decimal point in the formatted number is shifted two places to the right, and the percent sign is displayed at the end of the number.

    Fractional formats

    This format outputs fractional values ​​as fractions rather than decimals. These formats are especially useful when watering stock prices or measurements.

    Exponential formats

    Scientific formats display numbers in exponential notation. This format is very useful for displaying and displaying very small or very large numbers.

    Text format

    Applying a text format to a cell means that the value in that cell should be treated as text, as evidenced by left-alignment of the cell.

    It doesn't matter if the numeric value is formatted as text, because Excel is capable of recognizing numeric values. An error will occur if a cell that has a text format contains a formula. In this case, the formula is treated as plain text, so errors are possible.

    Additional formats

    Creation of new formats

    To create a format based on an existing format, do the following:

    Select the cells to be formatted.

    Press the key combination Ctrl + 1 and on the "Number" tab of the dialog box that opens, select the "All formats" category.

    In the Type list, select the format you want to change and edit the contents of the field. This will keep the original format unchanged and add the new format to the Type list.

    "Formatting in Excel || Excel ||

    Aligning the contents of Excel cells

    - Align left, center and right

    -Filling cells

    -Word wrap and justify

    -Vertical alignment and text orientation

    -Auto-size characters

    The Alignment tab of the Format Cells dialog box controls the arrangement of text and numbers in cells. This tab can also be used to create multi-line labels, repeat a series of characters in one or more cells, change text orientation.

    Align left, center and right

    When you select Align Left, Align Center, or Align Right, the contents of the selected cells are aligned to the left, center, or right of the cell, respectively.

    When left-aligned, you can change the amount of indentation, which defaults to zero. Increasing the indent by one unit moves the value in the cell one character width to the right, which is approximately the width of a capital X in the Normal style.

    Filling cells

    The Filled format repeats the value entered in the cell to fill the full width of the column. For example, in the worksheet shown in the figure above, cell A7 repeats the word "Fill". Although the range of cells A7-A8 appears to contain many words "Fill", the formula bar suggests that there is actually only one word. Like all other formats, the Filled format only affects the appearance, not the stored content of the cell. Excel repeats characters across the entire range with no gaps between cells.

    It may seem that repeating characters are as easy to type with the keyboard as they are with padding. However, the Filled format provides two important advantages. First, if you adjust the column width, Excel increments or decrements the number of characters in the cell as appropriate. Secondly, you can repeat a character or characters in several neighboring cells at once.

    Since this format affects numeric values ​​in the same way as text, the number may look completely different from what it should be. For example, if you apply this format to a cell that is 10 characters wide and contains the number 8, that cell will display 8888888888.

    Word wrap and justify

    If you enter a label that is too long for the active cell, Excel expands the label beyond the cell, provided that adjacent cells are empty. If you then on the "Alignment" tab, check the "Wrap by words" box, Excel will display this inscription completely within one cell. To do this, the program will increase the height of the line in which the cell is located, and then place the text on additional lines inside the cell.

    When using the Justify horizontal alignment format, the text in the active cell is word-wrapped on additional lines within the cell and aligned to the left and right edges with automatic line height adjustment.

    If you create a multi-line text box and subsequently clear the Wrap By Words check box or use a different horizontal alignment format, Excel restores the original line height.

    The "By Height" vertical alignment format does essentially the same thing as its "By Width" counterpart, except that it aligns the cell's value with respect to its top and bottom edges rather than its sides.

    Vertical alignment and text orientation

    Excel provides four vertical text alignment formats: top, center, bottom, height.

    The Orientation area lets you position cell content vertically from top to bottom or obliquely up to 90 degrees clockwise or counterclockwise. Excel automatically adjusts the row height for vertical orientation unless you manually set the row height yourself earlier or later.

    Auto-size characters

    The "AutoFit Width" checkbox reduces the size of the characters in the selected cell so that its contents fit entirely in the column. This can be useful when working with a worksheet in which setting the column width to long has an undesirable effect on the rest of the data, or in that case. When using vertical or italic text, word wrap is not an acceptable solution. In the figure below, cells A1 and A2 have the same text entered, but Cell A2 has the AutoFit check box selected. When changing the column width, the size of the characters in cell A2 will decrease or increase accordingly. However, this preserves the font size assigned to the cell, and if you increase the column width beyond a certain value, the character size will not be adjusted.

    It should be said that although this format is a good way to solve some problems, it must be borne in mind that the size of the characters can be arbitrarily small. If the column is narrow and the value is long enough, then after applying this format, the contents of the cell may become unreadable.

    "Custom Format || Excel || Font in Excel»

    Using cell borders and shadingexcel

    -Using borders

    -Apply colors and patterns

    -Use fill

    Using Borders

    Cell borders and shading can be a good way to decorate different areas of a worksheet or draw attention to important cells.

    To select a line type, click on any of the thirteen types of border line, including four solid lines of different thicknesses, a double line, and eight types of dashed lines.

    By default, the color of the border line is black when the Color field is set to Auto on the View tab of the Options dialog box. To select a color other than black, click the arrow to the right of the Color box. The current 56-color palette will open, allowing you to use one of the available colors or define a new one. Note that you must use the "Color" list on the "Border" tab to select the border color. If you try to do this using the formatting toolbar, you will change the color of the text in the cell, not the color of the border.

    After choosing the type and color of the line, you need to specify the position of the border. When you click the "Outer" button in the "All" area, the border is placed around the perimeter of the current selection, whether it is a single cell or a block of cells. To remove all borders from the selection, click the None button. The viewport allows you to control the placement of the borders. When you first open the dialog box for a single selected cell, this area contains only small handles that indicate the corners of the cell. To place a border, click on the viewport where the border should be, or click the appropriate button next to the region. If several cells are selected in the worksheet, then the "Internal" button becomes available on the "Border" tab, with which you can add borders between the selected cells. In addition, additional markers appear in the viewport on the sides of the selection, indicating where the inner boundaries will go.

    To remove a placed border, simply click on it in the viewport. If you want to change the format of the border, select a different line type or color and click that border in the preview area. If you want to start placing borders again, click the No button in the All area.

    You can apply several types of borders to selected cells at the same time.

    You can apply border combinations using the Borders button on the Formatting toolbar. When you click on the small arrow next to this button, Excel will display a border palette where you can choose the type of border.

    The palette consists of 12 border options, including combinations of different types, such as a single top border and a double bottom border. The first option in the palette removes all border formats in the selected cell or range. Other options show a thumbnail of the location of a border or a combination of borders.

    As a practice, try to make a small example below. To break a line, you must press the Enter key while pressing Alt.

    Applying color and patterns

    The View tab of the Format Cells dialog box is used to apply color and patterns to selected cells. This tab contains the current palette and a drop-down pattern palette.

    The Color palette on the View tab lets you set the background for selected cells. If you select a color in the Color palette without selecting a pattern, the specified background color will appear in the selected cells. If you select a color in the Color palette and then a pattern in the Pattern drop-down palette, that pattern is superimposed on the background color. The colors in the Pattern drop-down palette control the color of the pattern itself.

    Using a fill

    The various cell shading options provided by the View tab can be used to visually design your worksheet. For example, shading can be used to highlight summary data, or to draw attention to data entry cells on a worksheet. To make it easier to view numerical data by row, you can use the so-called "stripe fill" when rows of different colors alternate.

    Choose a cell background color that makes it easy to read text and numbers displayed in the default black font.

    Excel allows you to add a background image to your worksheet. To do this, select the command "Sheet" - "Substrate" from the "Format" menu. A dialog box will appear allowing you to open a graphic file stored on disk. This graphic is then used as the background of the current worksheet, similar to watermarks on a sheet of paper. The graphic image is repeated if necessary until the entire worksheet is filled. You can disable the display of grid lines in the sheet, to do this, in the "Tools" menu, select the "Options" command and on the "View" tab and uncheck the "Grid" box. Cells that are assigned a color or pattern display only the color or pattern, not a graphical background image.

    "Excel Font|| Excel || Merging Cells »

    Conditional Formatting and Merging Cells

    - Conditional formatting

    - Merge cells

    - Conditional formatting

    Conditional formatting allows you to apply formats to specific cells that remain dormant until the values ​​in those cells reach some control value.

    Select the cells to be formatted, then from the "Format" menu, select the "Conditional Formatting" command, you will see the dialog box shown below.

    The first combo box in the Conditional Formatting dialog box lets you choose whether the condition should be applied to the value or the formula itself. Typically, the Value option is selected, in which the format applied depends on the values ​​of the selected cells. The Formula option is useful when you want to specify a condition that uses data from unselected cells, or you need to create a complex condition that includes multiple criteria. In this case, in the second combo box, enter a logical formula that takes the value TRUE or FALSE. The second combo box is used to select the comparison operator used to set the formatting condition. The third field is used to set the value to be compared. If the operator "Between" or "Outside" is selected, then an additional fourth field appears in the dialog box. In this case, the lower and upper values ​​must be specified in the third and fourth fields.

    After setting the condition, click the "Format" button. The Format Cells dialog box opens, allowing you to select the font, borders, and other format attributes that should be applied when the specified condition is met.

    In the example below, the following format is set: font color - red, font - bold. Condition: if the value in the cell is greater than "100".

    Sometimes it's hard to tell where conditional formatting has been applied. To select all cells with conditional formatting in the current worksheet, choose the Go command from the Edit menu, click the Select button, then select the Conditional Format radio button.

    To remove a formatting condition, select a cell or range, and then choose Conditional Formatting from the Format menu. Specify the conditions you want to remove and click OK.

    Merging cells

    The grid is a very important design element in spreadsheet design. Sometimes, to achieve the desired effect, it is necessary to format the mesh in a special way. Excel allows you to merge cells, which gives the grid new features that you can use to create clearer forms and reports.

    When cells are merged, one cell is formed, the dimensions of which coincide with the dimensions of the original selection. The merged cell gets the address of the top left cell of the original range. The remaining original cells practically cease to exist. If a formula contains a reference to such a cell, it is treated as empty, and depending on the type of formula, the reference may return a null or erroneous value.

    To merge cells, do the following:

    Select source cells;

    In the "Format" menu, select the "Cells" command;

    On the "Alignment" tab of the "Format Cells" dialog box, check the "Merge Cells" box;

    Press "OK".

    If this command has to be used quite often, then it is much more convenient to "pull" it to the toolbar. To do this, select the "Tools" - "Settings ..." menu, in the window that appears, go to the "Commands" tab and select the "Formatting" category in the right window. In the left "Commands" window, using the scroll bar, find "Cell Merge" and drag this icon (using the left mouse button) to the "Formatting" toolbar.

    Merging cells has a number of consequences, most notably breaking the grid, one of the main attributes of spreadsheets. In this case, some nuances should be taken into account:

    If only one cell in the selected range is non-empty, then when merged, its contents are relocated in the merged cell. So, for example, when merging cells in the range A1:B5, where cell A2 is non-empty, this cell will be transferred to the merged cell A1;

    If multiple cells in the selected range contain values ​​or formulas, then only the contents of the top left cell are retained when merged and are relocated in the merged cell. The contents of the remaining cells are deleted. If you need to save data in these cells, then before merging, you should add them to the upper left cell or move them to another place outside the selection;

    If the merging range contains a formula that is relocated in the merged cell, the relative references in the merged cell are automatically adjusted;

    Merged Excel cells can be copied, cut and pasted, deleted, and dragged just like normal cells. After copying or moving a merged cell, it occupies the same number of cells in the new location. In place of the cut or deleted merged cell, the standard cell structure is restored;

    When cells are merged, all borders are removed, except for the outer border of the entire selection, as well as the border that is applied to any edge of the entire selection.

    "Borders and shading || Excel || Editing"

    Cutting and pasting cells inexcel

    Cut and paste

    Cut and paste rules

    Insert cut cells

    Cut and paste

    The Cut and Paste commands on the Edit menu can be used to move values ​​and formats from one place to another. Unlike the Delete and Clear commands, which delete cells or their contents, the Cut command places a movable dashed border around the selected cells and places a copy of the selection on the clipboard, which saves the data so that it can be pasted into another place.

    After selecting the range into which to move the cut cells, the Paste command places them in a new location, clears the contents of the cells inside the moving frame, and removes the moving frame.

    When you use the Cut and Paste commands to move a range of cells, Excel cleans up the content and formats in the cut range and moves them to the paste range.

    When you do this, Excel adjusts any formulas outside the clipping region that refer to those cells.

    Cut and paste rules

    The selected cutout area must be a single rectangular block of cells;

    When using the "Cut" command, the paste is performed only once. To paste the selected data into several places, use the "Copy"-"Clear" command combination;

    It is not necessary to select the entire paste range before using the Paste command. When you select one cell as the paste range, Excel expands the paste area to match the size and shape of the area being cut. The selected cell is considered to be the top left corner of the insertion area. If the entire paste area is selected, then you need to make sure that the selected range has the same size as the cut area;

    When you use the Paste command, Excel replaces the content and formats in all existing cells in the pasting range. If you don't want to lose the contents of existing cells, make sure that there are enough empty cells in the worksheet to accommodate the entire cutout area, below and to the right of the selected cell, which will end up in the upper left corner of the screen area.

    Insert cut cells

    When you use the Paste command, Excel inserts the cut cells into the selected area of ​​the worksheet. If the selected area already contains data, then they are replaced by the inserted values.

    In some cases, you can paste clipboard content between cells instead of placing it in existing cells. To do this, use the "Cut Cells" command of the "Insert" menu instead of the "Paste" command of the "Edit" menu.

    The "Cut Cells" command replaces the "Cells" command and appears only after deleting data to the clipboard.

    For example, in the example below, cells A5:A7 were originally cut (the "Cut" command of the "Edit" menu); then cell A1 was made active; then executed the "Cut Cells" command from the "Insert" menu.

    "Filling rows || Excel || Excel Functions»

    Functions. Function Syntaxexcel

    Function Syntax

    Using Arguments

    Argument types

    In lesson number 4, we already made the first acquaintance with Excel functions. Now it's time to take a closer look at this powerful spreadsheet toolkit.

    Excel functions are special, pre-built formulas that allow you to easily and quickly perform complex calculations. They can be compared with special keys on calculators designed to calculate square roots, logarithms, and so on.

    Excel has several hundred built-in functions that perform a wide range of different calculations. Some functions are the equivalent of long math formulas that you can do yourself. And some functions in the form of formulas cannot be implemented.

    Function Syntax

    Functions consist of two parts: the name of the function and one or more arguments. The name of a function, such as SUM, describes the operation that this function performs. The arguments specify the values ​​or cells used by the function. In the formula below: SUM is the name of the function; B1:B5 - argument. This formula sums up the numbers in cells B1, B2, B3, B4, B5.

    SUM(B1:B5)

    An equal sign at the beginning of a formula means that the formula is entered, not text. If there is no equal sign, then Excel will treat the input as just text.

    The function argument is enclosed in parentheses. An opening parenthesis marks the start of an argument and is placed immediately after the function name. If you enter a space or other character between the name and the opening bracket, the cell will display the erroneous value #NAME? Some functions take no arguments. Even in this case, the function must contain parentheses:

    Using Arguments

    When multiple arguments are used in a function, they are separated from one another by a semicolon. For example, the following formula indicates that you need to multiply the numbers in cells A1, A3, A6:

    PRODUCT(A1, A3, A6)

    You can use up to 30 arguments in a function, as long as the total length of the formula does not exceed 1024 characters. However, any argument can be a range containing an arbitrary number of worksheet cells. For example:

    Argument types

    In the previous examples, all of the arguments were cell or range references. But you can also use numeric, text, boolean, range names, arrays, and erroneous values ​​as arguments. Some functions return values ​​of these types, and they can later be used as arguments in other functions.

    Numeric values

    Function arguments can be numeric. For example, the SUM function in the following formula adds the numbers 24, 987, 49:

    SUM(24;987;49)

    Text values

    Text values ​​can be used as a function argument. For example:

    TEXT(TDATE(); "D MMM YYYY")

    In this formula, the second argument to the TEXT function is text and specifies a template for converting the decimal date value returned by the NOW(NOW) function to a character string. The text argument can be a character string enclosed in double quotes, or a cell reference that contains text.

    Boolean values

    Arguments to some functions can only take the boolean values ​​TRUE or FALSE. The boolean expression returns TRUE or FALSE in the cell or formula that contains the expression. For example:

    IF(A1=TRUE;"Increase","Decrease")&"prices"

    You can specify the name of a range as an argument to the function. For example, if the cell range A1:A5 is named "Debit" (Insert-Name-Assign), then to calculate the sum of the numbers in cells A1 through A5, you can use the formula

    SUM(Debit)

    Using Different Types of Arguments

    You can use different types of arguments in the same function. For example:

    AVERAGE(Debit;C5;2*8)

    "Insert Cells || Excel || Entering Excel Functions »

    Entering Functions in a Worksheetexcel

    You can enter functions in a worksheet directly from the keyboard or using the "Function" command of the "Insert" menu. When entering a function from the keyboard, it is better to use lowercase letters. When you finish entering a function, Excel will change the letters in the function name to uppercase if it was entered correctly. If the letters do not change, then the function name was entered incorrectly.

    If you select a cell and select Function from the Insert menu, Excel displays the Function Wizard dialog box. You can achieve this a little faster by pressing the function icon key in the formula bar.

    You can also open this window using the "Insert function" button on the standard toolbar.

    In this window, first select a category from the "Category" list, and then select the desired function from the "Function" alphabetical list.

    Excel will enter an equal sign, the name of the function, and a pair of parentheses. Excel will then open a second Function Wizard dialog box.

    The second dialog box of the Function Wizard contains one field for each argument of the selected function. If the function has a variable number of arguments, this dialog box expands when additional arguments are given. The description of the argument whose field contains the insertion point is displayed at the bottom of the dialog box.

    To the right of each argument field, its current value is displayed. This is very handy when you use links or names. The current value of the function is displayed at the bottom of the dialog box.

    Click the "OK" button and the created function will appear in the formula bar.

    "Syntax of functions || Excel || Math Functions»

    Math functionsexcel

    Here are the most commonly used Excel math functions (quick reference). Additional information about functions can be found in the Function Wizard dialog box, as well as in the Excel help system. In addition, many mathematical functions are included in the Analysis ToolPak.

    SUM function (SUM)

    EVEN and ODD functions

    Functions FRAMEDOWN, FRAMEUP

    INTEGER and SELECT functions

    RAND and RANDBETWEEN functions

    PRODUCT function

    MOD function

    ROOT function

    COMBIN function

    ISNUMBER function

    LOG function

    LN function

    EXP function

    PI function

    RADIANS and DEGREES function

    SIN function

    COS function

    TAN function

    SUM function (SUM)

    The SUM function adds up a set of numbers. This function has the following syntax:

    SUM(numbers)

    The number argument can have up to 30 elements, each of which can be a number, a formula, a range, or a cell reference that contains or returns a numeric value. The SUM function ignores arguments that refer to empty cells, text, or Boolean values. The arguments do not have to form contiguous ranges of cells. For example, to get the sum of the numbers in cells A2, B10, and cells C5 through K12, enter each link as a separate argument:

    SUM(A2,B10,C5:K12)

    ROUND, ROUNDDOWN, ROUNDUP functions

    The ROUND function rounds the number given by its argument to the specified number of decimal places and has the following syntax:

    ROUND(number, number_of_digits)

    The number argument can be a number, a cell reference that contains a number, or a formula that returns a numeric value. The num_digits argument, which can be any positive or negative integer, determines how many digits to round. Specifying a negative number_digits argument rounds to the specified number of digits to the left of the decimal point, while setting the number_digits argument to 0 rounds to the nearest whole number. Excel numbers that are less than 5 are deficient (down), and numbers that are greater than or equal to 5 are in excess (up).

    The ROUNDDOWN and ROUNDUP functions have the same syntax as the ROUND function. They round values ​​down (under) or up (over).

    EVEN and ODD functions

    To perform rounding operations, you can use the EVEN (EVEN) and ODD (ODD) functions. The EVEN function rounds a number up to the nearest even integer. The ODD function rounds a number up to the nearest odd integer. Negative numbers are rounded down, not up. Functions have the following syntax:

    EVEN(number)

    ODD(number)

    Functions FRAMEDOWN, FRAMEUP

    The FLOOR and CEILING functions can also be used to perform rounding operations. The FIRMWARE function rounds a number down to the nearest multiple of a given factor, and the FIRMWARE function rounds a number up to the nearest multiple of a given factor. These functions have the following syntax:

    FLOOR(number, multiplier)

    CURUP(number, multiplier)

    The number and multiplier values ​​must be numeric and have the same sign. If they have different characters, an error will be thrown.

    INTEGER and SELECT functions

    The INT function rounds a number down to the nearest integer and has the following syntax:

    INTEGER(number)

    The number argument is the number for which to find the next smallest integer.

    Consider the formula:

    INTEGER(10,0001)

    This formula will return the value 10, just like the following:

    WHOLE(10,999)

    The TRUNC function discards all digits to the right of the decimal point, regardless of the sign of the number. The optional argument number_digits specifies the position after which truncation is performed. The function has the following syntax:

    SELECT(number,number_of_digits)

    If the second argument is omitted, it is assumed to be zero. The following formula returns the value 25:

    OBR(25,490)

    The ROUND, INTEGER, and REFERENCE functions remove unnecessary decimal places, but they work differently. The ROUND function rounds up or down to the specified number of decimal places. The INT function rounds down to the nearest whole number, while the SET function discards decimal places without rounding. The main difference between the functions INTEGER and SELECT appears in the handling of negative values. If you use the value -10.900009 in the INT function, the result is -11, but if you use the same value in the SET function, the result is -10.

    RAND and RANDBETWEEN functions

    The RAND function generates random numbers evenly distributed between 0 and 1 and has the following syntax:

    The RAND function is one of the EXCEL functions that take no arguments. As with all functions that take no arguments, parentheses must be included after the function name.

    The value of the RAND function changes each time the worksheet is recalculated. If calculations are set to update automatically, the value of the RAND function changes each time data is entered in this worksheet.

    The RANDBETWEEN function, which is available when the Analysis ToolPak is installed, provides more options than RANDBETWEEN. For the RANDBETWEEN function, you can specify the interval of generated random integer values.

    Function syntax:

    RANDBETWEEN(start, end)

    The start argument specifies the smallest number that any integer from 111 to 529 can return (including both of these values):

    RANDOMBETWEEN(111,529)

    PRODUCT function

    The PRODUCT function multiplies all the numbers given by its arguments and has the following syntax:

    PRODUCT(number1,number2...)

    This function can have up to 30 arguments. Excel ignores any empty cells, text and boolean values.

    MOD function

    The MOD (MOD) function returns the remainder of a division and has the following syntax:

    MOD(number, divisor)

    The value of the MOD function is the remainder obtained when the number argument is divided by a divisor. For example, the following function will return the value 1, which is the remainder obtained when 19 is divided by 14:

    OSTAT(19;14)

    If the number is less than the divisor, then the value of the function is equal to the number argument. For example, the following function will return the number 25:

    OSTAT(25;40)

    If the number is exactly divisible by the divisor, the function returns 0. If the divisor is 0, the MOD function returns an erroneous value.

    ROOT function

    The SQRT (SQRT) function returns the positive square root of a number and has the following syntax:

    ROOT(number)

    The number argument must be a positive number. For example, the following function returns the value 4:

    ROOT(16)

    If the number is negative, SQRT returns an error value.

    COMBIN function

    The COMBIN function determines the number of possible combinations or groups for a given number of elements. This function has the following syntax:

    COMBIN(number,number_chosen)

    The number argument is the total number of elements, and num_chosen is the number of elements in each combination. For example, to determine the number of teams with 5 players that can be formed from 10 players, the formula is used:

    COMBIN(10;5)

    The result will be 252. That is, 252 teams can be formed.

    ISNUMBER function

    The ISNUMBER function determines whether a value is a number and has the following syntax:

    ISNUMBER(value)

    Let's say you want to know if the value in cell A1 is a number. The following formula returns TRUE if cell A1 contains a number or a formula that returns a number; otherwise it returns FALSE:

    NUMBER(A1)

    LOG function

    The LOG function returns the logarithm of a positive number to the given base. Syntax:

    LOG(number;base)

    If the base argument is not specified, then Excel assumes it is 10.

    LN function

    The LN function returns the natural logarithm of the positive number given as an argument. This function has the following syntax:

    EXP function

    The EXP function calculates the value of a constant raised to a given power. This function has the following syntax:

    The EXP function is the inverse of LN. For example, let's say cell A2 contains the formula:

    Then the following formula returns the value 10:

    PI function

    The PI function (PI) returns the value of the constant pi to 14 decimal places. Syntax:

    RADIANS and DEGREES function

    Trigonometric functions use angles expressed in radians, not degrees. The measurement of angles in radians is based on the constant pi and 180 degrees equals pi radians. Excel provides two functions, RADIANS and DEGREES, to help you work with trigonometric functions.

    You can convert radians to degrees using the DEGREES function. Syntax:

    DEGREES(angle)

    Here - angle is a number representing an angle measured in radians. To convert degrees to radians, use the RADIANS function, which has the following syntax:

    RADIANS(angle)

    Here - angle is a number representing an angle measured in degrees. For example, the following formula returns the value 180:

    DEGREES(3.14159)

    At the same time, the following formula returns the value 3.14159:

    RADIANS(180)

    SIN function

    The SIN function returns the sine of an angle and has the following syntax:

    SIN(number)

    COS function

    The COS function returns the cosine of an angle and has the following syntax:

    COS(number)

    Here the number is the angle in radians.

    TAN function

    The TAN function returns the tangent of an angle and has the following syntax:

    TAN(number)

    Here the number is the angle in radians.

    «Introduction of functions || Excel || Text Functions»

    Text functionsexcel

    Here are the most commonly used Excel text functions (quick reference). Additional information about functions can be found in the Function Wizard dialog box, as well as in the Excel help system.

    TEXT function

    RUBLE function

    DLSTR function

    CHAR and CODE CHAR function

    TRIM and CLEAN functions

    EXACT function

    ETEXT and ENETEXT functions

    Text functions convert numeric text values ​​to numbers and numeric values ​​to character strings (text strings), and also allow you to perform various operations on character strings.

    TEXT function

    The TEXT function converts a number into a text string with the specified format. Syntax:

    TEXT(value, format)

    The value argument can be any number, formula, or cell reference. The format argument determines how the returned string is displayed. You can use any of the formatting characters except for the asterisk to specify the format you want. The use of the General format is not allowed. For example, the following formula returns the text string 25.25:

    TEXT(101/4,"0.00")

    RUBLE function

    The RUBLE (DOLLAR) function converts a number to a string. However, RUBLE returns a currency string with the specified number of decimal places. Syntax:

    RUBLE(number, number_of_digits)

    In this case, Excel rounds the number if necessary. If the num_chars argument is omitted, Excel uses two decimal places, and if the value of this argument is negative, then the return value is rounded to the left of the decimal point.

    DLSTR function

    The LEN (LEN) function returns the number of characters in a text string and has the following syntax:

    DLSTR(text)

    The text argument must be a character string enclosed in double quotes or a cell reference. For example, the following formula returns the value 6:

    DLSTR("head")

    The DLSTR function returns the length of the displayed text or value, not the stored value of the cell. It also ignores leading zeros.

    CHAR and CODE CHAR function

    Any computer uses numeric codes to represent characters. The most common character encoding system is ASCII. In this system, numbers, letters, and other symbols are represented by numbers from 0 to 127 (255). The CHAR and CODE functions deal with ASCII codes. The CHAR function returns the character that corresponds to the specified ASCII numeric code, and the CODE function returns the ASCII code for the first character of its argument. Function syntax:

    CHAR(number)

    CODE(text)

    If you enter a character as a text argument, be sure to enclose it in double quotes, otherwise Excel will return an erroneous value.

    TRIM and CLEAN functions

    Often, leading and trailing spaces prevent values ​​from being sorted correctly in a worksheet or database. If you use text functions to work with worksheet texts, extra spaces can prevent formulas from working correctly. The TRIM function removes leading and trailing spaces from a string, leaving only one space between words. Syntax:

    TRIM(text)

    The CLEAN function is similar to the TRIM function, except that it removes all non-printable characters. The PRINT function is especially useful when importing data from other programs because some imported values ​​may contain non-printable characters. These characters may appear on worksheets as small squares or vertical lines. The CLEAN function allows you to remove non-printable characters from such data. Syntax:

    PRINT(text)

    EXACT function

    The EXACT function compares two lines of text for complete identity, case-sensitive. The formatting difference is ignored. Syntax:

    EXACT(text1, text2)

    If the arguments text1 and text2 are case-sensitive, the function returns TRUE; otherwise, FALSE. The text1 and text2 arguments must be character strings enclosed in double quotes, or cell references that contain text.

    UPPER, LOWER, and PROPER functions

    There are three functions in Excel that allow you to change the case of letters in text strings: UPPER, LOWER, and PROPER. The UPPER function converts all letters in a text string to uppercase, and LOWER to lowercase. The PROPER function capitalizes the first letter in each word and all letters immediately following non-letter characters; all other letters are converted to lowercase. These functions have the following syntax:

    UPPER(text)

    LOWER(text)

    PROPER(text)

    When working with already existing data, a situation often arises when you need to modify the original values ​​themselves, to which text functions are applied. You can enter a function in the same cells where these values ​​are, since the entered formulas will replace them. But you can create temporary formulas with a text function in free cells on the same line and copy the result to the clipboard. To replace the original values ​​with the modified ones, select the original text cells, choose Paste Special from the Edit menu, select the Values ​​radio button, and then click OK. After that, you can delete temporary formulas.

    ETEXT and ENETEXT functions

    The ISTEXT and ISNOTEXT functions check whether a value is a text value. Syntax:

    ISTEXT(value)

    ENETEXT(value)

    Suppose you want to determine if the value in cell A1 is text. If cell A1 contains text or a formula that returns text, you can use the formula:

    ETEXT(A1)

    In this case, Excel returns the logical value TRUE. Similarly, if you use the formula:

    ENETEXT(A1)

    Excel returns the boolean value FALSE.

    "Math Functions || Excel || String Functions»

    Functionsexcelto work with row elements

    FIND and SEARCH functions

    RIGHT and LEFT functions

    MID function

    REPLACE and SUBSTITUTE functions

    REPEAT function

    CONCATENATE function

    The following functions find and return parts of text strings or compose large strings from small ones: FIND (FIND), SEARCH (SEARCH), RIGHT (RIGHT), LEFT (LEFT), MID (MID), SUBSTITUTE (SUBSTITUTE), REPEAT (REPT), REPLACE (REPLACE), CONCATENATE (CONCATENATE).

    FIND and SEARCH functions

    The FIND and SEARCH functions are used to determine the position of one text string within another. Both functions return the character number from which the first occurrence of the searched string begins. The two functions work the same except that the FIND function is case-sensitive, while the SEARCH function accepts wildcard characters. Functions have the following syntax:

    FIND(search_text, search_text, start_position)

    SEARCH(search_text, search_text, start_position)

    The search_text argument specifies the text string to be found, and the search_text argument specifies the text to search. Any of these arguments can be a character string enclosed in double quotes or a cell reference. The optional start_position argument specifies the position in the text being viewed at which to start the search. The start_position argument should be used when lookup_text contains multiple occurrences of the search text. If this argument is omitted, Excel returns the position of the first occurrence.

    These functions return an error value when search_text is not contained in the search text, or start_position is less than or equal to zero, start_position is greater than the number of characters in the search text, or start_position is greater than the position of the last occurrence of the search text.

    For example, to determine the position of the letter "g" in the string "Garage gate", you need to use the formula:

    FIND("W", "Garage Door")

    This formula returns 5.

    If you don't know the exact sequence of characters you're looking for, you can use the SEARCH function and include the wildcard characters: question mark (?) and asterisk (*) in the search_text string. The question mark matches a single randomly typed character, and the asterisk matches any sequence of characters in the specified position. For example, to find the position of the names Anatoly, Alexey, Akakiy in the text in cell A1, you need to use the formula:

    SEARCH("A*d", A1)

    RIGHT and LEFT functions

    The RIGHT function returns the rightmost characters of the argument string, while the LEFT function returns the first (left) characters. Syntax:

    RIGHT(text, number_of_characters)

    LEFT(text, number_of_characters)

    The num_chars argument specifies the number of characters to extract from the text argument. These functions respect spaces, and therefore, if the text argument contains spaces at the beginning or end of the line, the function arguments should use the TRIM function.

    The number_of_chars argument must be greater than or equal to zero. If this argument is omitted, Excel treats it as 1. If the number_of_characters is greater than the number of characters in the text argument, then the entire argument is returned.

    MID function

    The MID function returns a specified number of characters from a string of text, starting at a specified position. This function has the following syntax:

    MID(text, start_position, number_of_characters)

    The text argument is the text string containing the characters to be extracted, start_position is the position of the first character to be extracted from the text (relative to the beginning of the string), and num_chars is the number of characters to extract.

    REPLACE and SUBSTITUTE functions

    These two functions replace characters in text. The REPLACE function replaces part of a text string with another text string and has the syntax:

    REPLACE(old_text, start_position, number_of_characters, new_text)

    The old_text argument is the text string to replace characters with. The next two arguments specify the characters to be replaced (relative to the beginning of the string). The new_text argument specifies the text string to insert.

    For example, cell A2 contains the text "Vasya Ivanov". To put the same text in cell A3, replacing the name, you need to insert the following function into cell A3:

    REPLACE(A2, 1, 5, "Petya")

    In the SUBSTITUTE function, the starting position and the number of characters to be replaced are not specified, but the replacement text is explicitly specified. The SUBSTITUTE function has the following syntax:

    SUBSTITUTE(text, old_text, new_text, entry_number)

    The entry_number argument is optional. It instructs Excel to replace only the given occurrence of the string old_text.

    For example, cell A1 contains the text "Zero is less than eight." We need to replace the word "zero" with "null".

    SUBSTITUTE(A1, "o", "y", 1)

    The number 1 in this formula indicates that only the first "o" in the row of cell A1 needs to be changed. If occurrence_num is omitted, Excel replaces all occurrences of old_text with new_text.

    REPEAT function

    The REPEAT function (REPT) allows you to fill a cell with a string of characters repeated a specified number of times. Syntax:

    REPEAT(text, number_of_repetitions)

    The text argument is a multiplied string of characters enclosed in quotation marks. The number_of_repeat argument specifies how many times the text should be repeated. If the number_of_repeats argument is 0, the REPEAT function leaves the cell blank, and if it is not an integer, this function discards the decimal places after the decimal point.

    CONCATENATE function

    The CONCATENATE function is the equivalent of the text operator & and is used to concatenate strings. Syntax:

    CONCATENATE(text1, text2,...)

    You can use up to 30 arguments in a function.

    For example, cell A5 contains the text "first half", the following formula returns the text "Total for the first half":

    CONCATENATE("Total for ";A5)

    "Text Functions || Excel || Logic functions"

    Logic functionsexcel

    IF function

    AND, OR, NOT functions

    Nested IF Functions

    TRUE and FALSE functions

    IS BLANK function

    Boolean expressions are used to write conditions that compare numbers, functions, formulas, textual or boolean values. Any logical expression must contain at least one comparison operator that defines the relationship between the elements of the logical expression. Below is a list of Excel comparison operators

    > More

    < Меньше

    >= Greater than or equal

    <= Меньше или равно

    <>Not equal

    The result of a logical expression is the logical value TRUE (1) or the logical value FALSE (0).

    IF function

    The IF (IF) function has the following syntax:

    IF(logical_expression, value_if_true, value_if_false)

    The following formula returns 10 if the value in cell A1 is greater than 3, and 20 otherwise:

    IF(A1>3;10;20)

    You can use other functions as arguments to the IF function. You can use text arguments in the IF function. For example:

    IF(А1>=4;"passed the test";"failed to pass the test")

    You can use text arguments in the IF function so that if the condition is not met, it returns an empty string instead of 0.

    For example:

    IF(SUM(A1:A3)=30,A10,"")

    The boolean_expression argument of the IF function can contain a text value. For example:

    IF(A1="Dynamo";10;290)

    This formula returns 10 if cell A1 contains the string "Dynamo", and 290 if it contains any other value. The match between the compared text values ​​must be exact, but not case sensitive. AND, OR, NOT functions

    Functions AND (AND), OR (OR), NOT (NOT) - allow you to create complex boolean expressions. These functions work in conjunction with simple comparison operators. The AND and OR functions can have up to 30 Boolean arguments and have the syntax:

    AND(boolean1, boolean2...)

    OR(boolean1, boolean2...)

    The NOT function has only one argument and the following syntax:

    NOT(boolean_value)

    The arguments of the AND, OR, NOT functions can be boolean expressions, arrays, or cell references containing boolean values.

    Let's take an example. Let Excel return the text "Pass" if the student has a GPA greater than 4 (cell A2) and absenteeism is less than 3 (cell A3). The formula will look like:

    IF(AND(A2>4,A3<3);"Прошел";"Не прошел")

    Despite the fact that the OR function has the same arguments as the AND, the results are completely different. So, if in the previous formula we replace the AND function with OR, then the student will pass if at least one of the conditions is met (average score is more than 4 or absenteeism is less than 3). Thus, the OR function returns the logical value TRUE if at least one of the logical expressions is true, and the AND function returns the logical value TRUE only if all the logical expressions are true.

    The function does NOT change the value of its argument to the opposite boolean value and is usually used in conjunction with other functions. This function returns Boolean TRUE if the argument is FALSE and Boolean FALSE if the argument is TRUE.

    Nested IF Functions

    Sometimes it can be very difficult to solve a logical problem only with the help of comparison operators and AND, OR, NOT functions. In these cases, nested IF functions can be used. For example, the following formula uses three IF functions:

    IF(A1=100, "Always", IF(AND(A1>=80, A1<100);"Обычно";ЕСЛИ(И(А1>=60;A1<80);"Иногда";"Никогда")))

    If the value in cell A1 is an integer, the formula reads as follows: "If the value in cell A1 is 100, return the string 'Always'. Otherwise, if the value in cell A1 is between 80 and 100, return 'Normal'. B otherwise, if the value in cell A1 is between 60 and 80, return the string “Sometimes.” And, if none of these conditions are met, return the string “Never.” In total, up to 7 levels of nesting of IF functions are allowed.

    TRUE and FALSE functions

    The TRUE and FALSE functions provide an alternative way to write the logical values ​​TRUE and FALSE. These functions take no arguments and look like this:

    For example, cell A1 contains a boolean expression. Then the following function will return "Pass" if the expression in cell A1 is TRUE:

    IF(A1=TRUE();"Go";"Stop")

    Otherwise, the formula will return "Stop".

    IS BLANK function

    If you want to determine if a cell is empty, you can use the ISBLANK function, which has the following syntax:

    NULL(value)

    "String Functions || Excel || Excel 2007"

    Internet