Download as xls, pdf, or txt
Download as xls, pdf, or txt
You are on page 1of 2

NumSource: 123.

45

Translated Text: Err:502

To include this sheet in any open workbook


• Right-Click the DisplayForm sheet tab (below)
• Select: Move or copy
• Check: Create a copy
• Choose the destination workbook from the dropdown list
• Click the [OK] button

Named Range Description


NumSource Reference to the cell containing the original number
Units Names of the whole and fractional units, singular and
plural (eg Dollar, Dollars, Cent, Cents)
LU_NumTextList List of number words used in the translation

LU_NumList List of numeric values


WIPnum Original number (NumSource), converted to a text
string formatted as 000000000000000. Note: The
decimal point has been replaced with a zero.

Num A 3x5 array of WIPnum triads converted to their word


values. Each row references WIPnum triads consisting
of the 100's, 10's, and 1's words

Denom An array that assignes denomination values to


WIPNum triads
NumText_Whole The whole number section of the original number,
converted to words

NumText_Decimal The fractional section of the original number,


converted to words
NumsToWords The original number, translated to words
Using the NumsToWords calculation in the new workbook
• NumsToWords will always translate the value in the cell named NumSource
• You can cut and paste the NumSource cell anywhere in the workbook
(Alternatively, you can redefine NumSource to refer to any other cell in the workbook
If that celll is not in the DisplayForm sheet, you can delete this sheet)
• Then, enter: =NumsToWords in any cell to view the translated NumSource value

Refers to
=DisplayForm!$C$2
={"Dollar","Dollars","Cent","Cents"}

={""," One"," Two"," Three"," Four"," Five"," Six"," Seven"," Eight"," Nine"," Ten"," Eleven","
Twelve"," Thir||"," Four||"," Fif||"," Six||"," Seven||"," Eigh||"," Nine||"," Twen|"," Thir|"," For|","
Fif|"," Six|"," Seven|"," Eigh|"," Nine|"}

={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,30,40,50,60,70,80,90}
=SUBSTITUTE(TEXT(N(NumSource),"000000000000.00"),".","0")

=IF(INT(MOD(MID(WIPnum,{1;4;7;10;13},3)/{100,1,1},
{10,100,100}))>{0,0,19},LOOKUP(INT(MOD(MID(WIPnum,{1;4;7;10;13},3)/{100,1,1},
{10,100,10})),LU_NumList,LU_NumTextList)&{" Hundred","",""},{"","",""})

=IF(INT(MID(WIPnum,{1;4;7},{3;3;3})),{" Billion";" Million";" Thousand"},{"";"";""})

=IF(N(NumSource)<1,"No
",INDEX(Num,1,1)&INDEX(Num,1,2)&INDEX(Num,1,3)&INDEX(Denom,1)&INDEX(Num,2,1)&I
NDEX(Num,2,2)&INDEX(Num,2,3)&INDEX(Denom,2)&INDEX(Num,3,1)&INDEX(Num,3,2)&IN
DEX(Num,3,3)&INDEX(Denom,3)&INDEX(Num,4,1)&INDEX(Num,4,2)&INDEX(Num,4,3)&" ")

=IF(--RIGHT(WIPnum,2)=0," No ",INDEX(Num,5,1)&INDEX(Num,5,2)&INDEX(Num,5,3)&" ")

=IF(AND(ISNUMBER(NumSource),N(NumSource)>=0),TRIM(SUBSTITUTE(SUBSTITUTE(Nu
mText_Whole&INDEX(Units,IF(INT(N(NumSource))=1,1,2))&"
and"&NumText_Decimal,"||","teen"),"|","ty")&INDEX(Units,IF(--
RIGHT(WIPnum,2)=1,3,4))),"INVALID")

You might also like