Referenced
Worksheet Variables
These
are pointers to a Value in the current
worksheet. Their scope is the current worksheet only.
Worksheet Variables
These
are defined in the Worksheet to which they
apply. Their scope is the current worksheet and ALL it's
children unless redefined in the child worksheet.
Project
Variables
These
are defined at the Project Level. Their scope is Project wide.
A Referenced Worksheet Variable
points
to a value in either the Calc, Qty, Rate, or Cost column, OR a
SubTotal at a selected row.
The 'reference' which points to the variable, is contained as a unique
identifier in an Invisible and protected column called 'VarRef'.
THE COLUMN ATTRIBUTES FOR "VarRef" MUST NOT BE MODIFIED.
The following simply illustrates this during the measurement of
quantities for excavation of a stormwater drain.
Here are the items we need to measure:
We setup our sheet and insert all the variables for the activity.
We now enter and quantify each of the items we need to price:
- The drain:
- Double click in the CALC field which puts you in edit mode
- Reference the QTY of the drain length by CTRL+clicking
on the CALC entry for the 250 dia pipe

This now places a "Referenced Variable" into the calculation for
us. The second character "Q" means that the value this
represents is the QTY of the item on the line we selected.
We could have clicked on this item in the RATE column instead;
this would have "referenced" the rate and the "Q" would become
an "R".
Similarly if we selected the COST column.
Referencing the SubTotal on that line will be illustrated later.
- Exit the edit mode and the referenced variable will be
transformed into a more readable form. Also note that the cell
will have a white background to signify that it contains a
Referenced Variable.

- The same process is used to quantify the excavation volume
(l*w*d)

- CTRL+click on 25.0
- Type '*'
- CTRL+click on 0.90
- Type '*'
- CTRL+click on 1.25
- Exit the edit mode and the referenced variable will be
transformed into a more readable form.

When we edit this cell again, the program senses a Referenced
Variable and unlike normal editing, the 'readable format' will
be changed back into the 'edit format' and editing will be
carried out further in the 'editor panel' at the top of the
worksheet as shown below. Hit the 'ENTER' when finished
editing.
Also when in this editing mode, you do not need to hold down the
'CTRL' key when selecting a cell to reference.

- Complete the rest of the items and our worksheet will look
like this.
USED AS SUBTOTALS
Using Referenced Variables as SubTotals is similar to those used in
calculation expressions. The only difference being the COLUMN you use
to specify the type of the lookup.
In the Section Names worksheet you use the "CO" column, whereas in any
other worksheet you use the "UNIT" column.
Using our example above, we will illustrate subtotals by adding 10% to
the cost of the group of items we have just quantified.
Here is the procedure:
- Edit the cell to receive the calculation, then click the "(" in
the "operators" panel as highlighted, and a pair of brackets are
inserted with the insertion caret placed between them ready to
receive more expressions.

- Now CTRL+click on the previous item IN
THE UNIT COLUMN.

This gives us the subtotal ("S") of all items up to and including
the item "Cart away surplus.....".
- Now enter "-" and CTRL+click on the item previous to "250 dia
RCP...." giving the subtotal of all items up to and including the
item previous to "250 dia RCP....".

- This now gives us the total of all the items we want 10% of, so
we step over the ")" and enter "*10/100"

The same procedure is relevant for the Section Names worksheet, the
only difference here is that you create the Referenced Variable by
clicking in the "CO" column instead of the "UNIT" column.
IMPORTANT CONSIDERATIONS
Referenced Variables can
ONLY BE USED
IN THE WORKSHEET WHERE THEY ARE CREATED. In other words you
cannot copy and paste calculations/entries using Referenced Variables
to other worksheets.
Do not remove the "VarRef" column. This column is initially hidden and
protected be default. If you do remove it, OR change it's contents,
you may destroy the values of Referenced Variables in this worksheet.
Do not remove items which have been "referenced". Attempting to do so
should bring up a Warning, and if removed will generate a Warning
similar to below:
and a calculation expression like
this
You can override this default by
placing the override specification ':COLUMNNAME' after the 'VARNAME'
(e.g. the entry '=C32:QTY' would maintain a value for the Dynamic
Project Variable 'C32' from the 'QTY' column).
NOTE: The column name is case dependent and must match exactly the name
of the appropriate column. Also, the 'VARNAME' must be unique within
both the Project and Dynamic Project Variables.