<!DOCTYPE html> <html> <head> <title>Cut/copy/paste data</title> <meta charset="utf-8" /> <meta name="description" content="Cut/copy/paste data using the keyboard shortcuts" /> <link type="text/css" rel="stylesheet" href="../editor.css" /> <script type="text/javascript" src="../callback.js"></script> <script type="text/javascript" src="../search/js/page-search.js"></script> </head> <body> <div class="mainpart"> <div class="search-field"> <input id="search" class="searchBar" placeholder="Search" type="text" onkeypress="doSearch(event)"> </div> <h1>Cut/copy/paste data</h1> <h3>Use basic clipboard operations</h3> <p>To cut, copy and paste data in the current spreadsheet make use of the right-click menu or use the corresponding icons of the <a href="https://www.onlyoffice.com/spreadsheet-editor.aspx" target="_blank" onclick="onhyperlinkclick(this)"><b>Spreadsheet Editor</b></a> available on any tab of the top toolbar,</p> <ul> <li><p><b>Cut</b> - select data and use the <b>Cut</b> option from the right-click menu to delete the selected data and send them to the computer clipboard memory. <span class="onlineDocumentFeatures">The cut data can be later inserted to another place in the same spreadsheet.</span></p></li> <li><p><b>Copy</b> - select data and either use the <b>Copy</b> <img alt="Copy icon" src="../images/copy.png" /> icon at the top toolbar or right-click and select the <b>Copy</b> option from the menu to send the selected data to the computer clipboard memory. <span class="onlineDocumentFeatures">The copied data can be later inserted to another place in the same spreadsheet.</span></p></li> <li><p><b>Paste</b> - select a place and either use the <b>Paste</b> <img alt="Paste icon" src="../images/paste.png" /> icon on the top toolbar or right-click and select the <b>Paste</b> option to insert the previously copied/cut data from the computer clipboard memory to the current cursor position. <span class="onlineDocumentFeatures">The data can be previously copied from the same spreadsheet.</span></p> </li> </ul> <p><span class="onlineDocumentFeatures">In the <em>online version</em>, the following key combinations are only used to copy or paste data from/into another spreadsheet or some other program,</span> <span class="desktopDocumentFeatures">in the <em>desktop version</em>, both the corresponding buttons/menu options and key combinations can be used for any copy/paste operations:</span></p> <ul> <li><b>Ctrl+X</b> key combination for cutting;</li> <li><b>Ctrl+C</b> key combination for copying;</li> <li><b>Ctrl+V</b> key combination for pasting.</li> </ul> <p class="note"><b>Note</b>: instead of cutting and pasting data within the same worksheet you can select the required cell/cell range, hover the mouse cursor over the selection border so that it turns into the Arrow <img alt="Arrow icon" src="../images/arrow.png" /> icon and drag and drop the selection to the necessary position.</p> <p>To enable / disable the automatic appearance of the <b>Paste Special</b> button after pasting, go to the <b>File</b> tab > <b>Advanced Settings...</b> and check / uncheck the <b>Cut, copy and paste</b> checkbox.</p> <h3>Use the Paste Special feature</h3> <p>Once the copied data is pasted, the <b>Paste Special</b> <img alt="Paste Special" src="../images/pastespecialbutton.png" /> button appears next to the lower right corner of the inserted cell/cell range. Click this button to select the necessary paste option. </p> <p>When pasting a cell/cell range with formatted data, the following options are available:</p> <ul> <li><em>Paste</em> - allows you to paste all the cell contents including data formatting. This option is selected by default.</li> <li> The following options can be used if the copied data contains formulas: <ul> <li><em>Paste only formula</em> - allows you to paste formulas without pasting the data formatting.</li> <li><em>Formula + number format</em> - allows you to paste formulas with the formatting applied to numbers.</li> <li><em>Formula + all formatting</em> - allows you to paste formulas with all the data formatting.</li> <li><em>Formula without borders</em> - allows you to paste formulas with all the data formatting except the cell borders.</li> <li><em>Formula + column width</em> - allows you to paste formulas with all the data formatting and set the source column`s width for the cell range.</li> <li><em>Transpose</em> - allows you to paste data switching them from columns to rows, or vice versa. This option is available for regular data ranges, but not for formatted tables.</li> </ul> </li> <li> The following options allow you to paste the result that the copied formula returns without pasting the formula itself: <ul> <li><em>Paste only value</em> - allows you to paste the formula results without pasting the data formatting.</li> <li><em>Value + number format</em> - allows to paste the formula results with the formatting applied to numbers.</li> <li><em>Value + all formatting</em> - allows you to paste the formula results with all the data formatting.</li> </ul> </li> <li><em>Paste only formatting</em> - allows you to paste the cell formatting only without pasting the cell contents. <p><img alt="Paste options" src="../images/pastespecial.png" /></p> <ol> <li> <b>Paste</b> <ul> <li><em>Formulas</em> - allows you to paste formulas without pasting the data formatting.</li> <li><em>Values</em> - allows you to paste the formula results without pasting the data formatting.</li> <li><em>Formats</em> - allows you to apply the formatting of the copied area.</li> <li><em>Comments</em> - allows you to add comments of the copied area.</li> <li><em>Column widths</em> - allows you to set certal column widths of the copied area.</li> <li><em>All except borders</em> - allows you to paste formulas, formula results with all its formatting except borders.</li> <li><em>Formulas & formatting</em> - allows you to paste formulas and apply formatting on them from the copied area.</li> <li><em>Formulas & column widths</em> - allows you to paste formulas and set certaln column widths of the copied area.</li> <li><em>Formulas & number formulas</em> - allows you to paste formulas and number formulas.</li> <li><em>Values & number formats</em> - allows you to paste formula results and apply the numbers formatting of the copied area.</li> <li><em>Values & formatting</em> - allows you to paste formula results and apply the formatting of the copied area.</li> </ul> </li> <li> <b>Operation</b> <ul> <li><em>Add</em> - allows you to automatically add numeric values in each inserted cell.</li> <li><em>Subtract</em> - allows you to automatically subtract numeric values in each inserted cell.</li> <li><em>Multiply</em> - allows you to automatically multiply numeric values in each inserted cell.</li> <li><em>Divide</em> - allows you to automatically divide numeric values in each inserted cell.</li> </ul> </li> <li><b>Transpose</b> - allows you to paste data switching them from columns to rows, or vice versa.</li> <li><b>Skip blanks</b> - allows you to skip pasting empty cells and their formatting.</li> </ol> <p><img alt="Окно Специальная вставка" src="../images/pastespecial_window.png" /></p> </li> </ul> <p>When pasting the contents of a single cell or some text within autoshapes, the following options are available:</p> <ul> <li><em>Source formatting</em> - allows you to keep the source formatting of the copied data.</li> <li><em>Destination formatting</em> - allows you to apply the formatting that is already used for the cell/autoshape where the data are to be iserted to.</li> </ul> <h5 id="delimiteddata">Paste delimited text</h5> <p>When pasting the delimited text copied from a <b>.txt</b> file, the following options are available:</p> <p class="note">The delimited text can contain several records, and each record corresponds to a single table row. Each record can contain several text values separated with a delimiter (such as a comma, semicolon, colon, tab, space or other characters). The file should be saved as a plain text <b>.txt</b> file.</p> <ul> <li><em>Keep text only</em> - allows you to paste text values into a single column where each cell contents corresponds to a row in the source text file.</li> <li><em>Use text import wizard</em> - allows you to open the <b>Text Import Wizard</b> which helps to easily split the text values into multiple columns where each text value separated by a delimiter will be placed into a separate cell. <p>When the <b>Text Import Wizard</b> window opens, select the text delimiter used in the delimited data from the <b>Delimiter</b> drop-down list. The data splitted into columns will be displayed in the <b>Preview</b> field below. If you are satisfied with the result, press the <b>OK</b> button.</p> </li> </ul> <p><img alt="Text import wizard" src="../images/textimportwizard.png" /></p> <p>If you pasted delimited data from a source that is not a plain text file (e.g. text copied from a web page etc.), or if you applied the <em>Keep text only</em> feature and now want to split the data from a single column into several columns, you can use the <b>Text to Columns</b> option. </p> <p>To split data into multiple columns:</p> <ol> <li>Select the necessary cell or column that contains data with delimiters.</li> <li>Switch to the <b>Data</b> tab.</li> <li>Click the <b>Text to columns</b> button on the top toolbar. The <b>Text to Columns Wizard</b> opens.</li> <li>In the <b>Delimiter</b> drop-down list, select the delimiter used in the delimited data.</li> <li>Click the <b>Advanced</b> button to open the <b>Advanced Settings</b> window in which you can specify the <b>Decimal</b> and <b>Thousands</b> separators. <p><img alt="Separator settings window" src="../images/separator.png" /></p></li> <li>Preview the result in the field below and click <b>OK</b>.</li> </ol> <p>After that, each text value separated by the delimiter will be located in a separate cell.</p> <p class="note">If there is some data in the cells to the right of the column you want to split, the data will be overwritten.</p> <h3>Use the Auto Fill option</h3> <p>To quickly fill multiple cells with the same data use the <b>Auto Fill</b> option:</p> <ol> <li>select a cell/cell range containing the required data,</li> <li>move the mouse cursor over the fill handle in the right lower corner of the cell. The cursor will turn into the black cross: <p><img alt="Auto Fill" src="../images/autofill.png" /></p> </li> <li>drag the handle over the adjacent cells to fill them with the selected data.</li> </ol> <p class="note"><b>Note</b>: if you need to create a series of numbers (such as 1, 2, 3, 4...; 2, 4, 6, 8... etc.) or dates, you can enter at least two starting values and quickly extend the series selecting these cells and dragging the fill handle. </p> <h3>Fill cells in the column with text values</h3> <p>If a column in your spreadsheet contains some text values, you can easily replace any value within this column or fill the next blank cell selecting one of already existing text values.</p> <p>Right-click the necessary cell and choose the <b>Select from drop-down list</b> option in the contextual menu.</p> <p><img alt="Select from drop-down list" src="../images/selectfromlist.png" /></p> <p>Select one of the available text values to replace the current one or fill an empty cell.</p> </div> </body> </html>