in reply to Align numbers & text in a column to the right

It all depends what output format you're using. Assuming we're talking about plain text, take a look at printf.

Update: Oops. Of course you're not talking about plain text. You're talking about an Excel spreadsheet. Ignore me and look at Spreadsheet::WriteExcel.

Thanks to ikegami for pointing out my insanity.

  • Comment on Re: Align numbers in a column to the right