Could you use a VBA procedure?
If yes, then you could create a user defined function that would translate your
number into a string (and a string back into a number).
If you want to try:
Option Explicit
Function myTranslate(Str As Variant, _
Optional ShowNumbers As Boolean = False) As Variant
Dim iCtr As Long
Dim cCtr As Long
Dim myKey As String
Dim myTrans As String
Dim FoundIt As Boolean
Dim myChar As String
'L I G H T B R E A D
'1 2 3 4 5 6 7 8 9 0
myKey = LCase("lightbread")
If Len(myKey) <> 10 Then
myTranslate = "Error in key"
Exit Function
End If
If ShowNumbers Then
Str = LCase(Str)
myTrans = ""
For iCtr = 1 To Len(Str)
For cCtr = 1 To 10
FoundIt = False
If Mid(Str, iCtr, 1) = Mid(myKey, cCtr, 1) Then
myTrans = myTrans & (cCtr Mod 10)
FoundIt = True
Exit For
End If
Next cCtr
If FoundIt = False Then
myTranslate = "Error in String"
Exit Function
End If
Next iCtr
myTranslate = myTrans / 100
Else
myTrans = ""
If IsNumeric(Str) = False Then
myTranslate = "Not a Number!"
Exit Function
End If
Str = Format(Str, "0.00")
For iCtr = 1 To Len(Str)
myChar = Mid(Str, iCtr, 1)
If myChar = "." Then
'skip it
Else
If myChar = "0" Then
myChar = "10"
End If
myTrans = myTrans & Mid(myKey, myChar, 1)
End If
Next iCtr
myTranslate = UCase(myTrans)
End If
End Function
If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm
Short course:
Open your workbook.
Hit alt-f11 to get to the VBE (where macros/UDF's live)
hit ctrl-R to view the project explorer
Find your workbook.
should look like: VBAProject (yourfilename.xls)
right click on the project name
Insert, then Module
You should see the code window pop up on the right hand side
Paste the code in there.
Now go back to excel.
Put 3.50 in a A1
Put this in B1:
=myTranslate(A1)
And put this in C1:
=mytranslate(b1,true)
You should see GTD in B1 and 3.5 (format the cell the way you want) in C1.