|
Selecting and Filling a Cell Range
From NeoWiki
Revision as of 05:39, 22 April 2007 by ( | contribs)
Contents |
Selecting and Filling a Range of Cells
Sometimes you might wish to fill an entire row or column in your spreadsheet with data “automatically,†e.g., sequential dates or numbers. You can do this in NeoOffice using the following steps:
Selecting a range
- In the “Input field†in the left top of the sheet, type the name of the beginning cell and then the name of the ending cell of the desired range, separated by a colon (:), e.g. A1:A20, and press the Enter key.
You can also select the range with the mouse, or by clicking in the top-left cell in the range and shift-clicking in the bottom right cell in the range, if you do not have the cell references memorized. - You can save that range for easier future use by giving it a significant name. Open the Insert menu, then the Names sub-menu, and select the Define… item. Type in a name and press Add. (This name will now be visible in the Range names section in the Navigator window.)
Afterwards, it will be easy to select the range by double-clicking its name in the Range names section in the Navigator.
Filling a range
- Select a cell range and choose the Edit menu then the Fill sub-menu and the Series… item.
Four types of series Linear, Growth, Date and AutoFill are available.
- The automatic filling is done from a sort list. You can see all the available lists by selecting Sort Lists in the NeoOffice Calc section of the Preferences sub-menu of the NeoOffice menu.
You can add here your personal lists:
- Click New
- Enter the successive values of your list, separated with a line break. Click OK
- That series will be available via the Series… item in the Fill sub-menu of the Edit menu by checking the case AutoFill in the Series type section and choosing the first element of the list as the Start value.
- Drag-and-Fill - you'll notice a little black square in the bottom-right corner of the current cell. This is a drag-and-fill tool; click-and-drag the square along the row/column you wish to fill, from the 'source' cell to the last cell you want filled, and then release the corner. The tool behaves differently depending on what's in the current cell (or cells - note that this also works with blocks of cells):
- Text - copies the same text into all the target cells
- Number - adds 1 to each suceeding cell, useful for filling a column/row quickly with 1-50 (disconcertingly. it also does this with non-integer cell values, so you can get the sequence e.g. -1.1, -0.1, 0.9, 1.9!)
- Formula - equivalent to copying/pasting the formula, i.e. the cell references get updated for each cell filled, unless the cell reference in the formula is absolute, i.e. $B$1 will stay $B$1 all the time, but B1 will become B2, B3 etc. (or C1, D1 if you're filling a row)
Copying formulas
- The Fill function allows you to apply a recurrent formula to a cell range.
Example :
- Select the range A1:A20, enter 1 in A, choose the Edit menu then the Fill sub-menu, click Series.
- Set up the Type to Linear, the Start value to 1, the End value to 20 and the Increment to 1.
- Click OK.
The series of the first 20 integers appears in the selected range.
- Enter 1 in the cell B1.
- Select the cell B2 and enter in the formula line, in the top of the page : "=B1+A2" (without quotes). Press Enter. The sum 3 appears in the cell B2.
- Select the range B2:B20, choose the Edit then the Fill sub-menu and the Down item. Now every cell of the selected range contains the sum of the successive integers and the cell B20 contains the sum of the first 20 integers, i.e. 210.
Showing the formulas
If in the View section of NeoOffice Calc of the Preferences sub-menu of the NeoOffice menu, you check the Value highlighting option, the cells which contain values will be displayed in blue, and those which contain formulas in green. If you choose that option, you'll not be able to change the character color in those cells.