<?xml version="1.0" encoding="UTF-8"?>
<helpdocument version="1.0">
<!--
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 -->

<meta>
  <topic id="textscalcguidetable_cellmergexml" indexer="include" status="PUBLISH">
    <title id="tit">Merge and Unmerge Cells</title>
    <filename>/text/scalc/guide/table_cellmerge.xhp</filename>
  </topic>
</meta>
<body>
  <bookmark branch="index" id="bm_id501632012952361">
    <bookmark_value>merge/merging cells</bookmark_value>
    <bookmark_value>unmerge/unmerging cells</bookmark_value>
    <bookmark_value>split/splitting cells</bookmark_value>
  </bookmark>
  <section id="merge_unmerge_cells">
    <h1 id="hd_id8005005"><variable id="table_cellmerge"><link href="text/scalc/guide/table_cellmerge.xhp">Merge and Unmerge Cells</link></variable></h1>
    <paragraph id="par_id8049867" role="paragraph">You can select a range of cells, then merge them into a single cell. Conversely, you can take a previously merged cell and divide it back into individual cells.</paragraph>
  </section>
  <note id="par_id0509200913480176">When you copy cells into a target range containing merged cells, the target range gets unmerged first, then the copied cells are pasted in. If the copied cells are merged cells, they retain their merge state.</note>
  <h2 id="hd_id235602">Merge Cells</h2>
  <embed href="/text/scalc/01/05060000.xhp#mergecells_warning"/>

  <section id="howtoget">
      <paragraph id="par_id1272927" role="paragraph">Click and drag to select the cells to be merged then do one of the following:</paragraph>
      <paragraph role="paragraph" id="par_id221632803290526">In the Formatting toolbar click:</paragraph>
      <embed href="text/swriter/00/00000405.xhp#symerge_cells"/>
      <paragraph role="paragraph" id="par_id3154351">Or, right click the selection to open the context menu and choose <menuitem>Merge Cells</menuitem>.<br/>If <menuitem>Unmerge Cells</menuitem> is present instead then the cell selection contains merged cells and cannot be merged further.</paragraph>
      <paragraph role="paragraph" id="par_id931632803442925">Or, in the <emph>Properties</emph> sidebar mark the <emph>Merge Cells</emph> checkbox.</paragraph>
      <paragraph role="paragraph" id="par_id3154020">Or, choose <menuitem>Format - Merge and Unmerge Cells - Merge Cells</menuitem></paragraph>
      <paragraph id="par_id6424146" role="listitem">Or, choose <menuitem>Format - Merge and Unmerge Cells - Merge and Center Cells</menuitem></paragraph>
      <paragraph id="par_id961632012538771" role="listitem">The cells will be merged and the content will be centered in the merged cell.</paragraph>
  </section>

      <embed href="text/scalc/01/05060000.xhp#mergenotes"/>
  <h2 id="hd_id451368">Unmerge Cells</h2>
      <section id="howtoget">
      <paragraph id="par_id7116611" role="paragraph">Select the cell to be unmerged, or a selection that includes the cells to be unmerged then do one of the following:</paragraph>
      <paragraph role="listitem" id="par_id581632820903635">In the Formatting toolbar, click:</paragraph>
      <embed href="text/swriter/00/00000405.xhp#sysplit_cells"/>
      <paragraph id="par_id431632277778130" role="paragraph">Or, right click the selection to open the context menu and choose <menuitem>Unmerge Cells</menuitem>.<br/>If <menuitem>Merge Cells</menuitem> is present instead then the selection does not contain any merged cells.</paragraph>
      <paragraph id="par_id261632277824041" role="paragraph">Or, in the <emph>Properties</emph> sidebar clear the <emph>Merge Cells</emph> checkbox.</paragraph>
      <paragraph id="par_id9493087" role="listitem">Or, choose <menuitem>Format - Merge and Unmerge Cells - Unmerge Cells</menuitem>.</paragraph>
      <paragraph id="par_id561632820960500" role="paragraph">Or, toggle <menuitem>Format - Merge and Unmerge Cells - Merge and Center Cells</menuitem></paragraph>
  </section>

  <section id="relatedtopics">
    <embed href="text/shared/01/05100100.xhp#mergecells"/>
    <embed href="text/scalc/01/05060000.xhp#togglemergecells"/>
    <embed href="text/shared/01/05100200.xhp#h1"/>
    <embed href="text/scalc/guide/cellreferences.xhp#cellreferences"/>
  </section>
  </body>
</helpdocument>
