Skip to content

Superscript

Location on ribbon: Tab DVD Addin → Group Text and Number → Menu Text ops

Command ID: btnSuperscript

What it does

The command walks every cell in the selection and applies superscript to any digit that comes immediately after the letter m or M. So m2 displays as , m3 as , cm2 as cm², km3 as km³.

Tidying units this way is effectively mandatory before printing a bill of quantities, an estimate or a contract annex: the unit of measure has to read and , not m2 and m3.

How to use

  1. Select the unit column, or any range that contains units of measure.
  2. Go to tab DVD Addin → group Text and Number → menu Text opsSuperscript.
  3. It runs immediately, with no dialog. The status bar reports how many cells were formatted.

Example

The "Unit" column of a concrete and finishing works quantity sheet.

BeforeAfter
m2
m3
cm2cm²
kgkg (unchanged)

The printed sheet meets the documentation standard without typing special characters or restyling cells one by one.

Notes

  • Only the character formatting changes; the cell value is still m2. Comparison formulas, VLOOKUP and PivotTables therefore still read m2 — usually exactly what you want.
  • Only a digit immediately following m/M is raised; strings like T3 or A2 are untouched.
  • Formula cells cannot take per-character formatting and are skipped silently.
  • If you later edit the cell text, the superscript formatting may be lost and the command has to be run again.
  • Ctrl+Z cannot undo this.

Released under DVDAddin License.