Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This works in OpenOffice.org Calc as well as in LibreOffice Calc, but it's crucial to define the cell names for every column that will be evaluated by the formula. Here's a step-for-step solution, based on the example document:</p> <ol> <li><p>Start with a spreadsheet containing just the values together with row and column heads: <img src="https://i.stack.imgur.com/uwv1v.png" alt="Ranges 1"></p></li> <li><p>Create the cell range names:</p> <p>a. Select the data range <strong>including the column holding the row names</strong> (OOo will use those Strings as names in the next steps):</p> <p><img src="https://i.stack.imgur.com/UjrX0.png" alt="Named Ranges 2"></p> <p>b. Select "<code>Insert -&gt; Names... -&gt; Create</code>":</p> <p><img src="https://i.stack.imgur.com/0RnJC.png" alt="Create names..."></p> <p>c. Select "Left Column" to name the rows based on the content of the first column:</p> <p><img src="https://i.stack.imgur.com/Q1jeS.png" alt="... with names based on left column"></p> <p>Result: four names, one for each row, named as desired:</p> <p><img src="https://i.stack.imgur.com/5gESx.png" alt="resulting names"></p></li> <li><p>Create the formula for the first data row (here incomplete, demonstrating OOo's tooltips): <img src="https://i.stack.imgur.com/SNWm3.png" alt="formula"></p></li> <li><p>Drag-complete for all other data rows, giving the final result (with <code>Tools -&gt; Detective -&gt; Trace precedents</code> activated - the detective points to the array's first column, but the formula will use the values of the current column):</p> <p><img src="https://i.stack.imgur.com/91LPf.png" alt="final result"></p></li> </ol>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload