convert a number

J

jim

Is there a way to automatically convert a number to text,
for example, if you enter '536' in a cell it will convert
it to 'five hundred thirty six'?
 
D

David McRitchie

Using a User Defined Function, but then you would want both
the number and wording Some links in
http://www.mvps.org/dmcritchie/excel/strings.htm#numberstowords

Some recent discussions have pointed out a difference in US and
British usage. In the US the "and" means a decimal point for fractional
part. I had always assumed that those that had an and somewhere else
were simply incorrect.
 
A

Arvi Laanemets

Hi

With UDF, you can get number as text in another cell, i.e. you enter 536
into one cell, and the text 'five hundred thirty six' appears in another
cell. To get it working for same cell, you have to use worksheet's Change
event. At first you have to check, was the entry in predefined range, then
was it a number. When not, exit, otherwise continue with code like in UDF.


Arvi Laanemets


David McRitchie said:
Using a User Defined Function, but then you would want both
the number and wording Some links in
http://www.mvps.org/dmcritchie/excel/strings.htm#numberstowords

Some recent discussions have pointed out a difference in US and
British usage. In the US the "and" means a decimal point for fractional
part. I had always assumed that those that had an and somewhere else
were simply incorrect.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

Is there a way to automatically convert a number to text,
for example, if you enter '536' in a cell it will convert
it to 'five hundred thirty six'?
 
J

JohnI

David,

Interesting. We use the British version in Australia too.

We say "five hundred point three six" for 500.36. "Five hundred and
thirty-six" means 536 here too.

In currency we say five hundred and thirty-six dollars ($536) or five
hundred dollars and thirty-six cents ($500.36).

regards,

JohnI


David McRitchie said:
Using a User Defined Function, but then you would want both
the number and wording Some links in
http://www.mvps.org/dmcritchie/excel/strings.htm#numberstowords

Some recent discussions have pointed out a difference in US and
British usage. In the US the "and" means a decimal point for fractional
part. I had always assumed that those that had an and somewhere else
were simply incorrect.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

Is there a way to automatically convert a number to text,
for example, if you enter '536' in a cell it will convert
it to 'five hundred thirty six'?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top