How to install hyphens in Excel. How to make a new line in an Excel cell? Remove hyphen using function and hyphen symbol

29.10.2019 Memory cards

Hello again! Today the topic of my post is the main movements during turning such as cutting speed and feed. These two components of cutting modes are fundamental when turning metal and other materials.

The main movement or cutting speed.

If we look at the figure given above, we will see that the main movement during the machine is performed by the workpiece. It can rotate both clockwise and counterclockwise. Basically, as we see, the rotation is directed towards the cutter, since this ensures the cutting of the surface layer from the workpiece and the formation of chips.

The rotation of the workpiece is imparted by the lathe spindle and the spindle speed range (n) is quite large and can be adjusted depending on the diameter of the part, its material and the cutting tool used. When turning, it is mainly

The cutting speed during turning is calculated by the formula:

V- this is the most important movement called cutting speed.

P is a constant that equals 3.14

D— diameter of the workpiece (workpiece).

n- the number of revolutions of the machine spindle and the part clamped in it.

Feed movement during turning.

You probably already understood about the feed movement. YES this is the movement of the cutting tool which is fixed in the tool holder (for this sketch). The attachment of the incisors may be different, but more on that later :) To carry out feed on a lathe, a special kinematic scheme of gears is used. If this is simple turning, then the synchronization of the rotation of the workpiece and the cutting tool is not important, but if you decide to cut threads, then everything will be different. We'll talk about this in future articles. If you don't want to miss them then subscribe to my blog updates.

The formulas for calculating the feed movement on a lathe look different, because it can be either a feed per revolution or a minute feed.

Feed per revolution— this is the distance that the cutting tool (in our case, the cutter) travels during one revolution of the workpiece. Depending on the type of processing, the definition may be different. For example, this is the distance that the workpiece moves relative to the cutter in one revolution.

Minute feed- this is the distance that the cutter travels in one minute (which is logical from the name).

Cutting speed and feed. Conclusion.

And so we can sum it up. Today we learned about the main movements during turning such as cutting speed and feed. I do not intend to load you with a mass of formulas and cumbersome definitions; you can find them in various books about mechanical engineering and metal cutting; I want to explain to you the basic concepts in human and understandable language. I think we will succeed :)

That's all for today. See you soon friends!

Andrey was with you!

How to make a line break in an Excel cell? Options for hyphenating part of a word.
Not experienced users They do the transfer as in Word, that is, they press the enter key and here, instead of transferring, they simply move to another cell. However, you should know that this should be done using the keyboard by pressing the alt and enter keys simultaneously. This is one of the most simple ways. However, when constantly working with excel documents large volume, this method is not very effective.


Let's look at how you can use the formatting function to simplify the task of wrapping text in one cell.
This method has a small condition for those who will use it. The fact is that it is convenient if there is no accuracy in the transfer of words or parts of a word. That is, this option guarantees transfer only within the cell, but does not guarantee that you can use it to maintain accuracy in the transfer of certain words or letters. We will describe how to do this in practice. Select the required cell using the cursor. Then press the right mouse button and you will see a menu. In it we look for the cell format


The next step is to check “wrap by words” in the menu that opens. Check the box and press OK to confirm your actions.


After the manipulations described above, you can safely work in the cell with the text you need, and it will automatically be subject to forced word wrapping. This method helps you work with texts using formulas more efficiently. Of course, it all depends on your tasks. For example, you need this cell format not only for a specific cell, but for a larger array of cells. This is easy to do if you select the desired array or sheet and use the cell format function to set the above-described “word wrap” function. However, you should remember that words will be automatically wrapped only if the word is at the cell border. The default dimensions of cells are not large in height. And this formatting method expands its boundaries on its own. If this does not happen, you should increase the height or width of the cell yourself.
Formulas
Let's touch on one more way line break in the cell. This can also be done using a formula. Excel has a set of functions for working with text. We will use one of these functions. Let's say your cells are already formatted as described in option two. But you need a certain word or phrase to be transferred. And usually this option is used if the words are on other sheets, or part of some formula. We solve this problem as follows: select the cell in which it is necessary to make a specific transfer of a word or phrase, and enter the formula into it: (concatenate (text1); symbol (4); text2) The text in this formula implies that you need to insert a word, or phrase. So you enter the two words you need, indicate which character you need to start processing the text with.


Words in this formula must be placed in quotation marks, and then the formula itself will carry out the transfer of the parameter you need for you.


You only confirm by pressing enter that you agree to the changes.
All of the methods described above allow you to wrap words in a cell, and each of them is suitable for solving certain, specific problems. The two methods are quite easy and easy to remember. The third one takes some time. But it is also intended to solve narrower problems when transferring text.

It is often necessary to wrap text within one Excel cell. new line. That is, move the text along the lines inside one cell as indicated in the picture. If, after entering the first part of the text, you simply press the ENTER key, the cursor will be moved to next line, but another cell, and we need a transfer in the same cell.

This is a very common task and it can be solved very simply - to move text to a new line inside one Excel cell, you need to click ALT+ENTER(press ALT key, then without releasing it, press the ENTER key)

How to Wrap Text on a New Line in Excel Using a Formula

Sometimes you need to make a line break not just once, but using functions in Excel. Like in this example in the figure. We enter the first name, last name and patronymic and it is automatically collected in cell A6

First, we need to concatenate the text in cells A1 and B1 (A1&B1), A2 and B2 (A2&B2), A3 and B3 (A3&B3)

After this, we will combine all these pairs, but we also need to put a line break character (code) between these pairs. There is a special table of characters (the table is at the end of this article) that can be displayed in Excel using special function SYMBOL(number), where number is a number from 1 to 255 that defines a specific character.
For example, if we enter =SYMBOL(169), we will get the copyright symbol ©

We need a line break character, it corresponds to the serial number 10 - we need to remember this.

Line break code (character) - 10 Therefore, moving a line in Excel as a function will look like this SYMBOL(10)

Note: In VBA Excel transfer string is entered using the Chr function and looks like Chr(10)

So, in cell A6 we write the formula

A1&B1&CHAR(10)&A2&B2&CHAR(10)&A3&B3

As a result, we should get the result we need.
Note! In order for line breaks to be displayed correctly, you must enable “line wrap” in the cell properties.
To do this, select the cell(s) you need, right-click and select “Format Cells…”

In the window that opens, in the “Alignment” tab, you must check the box next to “Word wrap” as indicated in the picture, otherwise line wrapping in Excel will not be displayed correctly using formulas.

How to replace a hyphen in Excel with another character and back using a formula

Can change the hyphen symbol to any other character, for example on a space, using the text function SUBSTITUTE in Excel

Let's take an example of what is in the picture above. So, in cell B1 we write the SUBSTITUTE function:

A1 is our text with a line break;
CHAR(10) is a line break (we looked at this a little higher in this article);
" " is a space because we are changing the line break to a space

If you need to do the opposite operation - change the space to a hyphen (symbol), then the function will look like this:

Let me remind you that in order for line breaks to be reflected correctly, you must specify “Wrap across lines” in the cell properties, in the “Alignment” section.

How to change the hyphen to a space and back in Excel using SEARCH - REPLACE

There are times when formulas are inconvenient to use and replacements need to be made quickly. To do this, we will use Search and Replace. Select our text and press CTRL+H, the following window will appear.

If we need to change the line break to a space, then in the “Find” line we need to enter a line break, to do this, go to the “Find” field, then press the ALT key, without releasing it, type 010 on the keyboard - this is the line break code, it is not will be visible in this field.

After that, in the “Replace with” field, enter a space or any other character that you need to change to and click “Replace” or “Replace All”.

By the way, this is implemented more clearly in Word.

If you need to change the line break character to a space, then in the “Find” field you need to indicate a special “Line Break” code, which is denoted as ^l
In the “Replace with:” field you just need to make a space and click on “Replace” or “Replace All”.

You can change not only line breaks, but also others Special symbols To get their corresponding code, you need to click on the button “More >> “, “Special” and select the code you need. I remind you that this function only exists in Word, these symbols will not work in Excel.

How to change line break to space or vice versa in Excel using VBA

Let's look at an example for selected cells. That is, we select the required cells and run the macro

