version 1.4, 2006/08/08 17:47:27
|
version 1.5, 2010/08/23 16:16:18
|
Line 2
|
Line 2
|
|
|
\textbf{Cells} |
\textbf{Cells} |
|
|
Cells may be specified by simply writing their name. \texttt{A17} will be |
Cells may be specified by simply writing their name enclosed in either single quotes or double quotes. |
replaced with the value in row A column 17 before the Perl is evaluated. |
For instance, \texttt{'A17'} and \texttt{"A17"} will be |
|
replaced with the value in row $A$ column 17 before the Perl command is evaluated. |
|
|
|
\noindent |
\textbf{Ranges} |
\textbf{Ranges} |
|
|
Ranges \index{ranges, spreadsheet} specify rectangles of various shapes |
Ranges \index{ranges, spreadsheet} specify rectangles of various shapes |
Line 13 Ranges must be enclosed in quotes. Exam
|
Line 15 Ranges must be enclosed in quotes. Exam
|
|
|
\begin{itemize} |
\begin{itemize} |
|
|
\item \textbf{``*''} - all rows, all columns |
\item \texttt{'*'} - all rows, all columns |
\item \textbf{``B*''} - all rows in column B |
\item \texttt{'B*'} - all rows in column B |
\item \textbf{``*5''} - all columns in row 5 |
\item \texttt{'*5'} - all columns in row 5 |
\item \textbf{``C5''..``F25''} - all cells in the rectangle between C5 and F25 |
\item \texttt{'C5'..'F25'} - all cells in the rectangle between C5 and F25 |
|
|
\end{itemize} |
\end{itemize} |
|
|
Many functions accept ranges. For example, \&SUM(``d*'') will add |
Many functions accept ranges, see \ref{Spreadsheet_Functions}. For example, \texttt{\&SUM('d*')} will add up all cells in column $d$. |
up all cells in column d. |
|
|
|
|
\noindent |
\textbf{Special References} |
\textbf{Special References} |
|
|
There is an additional means of referencing cells most used in the |
There is an additional means of referencing cells most used in the |
\textbf{template row} (\ref{Spreadsheet_Template_Row}). |
\textbf{template row} (\ref{Spreadsheet_Template_Row}). |
By using a ``\#'' in the place of a row number |
By using a '\#' in the place of a row number |
the spreadsheet will replace the \# with the current row number. For example |
the spreadsheet will replace the \# with the current row number. For example |
\texttt{B\#} will be replaced with the contents of cell B7 in the row 7 and |
\texttt{'B\#'} will be replaced with the contents of cell $B7$ in the row 7 and |
the contents of B8 in row 8. |
the contents of $B8$ in row 8. |