Forum

How to convert numb...
 
Notifications
Clear all

How to convert numbers into words in excel

9 Posts
3 Users
0 Reactions
75 Views
(@salim-gul)
Posts: 33
Trusted Member
Topic starter
 

Hi everyone 

may hope you all will be well 

 

kindly guide me about the formula or method for converting digits in words, such as " 1,234 in words = one thousand two hundred thirty four only" in excel if there is a vba code for this, please send it

 
Posted : 28/06/2020 7:33 am
Philip Treacy
(@philipt)
Posts: 1629
Member Admin
 

Hi Salim,

Please read this post and use the code from it

https://www.myonlinetraininghub.com/convert-numbers-currency-to-words-with-excel-vba

Regards

Phil

 
Posted : 28/06/2020 9:55 am
(@salim-gul)
Posts: 33
Trusted Member
Topic starter
 

Hi Sir Philip Treacy 

 

Thanks for guide, there is a request regards this how can i add word "only" in this, i mean if i want to add only in last for example (one thousand five hundred dollar and no cent only ) please guide me

 
Posted : 29/06/2020 1:49 am
Philip Treacy
(@philipt)
Posts: 1629
Member Admin
 

Hi Salim,

Concatenate " only" to result the function returns:

=numtowords(A2) & " only"

Regards

Phil

 
Posted : 29/06/2020 4:01 am
(@sunnykow)
Posts: 1417
Noble Member
 

Hi Salim

To add to Phil's reply, you can also use SUBSTITUTE(numtowords(A2) & " only","dollars","euro"), for example.

It will replace the dollar to whatever currency (euro, in this example) that you are using.

Sunny

 
Posted : 29/06/2020 9:49 am
(@salim-gul)
Posts: 33
Trusted Member
Topic starter
 

Dear Sir Philip

 

is there any method of adding word "only" by using vba code, it will be easy and good then adding ( =numtoword()&"only"), by using formula =numtoword()

Regards

 

Salim

 
Posted : 30/06/2020 4:14 am
Philip Treacy
(@philipt)
Posts: 1629
Member Admin
 

Sure,

Open the VBA editor and modify the last line of the NumToWords function to this

NumToWords = Application.Trim(Units & SubUnits) & " only"

Regards

Phil

 
Posted : 30/06/2020 8:33 am
(@salim-gul)
Posts: 33
Trusted Member
Topic starter
 

Dear Sir Philip Treacy

 

Thank you very much for guidance, and hope you will be guide in future also, 

 

regards 

 

Salim

 
Posted : 30/06/2020 10:44 pm
Philip Treacy
(@philipt)
Posts: 1629
Member Admin
 

you're welcome

 
Posted : 01/07/2020 3:56 am
Share: