excel convert number to words

shrinivasmj

Board Regular
Joined
Aug 29, 2012
Messages
140
hi

i am looking to convert numbers to words need vb or macro


output in the below formate

Instructions On How To Enter The ANNUAL INCOME (In Words)
$50,000Fifty Thousand Dollars Only
$50,250Fifty Thousand, Two Hundr ed And Fifty Dollars Only
$100,000One Hundred Thousand Dollars Only
$150,500One Hundred And Fifty Thousand And Five Hundred Dollars Only
$56,456,331Fifty Six Million, Four Hundred And Fifty Six Thousand, Three Hundr ed And Thirty One Dollars Only
$23,154,646Twenty Three Million, One Hundr ed And Fifty Four Thousand, Six Hundred And Forty Six Dollars Onl y
$548,546Five Hundred And Forty Eight Thousand, Five Hundred And Forty Six Dollars Only
$64,543Sixty Four Thousand, Five Hundred And Forty Three Dollars Only
$500,000Five Hundred Thousand Dollars Only
$500,250Five Hundred Thousand, Two Hundred And Fifty Dollars Only

<tbody>
</tbody>

<tbody>
</tbody>
all words start with caps latter
always ends with Only
COMA AND AND TO BE USED IN RESPECTIVE ARES
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Make the changes highlighted in red below to the Microsoft sample to make it fully comply with your request.

Rich (BB code):
'Main Function
Function SpellNumber(ByVal MyNumber)

.
.
.
 
           Cents = " And " & Cents & " Cents"
    End Select
    SpellNumber = Dollars & Cents & " Only"
End Function

4th line from bottom : Change lower case a in the word " and" to uppercase A
2nd line from bottom: add the text ' & " Only" ' to the end of the line.
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,917
Members
449,093
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top