1. Change spaces to hyphens in selected cells using VBA

Sub SpacesToHyphens()
For Each cell In Selection
cell.Value = Replace(cell.Value, Chr(32), Chr(10))
Next
End Sub

2. Change hyphens to spaces in selected cells using VBA

Sub WrapsToSpaces()
For Each cell In Selection
cell.Value = Replace(cell.Value, Chr(10), Chr(32))
Next
End Sub

The code is very simple Chr (10) is a line break, Chr (32) is a space. If you need to change to any other symbol, then simply replace the code number corresponding to the required symbol.

Character codes for Excel

Below in the picture are various symbols and their corresponding codes, several columns are different fonts. To enlarge the image, click on the picture.

If you periodically create documents in Microsoft program Excel then noticed that all data entered into a cell is written on one line. Since this may not always be suitable, and the option to stretch the cell is also not appropriate, the need arises to wrap the text. The usual “Enter” press is not suitable, since the cursor immediately jumps to a new line, so what should I do next?

In this article, we will learn how to move text in Excel to a new line within one cell. Let's look at how this can be done in various ways.

Method 1

You can use the key combination “Alt+Enter” for this. Place italics in front of the word that should start on a new line, press “Alt”, and without releasing it, click “Enter”. Everything, italics or phrase will jump to a new line. Type all the text in this way, and then press “Enter”.

The bottom cell will be selected, and the one we need will increase in height and the text in it will be fully visible.

To perform some actions faster, check out the list of shortcut keys in Excel.

Method 2

To ensure that while typing words, italics automatically jump to another line when the text no longer fits in width, do the following. Select a cell and right-click on it. IN context menu Click Format Cells.

At the top, select the “Alignment” tab and check the box next to “word wrap”. Click "OK".

Write everything you need, and if the next word does not fit in width, it will start on the next line.

If in a document lines must be wrapped in many cells, then first select them, and then check the box mentioned above.

Method 3

In some cases, everything that I described above may not be suitable, since it is necessary that information from several cells be collected in one, and already divided into lines in it. So let's figure out what formulas to use to get the desired result.

One of them is SYMBOL(). Here, in brackets, you need to indicate a value from one to 255. The number is taken from a special table, which indicates which character it corresponds to. To move a line, code 10 is used.

Now about how to work with the formula. For example, let's take data from cells A1:D2 and write what is written in different columns (A, B, C, D) in separate lines.

I put italics in the new cell and write in the formula bar:

A1&A2&CHAR(10)&B1&B2&CHAR(10)&C1&C2&CHAR(10)&D1&D2

We use the “&” sign to concatenate cells A1:A2 and so on. Press "Enter".

Don't be afraid of the result - everything will be written in one line. To fix this, open the “Format Cells” window and check the transfer box, as described above.

As a result, we will get what we wanted. The information will be taken from the indicated cells, and where CHAR(10) was entered in the formula, a transfer will be made.

Method 4

To move text in a cell, another formula is used - CONCATENATE(). Let's take only the first line with the headings: Last Name, Debt, Payable, Amount. Click on an empty cell and enter the formula:

CONCATENATE(A1,CHAR(10),B1,CHAR(10),C1,CHAR(10),D1)

Instead of A1, B1, C1, D1, indicate the ones you need. Moreover, their number can be reduced or increased.

The result we will get is this.

Therefore, open the already familiar Format Cells window and mark the transfer item. Now the right words will start on new lines.

In the next cell I entered the same formula, only I indicated other cells: A2:D2.

The advantage of using this method, like the previous one, is that when the data in the source cells changes, the values ​​in these will also change.

In the example, the debt number has changed. If you also automatically calculate the amount in Excel, then you won’t have to change anything else manually.

Method 5

If you already have a document in which a lot is written in one cell, and you need to move words, then we will use the SUBSTITUTE() formula.

Its essence is that we will replace all spaces with a line break character. Select a blank cell and add the formula to it:

SUBSTITUTE(A11;" ";CHAR(10))

Instead of A11 there will be your original text. Press the “Enter” button and immediately each word will be displayed on a new line.

By the way, in order not to constantly open the Format Cells window, you can use the special “Move Text” button, which is located on the “Home” tab.

