IT:99 Bottles of Beer (Microsoft Excel)

From Stiki

Jump to: navigation, search

The formulae listed below can be used to produce the lyrics to traditional repetitive songs. The American version produces the lyrics to 99 Bottles of Beer and the British version produces the lyrics to 99 Green Bottles Hanging on the Wall.

In order to use these formulae, copy them into a cell in the spreadsheet as required, and then copy that cell down as far as you like. The formulae will write the complete song lyrics given enough rows, followed by a blank line, and then will begin writing the lyrics again from the beginning. Note that whichever cell you have pasted the formula into, the cell above it must be blank.

Note that you should copy the version that is 'Formatted for copying the formula' as this does not include any line breaks. The version that is 'Formatted for viewing the structure of the formula' includes additional line breaks and spacing that will prevent the formula from working in Excel, but aid understanding of how the formula works.

Contents

American version

Standard reference style

This formula should be entered into cell A4 and then copied down. One iteration of the lyrics will occupy 397 rows.

R1C1 reference style

This formula can be entered into any cell (in at least the fourth row) and then copied down. One iteration of the lyrics will occupy 397 rows.

British version

Standard reference style

This formula should be entered into cell A3 and then copied down. One iteration of the lyrics will occupy 397 rows.

R1C1 reference style

This formula can be entered into any cell (in at least the third row) and then copied down. One iteration of the lyrics will occupy 397 rows.

See also

Personal tools