57. About Names as Addresses
49 About Calc Ranges 50 Create a Range The makers of OpenOffice.org designed Calc to be watching over your shoulder, ready to help you when possible. One way that Calc does this is to look at the labels you place in your spreadsheets and use them as range names when appropriate.53 Enter Calc Functions , the Sum button is useful when you are totaling a column or a row and the total is to appear directly at the end of that column or row.Totals do not always fall at the end of a row or column. [View full size image]

Likewise, you would have to enter every other range for the rest of the totals.One improvement would be to create and name the following ranges from the sheet: Est2005, Est2006, Est2007, Est2008, Denver, Tulsa, Miami, and New York. At least entering the Sum() functions would be simpler. For Miami's total, you would type =Sum(Miami) into cell B4. If you added data to the table, your range names would expand appropriately, keeping the totals accurate.
=Sum(H4; H10)
Denver's total computed correctly without range names. 45 Copy and Move Formulas ).One thing you must keep in mind when using cell labels inside functions and calculations is to enclose the labels in single quote marks if they contain a space. For example, the following two cell entries would produce errors in this sheet:
=Sum(Denver)
To correct these entries, you must use quotes like this:
=Sum(New York)
=Sum(Est 2007)
If a label is nothing more than a number, as the year 2005 would be if used as a label in the table, you would not be able to use that label in such calculations, even if you enclosed it inside quotes.The next figure shows the completed sheet with all the totals. As you can see, all the totals work fine, even though no range names exist.All totals entered using the table's column and row labels. [View full size image]
=Sum('New York')
=Sum('Est 2007')
