ABACUS has grown old gracefully, perhaps moreso than any of the PSION suite. With a Gold/QXL Card it can run a humongous spreadsheet at acceptable speed. Although it lacks the bells and whistles of the likes of 1-2-3, there is little computation beyond its ability. And it will accurately add two plus two.
It is popular for everything from tracking investments to budgeting and from comparison shopping to creating invoices. At its simplest use, it surpasses Quill for creating multiple columns of text.
The QL literature on using ABACUS has been quite limited, mostly because one either understands its potential and how to achieve a goal, or one does not
even know where to begin asking questions.
Long-time users of ABACUS have experienced two of its cranky weaknesses – the tendency of a favorite spreadsheet to crawl with age and a related potential to hangup in midcalculation, usually after a three hour session of entering data.
Such weaknessess can be avoided, and even corrected.
There are three (3) features of spreadsheet development critical to smooth operation and all relate to the manner in which ABACUS stores its formulae.
Feature 1
The first is that ABACUS creates a list of formulae in the order that they are
created. Next time you load a spreadsheet, F3, Print, Formula for an illustration.
In all likelihood the index of formulae printed at the end (all beginning with F) has many gaps in the sequence. The gaps represent formulae that were Rubbedout or Amended.
What isn’t evident is that during a calculation ABACUS checks all the missing formulae as well as the ones that are operational. Thus the more blanks the slower the spreadsheet. A spreadsheet with forty formulae numbered F1 to F40 runs faster than one with forty formulae with the last number F350. A high formula number is the symptom of inevitable tinkering with a favorite spreadsheet.
Feature 2
The key to avoiding formula creep is the second feature – the use of Copy and Echo commands whereever possible to insert a formula.
Careful use of Copy and Echo keeps file length compact resulting in faster saves and loads and quicker recalculation. (More on Copy and Echo at the end.)
For example the formula A15+B15 in cell C15 takes 33 bytes, as does every additional sum of two cells individually entered. (Figure 1)

However, if the formula in cell C15 is Copied or Echoed to cell C16 (becoming A16+B16), the file length is only 16 bytes greater. (Figure 2)

It may be useful to keep a handwritten crib sheet of cells where formulae to be copied are stored. Alternatively, create a table of formulae outside the work area, then copy the relevant formula as needed. Note that there is no memory or formula penalty for inaccurately Copy/Echoing a formula. A table also verifies the accuracy of the formulae. Amending a formula in one instance alters all copies throughout the spreadsheet.
Feature 3
The third feature of ABACUS answers the question of “When is a formula not a formula?” Answer: When it is a text string as in the contents of cell C15: “A15+B15”. (Figure 3)

Fortuitously, changing an occurance of a formula into a text string changes only that occurance, not all other copies.
Thus it is an elegant approach to build on an existing formula by wrapping it in quotes, Amending it, then stripping the quotes. The new formula is added to the queue.
BRINGING IT TOGETHER
Care in building a spreadsheet is the best way to achieve smooth operation but few of us are so gifted as to key in every formula correctly the first time (or why pencils have erasers – rubbers in English-speak).
So what to do with a much tinkered spreadsheet that gets cranky and arthritic as the formula numbers head toward four digits?
Ultimately there are two objectives: Minimize the number of unique formulae and reset the formula numbers toward the low end. However, because of the first feature it is impossible to reset the formula numbers in an existing spreadsheet.
One approach to achieving the second objective is to multi-task two copies of ABACUS, then rekey the whole spread-
sheet relying on task-switching to check old against new. It is possible but prone to Murphy’s Law and the manifestation of some pathologically interesting emotions in the keypuncher.
A BETTER CHOICE
Alternatively, the three features can all be brought to bear as follows.
The strategy is to export the spreadsheet as a pure ASCII file, then re-import it to a blank, pre-Zapped spreadsheet. This strategy is necessary since formulae are lost in the export process. Only the results of formula calculations are exported.
First, expand the table of formulae created off the work area to include one occurance of each formula. The Window command (F3, Windows) can be very helpful. Set the windows to move separately, and keep the table of formulae visible for reference. (Switch the cursor between windows with the F4 key).
In the work area change each occurance of a formula to a text string of the cell where it is kept in the table. Thus if the formula A15+B15 in cell C15 is copied to cell AA15 in the table, it will read as Y15+Z15 (the sum of horizontally adjacent cells). (Figure 4)

Whenever the formula for the sum of horizontally adjacent cells is found in the spreadsheet, replace it by the text string “AA15”. When this part of the exercise is finished, the only formula will be in the table.
At this point ensure that there are no blank columns or rows between the work area and the table of formulae, then wrap those formulae in quotes. The next step is to insert two rows at the top of the spreadsheet with the F3, Grid, Insert, at 1, Rows 2 command.
In the top row enter as a column heading a field name as a text string. The letter of the column will serve nicely. Since column width data are lost in export, the width of the column
may also be included in the column field name. If column A is 12 characters wide, the field name might be “A12”.
Next, ensure that each cell in the second row has a text string. For simplicity, enter “X” in cell A2 and Echo it the length of the row. This step ensures that all entries in the column will be exported as text. Any
data will be wrapped in quotes during export, so that 123.45 becomes “123.45”.
The spreadsheet is now ready to export. But save this version in case there are any errors.
Export this to a file called “file” (Files, Export to archive, <ENTER>, by columns to flp2_file).
Wow, some achievement! Rest now to prepare for the resurrection of the spreadsheet like Phoenix from its ashes.
IMPORTING AND RESTORING THE SPREADSHEET
Start with a fresh, blank spreadsheet. Either Zap the old spreadsheet or for real safety, reset the QL and re-execute ABACUS.
Import (F3, Files, import, from flp2_file, by columns to cell A1. If there is a problem with the export file, the import will not be complete. The column heading should be the same as the ones exported and the column lengths should be as before. If there is an error in the export file, a portion of the imported file will not come through from the error downwards.
When import is complete, there will be an all-text spreadsheet exactly as exported but without any formula overhead. However, it will need to be restored and reformulaed to run.
The first step is to reset the columns to their original width prior to export from the field name in the first row. Row two with the dummy text characters (“X”) is superfluous. Delete both rows (F3, Grid delete rows from 1 to 2).
The second step is to remove the quotes from formulae in the table of formulae. If the justification or decimal place is not as desired, justify and set the units in the table. This does not change the formula number.
Reset the widths of the columns to what they were in the original spreadsheet, then go to the main body of the spreadsheet and begin Copying the appropriate formula to the cells. If the preparation was as suggested, it is only necessary to Copy from the cell referenced as a text string.
Finally, strip quotes from all numbers that have quotes around them.
At this point be sure that the new file is saved under a new name, then compare the file lengths of the old and the new spreadsheets (WSTAT with Toolkit II). Aren’t you pleased with yourself? For more fun, load and time the recalculation speed of both the old and new spreadsheets.
SOME NOTES AND TIPS
Changing the Units and/or Justification in a cell does not effect file length.
Changing Units and/or Justification in one occurrance of a formula does not effect the units and/or justification in another occurrance.
A new occurance of an Echoed formula assumes the justification and units of the spreadsheet default setting. However, if a formula is Copied, the units and justification of the original cell are retained.