First part is either trivial or I'm not getting the question.
if you mean:
CODE
1 2
2 3
then B1=1 and B2=2 are just numbers, but where 2 is, you just put =B2+1
The second part you can most probably get through formatting, excel is good with that, click through all the numeric formats, it might just have what you need. if not, do whatever you need in normal numeric form, then you have another table of all this, but mangled into text, and 'padded' zeros.
In OpenOffice (excel contender from OpenSource side of things) you can just click on the cell, 'format cells' and type in number of 'leading zeros' and v'oile. I haven't used Excel in ages, but I assume they got something similar.
Hope this helps, if not, keep on posting, or catch me on AIM, bushmannt is the name.