I think the methods described are enough to move italics to a new line in an Excel cell. Choose the one that is most suitable for solving the task.

As you know, by default in one cell Excel sheet there is one line with numbers, text or other data. But what if you need to move text within one cell to another line? This task can be done using some of the program's features. Let's figure out how to make a line feed in a cell in Excel.

Text wrapping methods

Some users try to move text inside a cell by pressing the Enter button on the keyboard. But by doing this they only achieve that the cursor moves to the next line of the sheet. We will consider transfer options within the cell, both very simple and more complex.

Method 1: Using the Keyboard

The simplest option for moving to another line is to place the cursor in front of the segment that needs to be moved, and then type the Alt + Enter key combination on the keyboard.

Unlike using just the Enter button, this method will achieve exactly the desired result.

Lesson: Hotkeys in Excel

Method 2: Formatting

If the user is not tasked with moving strictly defined words to a new line, but only needs to fit them within one cell without going beyond its boundaries, then you can use the formatting tool.

  1. Select the cell in which the text extends beyond the boundaries. Click on it with the right mouse button. In the list that opens, select “Format Cells...”.
  2. A formatting window opens. Go to the “Alignment” tab. In the “Display” settings block, select the “Word wrap” option by checking it. Click on the “OK” button.

After this, if the data extends beyond the boundaries of the cell, it will automatically expand in height and the words will begin to wrap. Sometimes you have to expand the boundaries manually.

To avoid formatting each individual element in this way, you can select an entire area at once. The disadvantage of this option is that the transfer is performed only if the words do not fit within the boundaries, and the division is carried out automatically without taking into account the user’s wishes.

Method 3: Using a Formula

You can also carry out transfer within a cell using formulas. This option is especially relevant if the content is output using functions, but it can be used in ordinary cases.

  1. Format the cell as indicated in the previous option.
  2. Select a cell and enter the following expression into it or into the formula bar:

    CONCATENATE("TEXT1";CHAR(10);"TEXT2")

    Instead of the elements “TEXT1” and “TEXT2” you need to substitute the words or sets of words that you want to transfer. The remaining symbols of the formula do not need to be changed.

  3. To display the result on the worksheet, press the Enter button on your keyboard.

The main disadvantage this method is the fact that it is more difficult to perform than previous options.

Lesson: Useful Excel Features

In general, the user must decide for himself which of the proposed methods is best to use in a particular case. If you only want all the characters to fit within the boundaries of the cell, then simply format it as necessary, or it is best to format the entire range. If you want to transfer specific words, then type the appropriate key combination, as described in the description of the first method. The third option is recommended to be used only when data is pulled from other ranges using a formula. In other cases, the use of this method is irrational, since there are much simpler options for solving the problem.

We are glad that we were able to help you solve the problem.

Ask your question in the comments, describing the essence of the problem in detail. Our specialists will try to answer as quickly as possible.

Did this article help you?

Quite often the question arises, how to move to another line inside a cell in Excel? This question arises when the text in a cell is too long, or when wrapping is necessary to structure the data. In this case, it may not be convenient to work with tables. Typically, text is transferred using the Enter key. For example, in the program Microsoft Office Word. But at Microsoft Office Excel When we press Enter, we go to the adjacent lower cell.

So we need to wrap the text to another line. To transfer, you need to press the keyboard shortcut Alt+Enter. After which the word located on the right side of the cursor will be moved to the next line.

Automatically wrap text in Excel

In Excel, on the Home tab, in the Alignment group, there is a “Text Wrap” button. If you select a cell and click this button, the text in the cell will wrap to a new line automatically depending on the width of the cell. Automatic transfer requires a simple click of a button.

Remove hyphen using function and hyphen symbol

In order to remove the carry, we can use the SUBSTITUTE function.

The function replaces one text with another in the specified cell. In our case, we will replace the space character with a hyphen character.

Formula syntax:

SUBSTITUTE (text; old_text; new_text;)

The final form of the formula:

SUBSTITUTE(A1,CHAR(10), " ")

A1 – cell containing hyphenated text,

CHAR(10) – line break character,

» » – space.

