Consolidating data

From Apache OpenOffice Wiki
< Documentation‎ | OOo3 User Guides‎ | Calc Guide
Revision as of 22:10, 13 July 2018 by Sancho (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Data > Consolidate provides a way to combine data from two or more ranges of cells into a new range while running one of several functions (such as Sum or Average) on the data. During consolidation, the contents of cells from several sheets can be combined in one place.

  1. Open the document that contains the cell ranges to be consolidated.
  2. Choose Data > Consolidate to open the Consolidate dialog. The figure shows this dialog after making the changes described below.
    Defining the data to be consolidated
  3. The Source data range list contains any existing named ranges (created using Data > Define Range), so you can quickly select one to consolidate with other areas.

    If the source range is not named, click in the field to the right of the drop-down list and either type a reference for the first source data range or use the mouse to select the range on the sheet. (You may need to move the Consolidate dialog or click on the Shrink icon to reach the required cells.)

  4. Click Add. The selected range is added to the Consolidation ranges list.
  5. Select additional ranges and click Add after each selection.
  6. Specify where you want to display the result by selecting a target range from the Copy results to drop-down list.

    If the target range is not named, click in the field next to Copy results to and enter the reference of the target range or select the range using the mouse or position the cursor in the top left cell of the target range. Copy results to takes only the first cell of the target range instead of the entire range as is the case for Source data range.

  7. Select a function from the Function list. This specifies how the values of the consolidation ranges will be calculated. The default setting is Sum, which adds the corresponding cell values of the Source data range and gives the result in the target range.

    Most of the available functions are statistical (such as Average, Min, Max, Stdev), and the tool is most useful when you are working with the same data over and over.

  8. At this point you can click More in the Consolidate dialog to access the following additional settings:
    • Select Link to source data to insert the formulas that generate the results into the target range, rather than the actual results. If you link the data, any values modified in the source range are automatically updated in the target range.
    Documentation caution.png The corresponding cell references in the target range are inserted in consecutive rows, which are automatically ordered and then hidden from view. Only the final result, based on the selected function, is displayed.
    • Under Consolidate by, select either Row labels or Column labels if the cells of the source data range are not to be consolidated corresponding to the identical position of the cell in the range, but instead according to a matching row label or column label. To consolidate by row labels or column labels, the label must be contained in the selected source ranges. The text in the labels must be identical, so that rows or columns can be accurately matched. If the row or column label does not match any that exist in the target range, it is added to the target range as a new row or column.
  9. Click OK to consolidate the ranges.
  10. If you are continually working with the same range, then you probably want to use Data > Create Range to give it a name.

The consolidation ranges and target range are saved as part of the document. If you later open a document in which consolidation has been defined, this data is still available.

Content on this page is licensed under the Creative Common Attribution 3.0 license (CC-BY).
Personal tools