نصيحة: اللغات الأخرى مترجمة من قبل Google. يمكنك زيارة English نسخة من هذا الرابط.
تسجيل الدخول
x
or
x
x
التسجيل
x

or

كيفية تغيير أو تحويل عدد إلى نص في إكسيل؟

في بعض الأحيان قد لا تريد الأرقام في الخلايا المشاركة في حساب، أو قد ترغب في عرض الأصفار الرائدة في الأرقام في الخلايا. للقيام بذلك، قد تحتاج إلى تغيير رقم إلى نص. يمكن أن الطرق التالية تحويل الأرقام في الخلايا إلى نص في إكسيل.

تحويل عدد إلى نص مع وظيفة النص

تحويل الرقم إلى نص مع الأمر "تنسيق خلايا"

تحويل عدد إلى نص مع كوتولس ل إكسيل


تحويل أو تهجئة الأرقام إلى العملة الإنجليزية أو الصينية:

مع كوتولس ل إكسيل's تهجئة أرقام ميزة ، يمكنك تهجئة الأرقام إلى الكلمات الإنجليزية والصينية في Excel. على سبيل المثال ، يمكن أن تهجئة "12.75" إلى "اثنا عشر دولار وسبعة وسبعين سنتا".

doc تحويل رقم إلى نص 10

كوتولس ل إكسيل: مع أكثر من شنومكس مفيد اكسل الإضافية، مجانا في محاولة مع عدم وجود قيود في أيام شنومكس. تحميل وتجريبية مجانية الآن!


تحويل عدد إلى نص مع وظيفة النص

إذا كنت معتادا على صيغ ميكروسوفت إكسيل، يمكنك تحويل الأرقام في الخلايا إلى نص مع دالة نص.

إذا كنت ترغب فقط في تحويل الرقم إلى نص دون أي تنسيق، يمكنك استخدام الصيغة: = TEXT (A1 "0");

1. في الخلية E1 ، يرجى إدخال الصيغة = TEXT (A1 "0").

doc تحويل رقم إلى نص 1

2. ثم اضغط أدخل مفتاح. وحدد الخلية E1 ، اسحب مقبض التعبئة على نطاق الخلايا التي تريد تطبيق هذه الصيغة.لقطة الشاشة:

doc تحويل رقم إلى نص 2

ملاحظة:: نظرًا لأن البيانات هي صيغة ، يمكنك تغيير الصيغ إلى القيم. انسخ الخلايا وانقر بزر الماوس الأيمن على المكان الذي تريد لصق القيم وتحديده لصق خاص> القيم.

إذا كنت ترغب في عرض الصفر الرئيسي في الأرقام، يمكنك استخدام هذه الصيغة: = TEXT (A1 "00000"). مثل تحويل شنومكس إلى شنومكس.

كخطوات أعلاه، إذا قمت بتطبيق هذه الصيغة، سوف تحصل على النتيجة التالية:

doc تحويل رقم إلى نص 3

وإذا كنت ترغب في تحويل الأرقام إلى نص التي تبقي عدة أرقام عشرية، يمكنك استخدام هذه الصيغة: = TEXT (A1 "0.000"). مثل تحويل شنومكس إلى شنومكس.

أيضا مع الخطوات المذكورة أعلاه، إذا قمت بتطبيق هذه الصيغة، سوف تحصل على النتيجة كما لقطات التالية:

doc تحويل رقم إلى نص 4

ملاحظة:: يمكنك تحديد نمط النص. على سبيل المثال، إذا كنت ترغب في تحويل الأرقام إلى نص بتنسيق رقم الهاتف، يمكنك استبدال "شنومك" مع "شنومكس-شنومك"، أو غيرها.


علامة التبويب مكتب الموافقة المسبقة عن علم