If, on the contrary, we need to insert a hyphen to another line, instead of a space, we will perform this operation in reverse.

SUBSTITUTE(A1; ";CHAR(10))

For the function to work correctly, the “Wrap by words” checkbox must be checked in the Alignment tab (Cell Format).

Transfer using the CONCATENATE formula

To solve our problem, we can use the CONCATENATE formula.

Formula syntax:

CONCATENATE (text1,...)

We have text in cells A1 and B1. Let's enter the following formula in B3:

CONCATENATE(A1,CHAR(10),B1)

As in the example I gave above, for correct operation In the properties of the function, you need to set the “word wrap” checkbox.

If you periodically create documents in the program Microsoft Excel, then we noticed that all the data entered into the cell is written on one line. Since this may not always be suitable, and the option to stretch the cell is also not appropriate, the need arises to wrap the text. The usual “Enter” press is not suitable, since the cursor immediately jumps to a new line, so what should I do next?

In this article, we will learn how to move text in Excel to a new line within one cell. Let's look at how this can be done in various ways.

Method 1

You can use the key combination “Alt+Enter” for this. Place italics in front of the word that should start on a new line, press “Alt”, and without releasing it, click “Enter”. Everything, italics or phrase will jump to a new line. Type all the text in this way, and then press “Enter”.

The bottom cell will be selected, and the one we need will increase in height and the text in it will be fully visible.

To perform some actions faster, check out the list of shortcut keys in Excel.

Method 2

To ensure that while typing words, italics automatically jump to another line when the text no longer fits in width, do the following. Select a cell and right-click on it. In the context menu, click Format Cells.

At the top, select the “Alignment” tab and check the box next to the item "translate according to words". Click "OK".

Write everything you need, and if the next word does not fit in width, it will start on the next line.

If in a document lines must be wrapped in many cells, then first select them, and then check the box mentioned above.

Method 3

In some cases, everything that I described above may not be suitable, since it is necessary that information from several cells be collected in one, and already divided into lines in it. So let's figure out what formulas to use to get the desired result.

One of them is CHAR() . Here, in brackets, you need to indicate a value from one to 255. The number is taken from a special table, which indicates which character it corresponds to. To move a line, code 10 is used.

Now about how to work with the formula. For example, let's take data from cells A1:D2 and write what is written in different columns (A, B, C, D) in separate lines.

I put italics in the new cell and write in the formula bar:

A1&A2&CHAR(10)&B1&B2&CHAR(10)&C1&C2&CHAR(10)&D1&D2

We use the “&” sign to concatenate cells A1:A2 and so on. Press "Enter".

Don't be afraid of the result - everything will be written in one line. To fix this, open the “Format Cells” window and check the transfer box, as described above.

As a result, we will get what we wanted. The information will be taken from the specified cells, and where CHAR(10) was entered in the formula, a transfer will be made.

Method 4

To transfer text in a cell, another formula is used - . Let's take only the first line with the headings: Last Name, Debt, Payable, Amount. Click on an empty cell and enter the formula:

CONCATENATE(A1,CHAR(10),B1,CHAR(10),C1,CHAR(10),D1)

Instead of A1, B1, C1, D1, indicate the ones you need. Moreover, their number can be reduced or increased.

The result we will get is this.

Therefore, open the already familiar Format Cells window and mark the transfer item. Now the necessary words will begin on new lines.

In the next cell I entered the same formula, only I indicated other cells: A2:D2.

The advantage of using this method, like the previous one, is that when the data in the source cells changes, the values ​​in these will also change.

In the example, the debt number has changed. If you also automatically calculate the amount in Excel, then you won’t have to change anything else manually.

Method 5

If you already have a document in which a lot is written in one cell, and you need to move words, then we will use the formula.

Its essence is that we will replace all spaces with a line break character. Select a blank cell and add the formula to it:

SUBSTITUTE(A11;" ";CHAR(10))

Instead of A11 there will be your original text. Press the “Enter” button and immediately each word will be displayed on a new line.

By the way, in order not to constantly open the Format Cells window, you can use a special button "Move text", which is located on the "Home" tab.

I think the methods described are enough to move italics to a new line in an Excel cell. Choose the one that is most suitable for solving the task.