Contents tagged with Algorithims

Using PowerShell to represent Base 26 as the uppercase English Alphabet

Jan 10 2012No Comments by justin

Today I was asked to do something that seemed simple, until I actually had to do it. A coworker had a database with two fields he wanted renamed in a specific way. For our example, lets call them ProductNumber and ProductName. He wanted ProductNumber to be sequential (1, 2, 3 . . .) and the ProductName fields to be called "Product A", "Product B" . . . "Product Z", "Product AA" etc. So this suddenly became a non-trivial problem if you had more than 26 rows, which of course I did. So I rolled …

Algorithims, Math, PowerShell Read more