Nice, Glen. I had already been working on something more complicated which I'll go ahead and post since I think Chris wants the "in a thousand" part spelled out.
- - -
Excel doesn't have a built-in function to convert numbers to words. I have some VBA code that will do it, but it is probably overkill for your situation since it works for all numbers 1 through 999,999.
Here's an idea, though:
Start by pasting this table into another sheet:
[tt]
# Dec.
Places Multiplier Spelled Out
1 10 Ten
2 100 One Hundred
3 1,000 One Thousand
4 10,000 Ten Thousand
5 100,000 One Hundred Thousand
6 1,000,000 One Million
7 10,000,000 Ten Million
8 100,000,000 One Hundred Million
9 1,000,000,000 One Billion
10 10,000,000,000 Ten Billion
11 100,000,000,000 One Hundred Billion
[/tt]
Let's use a named range for that table - we'll call it
tblDecimalConversion.
Now over on the main sheet, if your number is in A1, you can use this formula:
[tab][COLOR=blue white]=A1 * VLOOKUP((LEN(A1)-(LEN(INT(A1))+1)), tblDecimalConversion, 2) & " in " & VLOOKUP((LEN(A1)-(LEN(INT(A1))+1)), tblDecimalConversion, 3)[/color]
(I'm assuming that the value in A1 will never be >=1)
[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]
Help us help you. Please read
FAQ 181-2886 before posting.