موسم تسريح العمال قادم ، لا يزال يعمل ببطء؟
-- تبويب أوفيس يعزز وتيرتك ، يوفر 50٪ وقت العمل!

  • رائعة حقا! تشغيل مستندات متعددة أكثر راحة وراحة من مستند واحد ؛
  • مقارنة بمتصفحات الويب الأخرى ، تعد واجهة Office Tab أكثر قوة وجمالية ؛
  • قلل من آلاف نقرات الماوس المملة ، قل وداعًا لداء الفقار عنق الرحم ويد الفأر.
  • يتم اختيارها من قبل نخبة 90,000 و 300 + الشركات المعروفة!
ميزة كاملة ، التجربة المجانية 30 اليوم إقرأ المزيد تحميل الآن!

تحويل الرقم إلى نص مع الأمر "تنسيق خلايا"

ميكروسوفت إكسيل تنسيق الخلايا الأمر هو أيضا قادرة على تحويل الأرقام إلى نص.

1. حدد الأرقام التي تريد تحويلها إلى نص.

2. انقر بزر الماوس الأيمن على النطاق المحدد ، واختر تنسيق الخليةs من قائمة السياق. انظر لقطة الشاشة:

doc تحويل رقم إلى نص 5

3. في تنسيق الخلايا مربع الحوار، حدد نصي البند في اختر الفئة مربع تحت عدد ثم انقر فوق OK زر. انظر لقطة الشاشة:

doc تحويل رقم إلى نص 6

4. ثم يتم تحويل الأرقام في النطاق المحدد إلى نص.


تحويل عدد إلى نص مع كوتولس ل إكسيل

إذا كان لديك كوتولس ل إكسيل تثبيت، سيكون من الأسهل بالنسبة لك لتحويل الأرقام في الخلايا إلى نص مع تحويل بين النص والرقم.

كوتولس ل إكسيل : مع أكثر من شنومكس مفيد اكسل الإضافية، مجانا في محاولة مع عدم وجود قيود في أيام شنومك.

بعد تثبيت كوتولس ل إكسيل، يرجى القيام على النحو التالي:

1. حدد النطاق الذي يحتوي على الأرقام التي تريد تغييرها إلى نص.

2. انقر Kutools > المحتوى > تحويل بين النص والرقم. انظر لقطة الشاشة:

doc تحويل رقم إلى نص 7

3. في تحويل بين النص والرقم مربع الحوار، والتحقق من الرقم إلى النص الخيار، ثم انقر فوق OK or تطبيق زر. وتم تحويل جميع الأرقام إلى نص في النطاق الأصلي. انظر لقطة للشاشة:

doc تحويل رقم إلى نص 8

انقر لتحميل كوتولس ل إكسيل ونسخة تجريبية مجانية الآن!


كوتولس ل إكسيل: مع أكثر من شنومكس مفيد اكسل الإضافية، مجانا في محاولة مع عدم وجود قيود في أيام شنومكس. تحميل وتجريبية مجانية الآن!


مقالات لها صلة:

كيفية تغيير أو تحويل النص إلى رقم في إكسيل؟


