Information Technology Topic

Rows, Columns and Formatting

  1. Read notes
  2. Flashcards
  3. Quiz
  4. Confident

Study focus - 3 things

  1. Inserting a row or column adds an empty one and pushes the rest down or right, while deleting removes the whole row or column and pulls the rest up or left. Formulas that use the moved cells are adjusted, and a formula that pointed at a deleted cell shows #REF!
  2. Number formatting (decimal places, currency, dates) and text formatting (font, size, bold, italic, underline) change how a cell looks, not the value stored in it, so a total is worked out from the stored values
  3. Alignment puts contents to the left, centre or right of a cell, and borders draw lines around cells. Use them to make a sheet clear: bold headings, aligned columns and a border above a total

Section 1Inserting rows and columns

Sometimes you forget an item and need a new row in the middle of a list. You do not retype the list. You insert a row. Inserting adds an empty row above (or below) the one you selected. A column is inserted before or after the one you selected in the same way. The rows below move down, or the columns to the right move along, to make room. To insert several at once, select that many row headings (or column headings) first, then insert. In some programs the new cells copy the formatting of the row above or the column to the left. Here's the trick: after inserting above row 4, the old row 4 is now row 5. Every cell below the new row has a new address.

Section 2Deleting rows and columns

Deleting a row or column removes the whole line from the sheet, together with everything in it. The rows below move up, or the columns on the right move left, to close the gap. To delete, select the entire row or column, then choose delete. You can delete several at once. Easy to mix up: deleting a row is not the same as deleting the contents of the cells in it. Clearing the contents leaves the empty row where it was. Deleting the row removes it and every row below moves up. Watch out: deleting removes data. If you delete a row by mistake, use undo straight away.

Section 3What inserting and deleting do to formulas

Formulas are adjusted for you when rows and columns come and go. A reference to a cell below a new row moves with that cell: =B5 becomes =B6 when a row is inserted above row 3. A total over a range grows when a row is inserted inside the range. =SUM(B2:B5) becomes =SUM(B2:B6) when a row is inserted above row 4. It shrinks when a row inside the range is deleted: =SUM(B2:B5) becomes =SUM(B2:B4) when row 3 is deleted. If you delete the row or column that a formula points at, the formula has nothing left to use and shows #REF!. Watch out: a row inserted just below the last cell of a range, such as directly above a total, does not usually make the range longer. Anything typed in that new row is left out of the total.

Section 4Number formatting

Number formatting controls how a number looks in its cell. You choose a category and then a predefined format from a list. Common choices are the number of decimal places, a currency symbol, and the way dates are shown. For money, a currency format with two decimal places shows 10.4 as $10.40. For a date, you choose the layout, such as day, month and year. Here's the trick: formatting changes the display, not the stored value. If a cell holds 10.4 and is formatted with no decimal places, it shows 10 but still holds 10.4. This matters in calculations. Three cells holding 10.4 show 10 each, but their total is worked out from the stored values: 31.2, which shows as 31. Added by eye, the shown numbers give 30, so the sheet is not wrong. The display is rounded.

Section 5Text formatting and alignment

Text formatting changes the look of the characters: the font, the size, and bold, italic or underline. Headings are usually bold and sometimes a larger size, so they stand out from the data. Alignment decides where the contents sit inside the cell: left, centre or right (and justified in some programs). Text typed into a cell is left-aligned by default, and numbers are normally right-aligned. A cell with long text can use wrap text. The text breaks onto several lines inside the cell instead of running into the next cell. Easy to mix up: formatting never changes the data. Making a number bold or centred does not change its value.

Section 6Borders

Borders are lines drawn around cells, or along one or more of their edges. You choose the cells and then the border style you want. Use borders to organise the sheet. A line under the heading row separates it from the data. A line above a total shows that it is the sum of the figures over it. A box round a table shows where it begins and ends. Watch out: do not overuse borders. If every cell has a thick border, the important lines no longer stand out.

Section 7Formatting for a clear sheet

A good-looking sheet is easy to read. Use the same format for the same kind of data: one currency format for every money column, and the same number of decimal places throughout a column. Make the headings bold, align the numbers so the digits line up, and give the totals a border. Text labels are usually left-aligned, and numbers are usually right-aligned. Check the format after you change it. Show too few decimal places and a total may look wrong when it is only rounded. Show a date format that does not fit the data and the cell may look odd.

Examples

A Montego Bay vendor stores three prices of 10.4 in B2 to B4. B5 holds =SUM(B2:B4). All the cells are formatted to show no decimal places. (a) State what each price and the total show on screen. (b) A student adds the three shown prices and gets 30. Explain why the total cell shows something different. (c) State what the cells would show with a currency format with two decimal places. (d) State suitable formatting for the heading row and for the column of prices.

(a) Each price holds 10.4 and, with no decimal places, shows 10. The total is worked out from the stored values: 10.4 + 10.4 + 10.4 = 31.2, which shows as 31. (b) The student added the shown values, 10 + 10 + 10 = 30. Number formatting changes only the display. The sheet adds the stored values, so the total is 31.2 and it shows as 31. Nothing is wrong, only rounded for display. (c) With currency and two decimal places, each price shows $10.40 and the total shows $31.20. All the digits can now be seen. (d) Heading row: bold, probably centred, with a border under it to separate it from the data. Price column: one currency format with two decimal places, right-aligned so the digits line up. Text labels stay left-aligned.

A bakery sheet lists costs in B2 to B5: flour 1200, sugar 850, butter 640 and eggs 910. B6 holds =SUM(B2:B5) and D2 holds =B3, the sugar cost. (a) State the values of B6 and D2. (b) A row is inserted above row 4 and 500 is typed in the new B4. State the address, formula and value of the total, and what D2 shows. (c) Row 3 (sugar) is then deleted. State the new address, formula and value of the total, and what D2 shows. (d) A row is now inserted at row 6, directly above the total, and 300 is typed in it. State the total's address and formula, and say whether the 300 is counted.

(a) B6 = 1200 + 850 + 640 + 910 = 3600. D2 = B3 = 850. (b) Inserting above row 4 moves butter to row 5, eggs to row 6 and the total to B7. The insertion is inside the range, so it grows to =SUM(B2:B6). With 500 typed in, the value is 3600 + 500 = 4100. D2 pointed at B3, which is above the new row, so it is unchanged and still shows 850. (c) Deleting row 3 moves the rows below it up, so the total moves from B7 to B6 and the range shrinks to =SUM(B2:B5). The value is 4100 − 850 = 3250. D2 pointed at the deleted sugar cell, so it holds =#REF! and shows #REF!. (d) The new row 6 sits just below the last cell of the range B2:B5, so the range does not grow. The total moves to B7 and is still =SUM(B2:B5). The 300 is not counted, and the total stays 3250. To include it, change the formula to =SUM(B2:B6), which gives 3550.

Now let's water it

Session runs notes to flashcards to quiz back-to-back.

Where this comes from