Kutools for Excel يحل معظم مشاكلك ، ويزيد من إنتاجيتك بنسبة 80٪

  • إعادة استخدام: إدراج بسرعة الصيغ المعقدة ، الرسوم البيانية وأي شيء استخدمته من قبل ؛ تشفير الخلايا مع كلمة المرور إنشاء قائمة بريدية وإرسال رسائل البريد الإلكتروني ...
  • سوبر الفورمولا بار (بسهولة تحرير أسطر متعددة من النص والصيغة) ؛ تخطيط القراءة (بسهولة قراءة وتحرير أعداد كبيرة من الخلايا) ؛ لصق على المدى المصفى...
  • دمج الخلايا / الصفوف / الأعمدة دون فقدان البيانات ؛ انقسام خلايا المحتوى ؛ الجمع بين تكرار الصفوف / الأعمدة... منع الخلايا المكررة. مقارنة النطاقات...
  • حدد تكرار أو فريد الصفوف. حدد صفوف فارغة (جميع الخلايا فارغة) ؛ سوبر البحث والعثور غامض في العديد من المصنفات ؛ اختيار عشوائي ...
  • نسخة طبق الأصل خلايا متعددة دون تغيير مرجع الصيغة ؛ إنشاء المراجع تلقائيًا إلى أوراق متعددة. إدراج الرصاصات، مربعات الاختيار والمزيد ...
  • استخراج النص، إضافة نص ، حذف حسب الموضع ، إزالة الفضاء. إنشاء وطباعة مجاميع ترحيل الصفحات ؛ تحويل بين محتوى الخلايا والتعليقات...
  • سوبر تصفية (حفظ وتطبيق مخططات التصفية على أوراق أخرى) ؛ تصنيف متقدم حسب الشهر / الأسبوع / اليوم ، التردد وأكثر ؛ فلتر خاص بواسطة جريئة ، مائل ...
  • الجمع بين المصنفات وأوراق العمل. دمج الجداول على أساس الأعمدة الرئيسية ؛ تقسيم البيانات إلى أوراق متعددة; دفعة تحويل XLS ، XLSX وقوات الدفاع الشعبي...
  • أكثر من ميزات 300 القوية. يدعم Office / Excel 2007-2019 و 365. يدعم جميع اللغات. سهولة النشر في مؤسستك أو مؤسستك. ميزات كاملة النسخة التجريبية المجانية من 30.
علامة التبويب kte 201905

علامة تبويب Office توفر واجهة مبوبة لـ Office ، واجعل عملك أسهل بكثير

  • تمكين تحرير علامات التبويب والقراءة في Word و Excel و PowerPointوالناشر والوصول ، Visio ومشروع.
  • افتح مستندات متعددة وقم بإنشائها في علامات تبويب جديدة لنفس النافذة ، وليس في نوافذ جديدة.
  • يزيد إنتاجيتك بنسبة 50٪ ، ويقلل مئات نقرات الماوس لك كل يوم!
أسفل مكتبه
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Alice · 5 months ago
    How do you convert to text an amount with decimal number of which the decimal numbers remain as numbers? example: 750.25 - SEVEN HUNDRED FIFTY & 25/100.. Thank you
  • To post as a guest, your comment is unpublished.
    Anton Thelander · 6 months ago
    Large thanks!
  • To post as a guest, your comment is unpublished.
    Tere Martin Rangel · 7 months ago
    Cuando convierto un numero en texto me lo pone en Ingles y en Dólares, lo necesito es en Español y en pesos Mexicanos, ¿como puedo resolver esto?
    De antemano gracias por la atención que se sirva darme.
  • To post as a guest, your comment is unpublished.
    mg · 7 months ago
    Hi, not working in our currency which is philippine peso. Kindly help. Thank you.
  • To post as a guest, your comment is unpublished.
    Praveen · 11 months ago
    After converting words to figures, How can start with "Rupees" and end with "Only"
  • To post as a guest, your comment is unpublished.
    MNB · 1 years ago
    If i have assign
    0 as Q
    1 as W
    2 as R
    3 as E
    4 as Z
    5 as S
    6 as T
    7 as B
    8 as K
    9 as A
    how to convert a numerical value to text code like 2356 i want 2 as R, 3 as E, 5 as S, 6 as T, so when i write 2356 i got result REST?
    • To post as a guest, your comment is unpublished.
      Ata Biabani · 9 months ago
      A workaround can be using the SUBSTITUTE formula ten times to replace all the numbers with the respective letters:

      =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,0,"Q"),1,"W"),2,"R"),3,"E"),4,"Z"),5,"S"),6,"T"),7,"B"),8,"K"),9,"A")

      Where A1 is the reference cell for the numeric values.
  • To post as a guest, your comment is unpublished.
    Ramesh · 1 years ago
    When I entered Numbers in Cell Eg : 150 the will written as One hundred and fifty
  • To post as a guest, your comment is unpublished.
    mary · 1 years ago
    how translate staff id to text as "filled" and vice versa for nil staff ID to 'vacant"
  • To post as a guest, your comment is unpublished.
    Sikhar Chakravarty · 1 years ago
    i m a novice. text in cells read as 1234 5678 1234 i.e with a space bet each 4 digit clusters. how can i compress it as 123456781234 ?
    • To post as a guest, your comment is unpublished.
      Ata Biabani · 1 years ago
      =SUBSTITUTE(A1," ","")
      Where A1 is reference cell for 1234 5678 1234
      • To post as a guest, your comment is unpublished.
        Stéphane Degrémont · 9 months ago
        Great tip thanks. Now FYI this didn't work at first for me, as for some reason it didn't recognize the space.. but when I cut and pasted the "space" from the source (cut-and-pasted financial values from a web page) instead of pressing the space bar it worked fine.
        • To post as a guest, your comment is unpublished.
          Ata Biabani · 9 months ago
          It might be another Character that appears like the Space character. When you copy and paste data from external sources such as websites, unwanted characters will come across with different ASCII codes that may look like the Space character.

          The above formula meant to remove only the Space character from your string. Space character means the value of the Char(32) on the ASCII values.

          Best would be to modify the formula as =SUBSTITUTE(A1,CHAR(32),"")
    • To post as a guest, your comment is unpublished.
      Vinay Prajapati · 1 years ago
      Try Using =CONCATENATE("",LEFT(H20,4),MID(H20,6,4),RIGHT(H20,4))


      Whereis H20 is reference cell for 1234 5678 1234
      • To post as a guest, your comment is unpublished.
        Anonymous · 1 years ago
        Use replace function. Highlight the cells you want to edit then Ctrl+H. Replace space to blank
  • To post as a guest, your comment is unpublished.
    kamlesh manchekar · 1 years ago
    I want to convert digit into words in indian language? How to do that?
    • To post as a guest, your comment is unpublished.
      Vinay Prajapati · 1 years ago
      Try Using This -

      =IF(MID(K14,1,1)="1","One",IF(MID(K14,1,1)="2","Two",IF(MID(K14,1,1)="3","Three",IF(MID(K14,1,1)="4","Four",IF(MID(K14,1,1)="5","Five",IF(MID(K14,1,1)="6","Six",IF(MID(K14,1,1)="7","Seven",IF(MID(K14,1,1)="8","Eight",IF(MID(K14,1,1)="9","Nine",IF(MID(K14,1,1)="0","Zero",""))))))))))&" "&IF(RIGHT(K14,1)="1","One",IF(RIGHT(K14,1)="2","Two",IF(RIGHT(K14,1)="3","Three",IF(RIGHT(K14,1)="4","Four",IF(RIGHT(K14,1)="5","Five",IF(RIGHT(K14,1)="6","Six",IF(RIGHT(K14,1)="7","Seven",IF(RIGHT(K14,1)="8","Eight",IF(RIGHT(K14,1)="9","Nine",IF(RIGHT(K14,1)="0","Zero",""))))))))))


      Instead of Using "One" "Two" "Three", You can change what ever you want against perticular No, also above code is for only upto two digits. you can extended it to any no by adding IF with MID formula.


      K14 is reference cell for Number.
      • To post as a guest, your comment is unpublished.
        Darshan · 11 months ago
        Using this formula, 99 would convert into 'Nine Nine'. Same goes for every other number (two digited). Seems the question was to how to spell a numerical value.
  • To post as a guest, your comment is unpublished.
    Amrita · 1 years ago
    I couldn't covert number into million and billion $ currency. Help me to because I am confused.
  • To post as a guest, your comment is unpublished.
    Amrita · 1 years ago
    I want to convert dollar currency into million or billion format . I am confused do it. could you plz guide me.
  • To post as a guest, your comment is unpublished.
    Shafi · 2 years ago
    Some clarification, when I try to convert below number it changes its format, eg. given below can you explain why this happen? other than zero it works fine

    B64=890151200020,
    H64=0
    J64=TEXT(B64,"000 0000 0000 0 "&H64) it changes to "089 0151 2000 2 0" instead of "890 1512 0002 0 0"
  • To post as a guest, your comment is unpublished.
    Excel Expert · 2 years ago
    Perfect solution has been found.
    Full formulas could not be written due to space limitation. mail me at mukeshbrahmankar(gmail) for the file. File would be sent on a friendly note, no commercial thing.

    Regards
  • To post as a guest, your comment is unpublished.
    Alexandra · 2 years ago
    Any chace t change date in Text format, not keeping Date format?
    Ex. 1/1/2017 d/m/yyyy in the same way but text formatting?
  • To post as a guest, your comment is unpublished.
    FALSE · 2 years ago
    tnx for your solution
    be healthy
  • To post as a guest, your comment is unpublished.
    John Smith · 2 years ago
    I cannot reproduce your result. When using the TEXT formula trying to convert a number to text, the resulting content was left-aligned but there was no green triangle, meaning the content was still a number, not text. Same result when using the menu command. No triangle.

    I use Excel 2010.
  • To post as a guest, your comment is unpublished.
    John Smith · 2 years ago
    I cannot reproduce your results. When I used the first method trying to convert a number to text, the resulting number was left-aligned but there was not green triangle, meaning the content was still a number, not text. Same result with using the menu command. No green triangle.

    I'm using Excel 2010.
  • To post as a guest, your comment is unpublished.
    Imans · 2 years ago
    [quote name="Rajesh K"]Hi., Using conditional formatting you can do this. Select the range, goto conditional formatting (Cells that contain value), enter the value as per your requirement. Now select format goto Number - Custom and then type the text you are looking for within quotes. You can get your result. It will be useful for visual purpose only. Though the result displayed is in Text format, if you click on the cell it will have original value what it had. Try it....[/quote]

    :lol: horray great it will save time and brain ! thanks
  • To post as a guest, your comment is unpublished.
    Benjamin Jackson · 2 years ago
    Hi there,
    i would like to convert this numner to words in excel
    For example : 12,500.44 to USD twelve thousand five hundred and cents forty four only. Please give excel in add-ins format
  • To post as a guest, your comment is unpublished.
    CHOW · 2 years ago
    Hi there,
    i would like to convert this numner to words in excel
    For example : 14,444.44 to FOURTEEN THOUSAND FOUR HUNDRED FORTY FOUR AND CENTS FORTY FOUR ONLY
  • To post as a guest, your comment is unpublished.
    Sami Awad · 2 years ago
    You can easily do that, fist lets say that the number is in the cell F44, type this formula in the cell you want to display the number in text :
    =SpellNumber(F44)

    lets say that you have a number in cell c23 , and you wand to display it ni c 24, then you will type in c24 the following: =SpellNumber(C23)
  • To post as a guest, your comment is unpublished.
    HANY · 2 years ago
    I already made an excel sheet that does this, please send me your email address and i will forward it to you, i cannot find any way to attach it here for the common benefit.
  • To post as a guest, your comment is unpublished.
    mas · 2 years ago
    how we can change a cell that contain for example [2"] ( size of pipe) to pure number 2
  • To post as a guest, your comment is unpublished.
    mahendran · 3 years ago
    dear sir
    i want typing the number in excel then next convert to words

    sample-1000-One thousand
  • To post as a guest, your comment is unpublished.
    Mike · 3 years ago
    Thank you! I needed to know how to convert numbers to zero-filled text.
  • To post as a guest, your comment is unpublished.
    sajid · 3 years ago
    plz send me formula step wise of the convert number into text .
    how can i convert a number into text
  • To post as a guest, your comment is unpublished.
    Balaji Panchal · 3 years ago
    Dear sir
    I am Balaji
    I need to convert number to text like as below e.g.
  • To post as a guest, your comment is unpublished.
    Balaji Panchal · 3 years ago
    Dear sir
    I want a number to text convert for that help me sir which is function in excel
  • To post as a guest, your comment is unpublished.
    surjan · 3 years ago
    I want to change number into words


    eg: 1000 in words one thousand only
  • To post as a guest, your comment is unpublished.
    surjan · 3 years ago
    Dear Provider,
    I need to convert number to text like as below e.g.
    344835.10 = THREE HUNDRED FORTY FOUR THOUSAND EIGHT HUNDRED THIRTY FIVE & TEN PAISA ONLY.
  • To post as a guest, your comment is unpublished.
    KALANITHI · 4 years ago
    I want to change number into words


    eg: 1000 in words one thousand only
  • To post as a guest, your comment is unpublished.
    KALANITHI · 4 years ago
    Sir ,
    How to change number in words in exel sheets

    Example :

    100 = one hundred
  • To post as a guest, your comment is unpublished.
    Naveen Gowda · 4 years ago
    Dear Sir

    I want to change number into words


    eg: 1000 in words one thousand only
  • To post as a guest, your comment is unpublished.
    Naveen Gowda · 4 years ago
    [wiki]12[/wiki][quote]12[/quote][url]1[/url]
  • To post as a guest, your comment is unpublished.
    Dawn · 4 years ago
    WRONG. "Convert number to text with Format Cells command" does not actually change the number into text, it only changes the cell formatting. Which means it looks like text but may be treated like a number. A number changed this way will not be recognized as text by the COUNTIF function, although it will be by the COUNTA function. It's confusing even to experienced users, and Microsoft has never made the distinction clear.
  • To post as a guest, your comment is unpublished.
    Abu · 4 years ago
    I want automatic convert into inwards in excell sheet.
  • To post as a guest, your comment is unpublished.
    arun prakash · 4 years ago
    HOW TO CONVERT THE Numeric into Azeri words ? plz help ,Can you send the spellnumber VBA PROGRAM FOR THAT////Plz help
  • To post as a guest, your comment is unpublished.
    ashish Nautiyal · 5 years ago
    Dear All,

    Please help me about convert number to word

    20= Twenty
  • To post as a guest, your comment is unpublished.
    Vinay Puri · 5 years ago
    I Want to change number to text

    example: -500 in words
  • To post as a guest, your comment is unpublished.
    Rajkumar · 5 years ago
    sir

    I want to change number into words


    example: 1000 in words one thousand only
  • To post as a guest, your comment is unpublished.
    Ivan · 5 years ago
    Use the IF Function ex: 100 One Hundred [b]=IF(I7=100,"One Hundred") [/b] Thanks,
  • To post as a guest, your comment is unpublished.
    connie · 5 years ago
    Hello, I am needing to find out how I would convert this into a formula?

    I want to input a formula in cell f5 that takes
    d5 divided by e5 then multiple the answer by 100 and this would be my answer in cell f5
    Example D5 is 95 and E5 is 110
    95/110=0.86364x100=86.364 which if possible would like to round the 86.364 to 86 because this is the percent. 86%

    Could you please help because I can not figure this formula out! Thank you ...
    • To post as a guest, your comment is unpublished.
      Ashwin Singh · 5 years ago
      Hi connie,

      please try this formula.. may be it will be helpful for you. =ROUND(D5/E5*100,0)
    • To post as a guest, your comment is unpublished.
      Rajesh K · 5 years ago
      Hi., Using conditional formatting you can do this. Select the range, goto conditional formatting (Cells that contain value), enter the value as per your requirement. Now select format goto Number - Custom and then type the text you are looking for within quotes. You can get your result. It will be useful for visual purpose only. Though the result displayed is in Text format, if you click on the cell it will have original value what it had. Try it....
  • To post as a guest, your comment is unpublished.
    Stan · 5 years ago
    Does anybody know how to convert a number to a word when the value of that number reaches a specific point? Example: if a cell is higher than 10 I want that number to be replaced with a word, so my clients cant see my inventory. THANK U SO MUCH FOR UR HELP
  • To post as a guest, your comment is unpublished.
    AINIE · 5 years ago
    #Ainie

    Dear Provider,
    I need to convert number to text like as below e.g.
    344835.10 = THREE HUNDRED FORTY FOUR THOUSAND EIGHT HUNDRED THIRTY FIVE & TEN PAISA ONLY.


    if you can help us it's better for my commercial work.[/quote]
    • To post as a guest, your comment is unpublished.
      Devrao Pawar · 5 years ago
      [quote name="

      Dear Provider,
      I need to convert number to text like as below e.g.
      344835.10 = THREE HUNDRED FORTY FOUR THOUSAND EIGHT HUNDRED THIRTY FIVE & TEN PAISA ONLY.


      if you can help us it's better for my commercial work.[/quote][/quote]
  • To post as a guest, your comment is unpublished.
    Md. Faruk Hossain · 5 years ago
    I want convert 100 to in word One Hundred. Please tell me how way I could convert.
  • To post as a guest, your comment is unpublished.
    Girraj mehta · 5 years ago
    Dear Provider,
    I need to convert number to text like as below e.g.
    1000=ONE THOUSAND ONLy
  • To post as a guest, your comment is unpublished.
    Loknath Sapkota · 5 years ago
    Dear Provider,
    I need to convert number to text like as below e.g.
    344835.10 = THREE HUNDRED FORTY FOUR THOUSAND EIGHT HUNDRED THIRTY FIVE & TEN PAISA ONLY.


    if you can help us it's better for my commercial work.
  • To post as a guest, your comment is unpublished.
    Maya Academy Urimari · 5 years ago
    change number into figure in Excel
    like 2 = Two

    Step1: press alt+F11
    Step2: Insert à Module

    Step3: type ='wordnum(12)' will show `Twelve'.



    Option Explicit
    Public Numbers As Variant, Tens As Variant

    Sub SetNums()
    Numbers = Array("", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven", "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen", "Eighteen", "Nineteen")
    Tens = Array("", "", "Twenty", "Thirty", "Forty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninety")
    End Sub

    Function WordNum(MyNumber As Double) As String
    Dim DecimalPosition As Integer, ValNo As Variant, StrNo As String
    Dim NumStr As String, n As Integer, Temp1 As String, Temp2 As String
    ' This macro was written by Chris Mead - www.MeadInKent.co.uk

    If Abs(MyNumber) > 999999999 Then
    WordNum = "Value too large"
    Exit Function
    End If

    SetNums

    ' String representation of amount (excl decimals)
    NumStr = Right("000000000" & Trim(Str(Int(Abs(MyNumber)))), 9)
    ValNo = Array(0, Val(Mid(NumStr, 1, 3)), Val(Mid(NumStr, 4, 3)), Val(Mid(NumStr, 7, 3)))

    For n = 3 To 1 Step -1 'analyse the absolute number as 3 sets of 3 digits
    StrNo = Format(ValNo(n), "000")

    If ValNo(n) > 0 Then
    Temp1 = GetTens(Val(Right(StrNo, 2)))
    If Left(StrNo, 1) "0" Then
    Temp2 = Numbers(Val(Left(StrNo, 1))) & " hundred"
    If Temp1 "" Then Temp2 = Temp2 & " and "
    Else
    Temp2 = ""
    End If

    If n = 3 Then
    If Temp2 = "" And ValNo(1) + ValNo(2) > 0 Then Temp2 = "and "
    WordNum = Trim(Temp2 & Temp1)
    End If
    • To post as a guest, your comment is unpublished.
      calix · 2 years ago
      this part here is not okay:

      If Left(StrNo, 1) "0" Then
      Temp2 = Numbers(Val(Lef t(StrNo, 1))) & " hundred"
      If Temp1 "" Then Temp2 = Temp2 & " and "

      how to correct that please? thanks
    • To post as a guest, your comment is unpublished.
      Sparky · 5 years ago
      There seems to be some errors in the above code - doesn't work quite right (for example, result when tested with "1" is "hundred and".
  • To post as a guest, your comment is unpublished.
    Thilak · 5 years ago
    can i convert a numeric value into kannada words in M S Excel