Note: The other languages of the website are Google-translated. Back to English
Войти  \/ 
x
or
x
Регистрация  \/ 
x

or

Как записывать или преобразовывать числа в английские слова в Excel?

Предположим, у вас есть много чисел суммы цены, и теперь вам нужно преобразовать или записать их в текстовые строки. Например, преобразовать $123.55 к английским словам сто двадцать три доллара пятьдесят пять центов. В Excel нет эффективных средств для решения этой проблемы, кроме использования длинного и сложного кода VBA. В этой статье я познакомлю вас с некоторыми методами борьбы с этим.

Написание или преобразование чисел в английские слова с кодом VBA

Записывайте или конвертируйте числа в английские слова с помощью Kutools for Excel


Написание или преобразование чисел в английские слова с кодом VBA

Следующий длинный код VBA может помочь вам преобразовать числа в текстовые строки. Сделайте следующее:

1. Удерживайте ALT + F11 ключи, и он открывает Microsoft Visual Basic для приложений окно.

2. Нажмите Вставить > Модуль, и вставьте следующий макрос в Окно модуля.

VBA: преобразование чисел валют в английские слова в Excel

Function SpellNumberToEnglish(ByVal pNumber)
'Updateby20131113
Dim Dollars, Cents
arr = Array("", "", " Thousand ", " Million ", " Billion ", " Trillion ")
pNumber = Trim(Str(pNumber))
xDecimal = InStr(pNumber, ".")
If xDecimal > 0 Then
    Cents = GetTens(Left(Mid(pNumber, xDecimal + 1) & "00", 2))
    pNumber = Trim(Left(pNumber, xDecimal - 1))
End If
xIndex = 1
Do While pNumber <> ""
    xHundred = ""
    xValue = Right(pNumber, 3)
    If Val(xValue) <> 0 Then
        xValue = Right("000" & xValue, 3)
        If Mid(xValue, 1, 1) <> "0" Then
            xHundred = GetDigit(Mid(xValue, 1, 1)) & " Hundred "
        End If
        If Mid(xValue, 2, 1) <> "0" Then
            xHundred = xHundred & GetTens(Mid(xValue, 2))
        Else
            xHundred = xHundred & GetDigit(Mid(xValue, 3))
        End If
    End If
    If xHundred <> "" Then
        Dollars = xHundred & arr(xIndex) & Dollars
    End If
    If Len(pNumber) > 3 Then
        pNumber = Left(pNumber, Len(pNumber) - 3)
    Else
        pNumber = ""
    End If
    xIndex = xIndex + 1
Loop
Select Case Dollars
    Case ""
        Dollars = "No Dollars"
    Case "One"
        Dollars = "One Dollar"
    Case Else
        Dollars = Dollars & " Dollars"
End Select
Select Case Cents
    Case ""
        Cents = " and No Cents"
    Case "One"
        Cents = " and One Cent"
    Case Else
        Cents = " and " & Cents & " Cents"
End Select
SpellNumberToEnglish = Dollars & Cents
End Function
Function GetTens(pTens)
Dim Result As String
Result = ""
If Val(Left(pTens, 1)) = 1 Then
    Select Case Val(pTens)
        Case 10: Result = "Ten"
        Case 11: Result = "Eleven"
        Case 12: Result = "Twelve"
        Case 13: Result = "Thirteen"
        Case 14: Result = "Fourteen"
        Case 15: Result = "Fifteen"
        Case 16: Result = "Sixteen"
        Case 17: Result = "Seventeen"
        Case 18: Result = "Eighteen"
        Case 19: Result = "Nineteen"
        Case Else
    End Select
Else
Select Case Val(Left(pTens, 1))
    Case 2: Result = "Twenty "
    Case 3: Result = "Thirty "
    Case 4: Result = "Forty "
    Case 5: Result = "Fifty "
    Case 6: Result = "Sixty "
    Case 7: Result = "Seventy "
    Case 8: Result = "Eighty "
    Case 9: Result = "Ninety "
    Case Else
End Select
Result = Result & GetDigit(Right(pTens, 1))
End If
GetTens = Result
End Function
Function GetDigit(pDigit)
Select Case Val(pDigit)
    Case 1: GetDigit = "One"
    Case 2: GetDigit = "Two"
    Case 3: GetDigit = "Three"
    Case 4: GetDigit = "Four"
    Case 5: GetDigit = "Five"
    Case 6: GetDigit = "Six"
    Case 7: GetDigit = "Seven"
    Case 8: GetDigit = "Eight"
    Case 9: GetDigit = "Nine"
    Case Else: GetDigit = ""
End Select
End Function

3. Затем сохраните код и вернитесь на рабочий лист, в соседней ячейке B2 введите формулу = SpellNumberToEnglish (A1), см. снимок экрана:

4, Затем нажмите Enter и выберите ячейку B2, затем перетащите маркер заполнения в диапазон, содержащий эту формулу, как вам нужно. И все номера валют были записаны английскими словами. Смотрите скриншот:

Внимание: Поскольку это формулы, когда вам нужно скопировать и вставить их, вставляйте их как значения.


Записывайте или конвертируйте числа в английские слова с помощью Kutools for Excel

Возможно, приведенный выше длинный код может вас разозлить, пожалуйста, не волнуйтесь, здесь я могу дать вам простой и быстрый способ решить эту проблему. С Kutools for ExcelАвтора Числа в слова функцию, вы можете быстро и удобно преобразовать числа в текстовые строки.

Kutools for Excel- Включает более 300 удобных инструментов для Excel. Полнофункциональная бесплатная 30-дневная пробная версия, кредитная карта не требуется! Get It Now

1. Выберите номера диапазона, который вы хотите разобрать, и нажмите Kutools > Content > Числа в слова.
doc kutools число в слова 1

2. В появившемся диалоговом окне выберите Английский из Языки. И вы можете просмотреть результаты справа предварительный просмотр Панель. Смотрите скриншот:
doc kutools число в слова 2

3. Затем нажмите Ok or Применить. И все числа суммы цены были преобразованы в текстовые строки в исходном диапазоне.
doc kutools число в слова 3

Внимание: Если вы просто хотите преобразовать числа в английские слова (не в валюту), проверьте Не конвертируется в валюту флажок.
doc kutools число в слова 3 doc kutools число в слова 3

Эта фантастическая особенность Числа в слова может легко преобразовать номера валюты в текст валюты на английском или китайском языке, например, перевести 32.01 в «Тридцать два доллара и один цент» или «叁拾 贰元 零 壹 分». Получите бесплатную пробную версию!

Demo: Назовите номера валют английскими словами


Лучшие инструменты для работы в офисе

Kutools for Excel решает большинство ваших проблем и увеличивает вашу производительность на 80%

  • Снова использовать: Быстро вставить сложные формулы, диаграммы и все, что вы использовали раньше; Зашифровать ячейки с паролем; Создать список рассылки и отправлять электронные письма ...
  • Бар Супер Формулы (легко редактировать несколько строк текста и формул); Макет для чтения (легко читать и редактировать большое количество ячеек); Вставить в отфильтрованный диапазон...
  • Объединить ячейки / строки / столбцы без потери данных; Разделить содержимое ячеек; Объединить повторяющиеся строки / столбцы... Предотвращение дублирования ячеек; Сравнить диапазоны...
  • Выберите Дубликат или Уникальный Ряды; Выбрать пустые строки (все ячейки пустые); Супер находка и нечеткая находка во многих рабочих тетрадях; Случайный выбор ...
  • Точная копия Несколько ячеек без изменения ссылки на формулу; Автоматическое создание ссылок на несколько листов; Вставить пули, Флажки и многое другое ...
  • Извлечь текст, Добавить текст, Удалить по позиции, Удалить пробел; Создание и печать промежуточных итогов по страницам; Преобразование содержимого ячеек в комментарии...
  • Суперфильтр (сохранять и применять схемы фильтров к другим листам); Расширенная сортировка по месяцам / неделям / дням, периодичности и др .; Специальный фильтр жирным, курсивом ...
  • Комбинируйте книги и рабочие листы; Объединить таблицы на основе ключевых столбцов; Разделить данные на несколько листов; Пакетное преобразование xls, xlsx и PDF...
  • Более 300 мощных функций. Поддерживает Office / Excel 2007-2019 и 365. Поддерживает все языки. Простое развертывание на вашем предприятии или в организации. Полнофункциональная 30-дневная бесплатная пробная версия. 60-дневная гарантия возврата денег.
вкладка kte 201905

Вкладка Office: интерфейс с вкладками в Office и упрощение работы

  • Включение редактирования и чтения с вкладками в Word, Excel, PowerPoint, Издатель, доступ, Visio и проект.
  • Открывайте и создавайте несколько документов на новых вкладках одного окна, а не в новых окнах.
  • Повышает вашу продуктивность на 50% и сокращает количество щелчков мышью на сотни каждый день!
офисный дно
Say something here...
symbols left.
You are guest
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.
    ScottSilver · 3 months ago
    Hi! How would I go about adding hyphens ( - ) between compound numbers, so instead of it spelling 55 as Fifty Five it would spell Fifty-Five. Simply adding hyphens to all "tens" obviously doesn't work since that would mean tat 20,000,000 would be spelled as "Twenty- Million". Thanks to whoever can solve this! 
  • To post as a guest, your comment is unpublished.
    ScottSilver · 3 months ago
    Hi! How would I go about adding hyphens ( - ) between compound numbers, so instead of it spelling 55 as Fifty Five it would spell Fifty-Five. Simply adding hyphens to all "tens" obviously doesn't work since that would mean tat 20,000,000 would be spelled as "Twenty- Million". Thanks to whoever can solve this!
  • To post as a guest, your comment is unpublished.
    prem · 1 years ago
    not suitable for indian currency allways show in doller
    • To post as a guest, your comment is unpublished.
      kellytte · 1 years ago
      Hi prem,
      At present, this Numbers to Words feature enables to convert numbers to Chinese Yuan and US Dollars.
  • To post as a guest, your comment is unpublished.
    HRIDESH KUMAR JAISWA · 2 years ago
    How can i get actuall figure without "no cents/ no dollars", if it's not needed. Please Email me in shown Mail ID.
    • To post as a guest, your comment is unpublished.
      SHUBHAM · 2 years ago
      HAVE U GOT ANY SOLUTION FOR THIS
      • To post as a guest, your comment is unpublished.
        alexa · 1 years ago
        just delete the no cents on line 46 and no dollars on line 38, leave it "" only
  • To post as a guest, your comment is unpublished.
    Hassan Khan · 3 years ago
    I was unable to do it, I don't know what happened to it, first of all it was OK, but only for one time then it shows this sign #NAME? can any one help me in this regards.
    • To post as a guest, your comment is unpublished.
      Kiks · 2 years ago
      Save it as Excel Macro Enable Workbook. and each time you will open the file, you'll see a Security Warning prompt (usually on top of Formula Bar) you have to click the Option button and tick the "Enable this content". This would solve your problem. Hope it would help
    • To post as a guest, your comment is unpublished.
      Mukesh · 3 years ago
      Please try one more time
  • To post as a guest, your comment is unpublished.
    Rajashekar · 3 years ago
    everytime i close the file.. the complete program is lost.. how can i save this for all my excel files
  • To post as a guest, your comment is unpublished.
    shabeen · 3 years ago
    thanks for the excellent job, I tried it , great , its working , greetings from Sri Lanka
  • To post as a guest, your comment is unpublished.
    Leonard Ruhashya · 3 years ago
    We thank you for this guideline it is most helpful, but how can i change the currency from Dollars to Rwandan Francs?

    Thanks
    • To post as a guest, your comment is unpublished.
      shabeen · 3 years ago
      search the below texts in the vba code and replace eg : search 1 >> Search for "Dollars" Replace with "Rwandan Francs"
      search 2 >> Search for "Dollar" Replace with "Rwandan Franc"
  • To post as a guest, your comment is unpublished.
    MOSES WAKIBI · 3 years ago
    I have followed the guidelines and managed to do it perfectly well for the first time. I have been designing templates and it has worked for me. Thank you so much.
  • To post as a guest, your comment is unpublished.
    Md Azmul Hossain · 3 years ago
    i wan to change this eg:( one hundred thousand rupees only ), pls explain me how to get that word "only"
  • To post as a guest, your comment is unpublished.
    Birkan · 4 years ago
    Amazing...You helped A LOT.. Thank you very much indeed
  • To post as a guest, your comment is unpublished.
    gamage · 4 years ago
    i wan to change this eg:( one hundred thousand rupees only ), pls explain me how to get that word "only"
  • To post as a guest, your comment is unpublished.
    Jalil · 4 years ago
    I just want to write like this (USD One Thousand One Hundred Ten and Cents Forty Five Only.) but how to convert like this?
  • To post as a guest, your comment is unpublished.
    Sonny · 4 years ago
    How can I convert so that the word "and" appears before the last two or three digits are converted.. For example.. at the moment the script converts 131 as One Hundred Thirty One.. but I want to convert as.. One Hundred AND Thirty one.. so 77762 should appear as.. Seventy Seven Thousand Seven Hundred AND Sixty Two.. is that possible? Thanks!
    • To post as a guest, your comment is unpublished.
      Joe · 4 years ago
      Sonny, did you get a solution to your question? Please share with me cause am facing same problem. I want 131 to be converted as One Hundred and Thirty One but not One Hundred Thirty One. Any Help?
    • To post as a guest, your comment is unpublished.
      hi.me.darla@gmail.com · 4 years ago
      Yes Sonny that's is correct way to spell 77762
  • To post as a guest, your comment is unpublished.
    VISHNU · 4 years ago
    How can i get actuall figure without "no cents/ no dollars", if it's not needed. Please Email me in shown Mail ID.
  • To post as a guest, your comment is unpublished.
    ANNA · 4 years ago
    [quote name="jabesh"]Please change all the words ~dollar/dollars" and ~cent/cents" in the code into your currency name.[/quote]
    change peso to dollar and change cent into 5/100
  • To post as a guest, your comment is unpublished.
    Santosh Verma · 4 years ago
    At the First Attempt it Worked but second day when i Opened same file the box in which formula was applied showed error I tried it Reached to Module 9 but I could not tackle the Problem, Please give Solution.
  • To post as a guest, your comment is unpublished.
    Muhammad Salman · 4 years ago
    please help me i want to change dollors in riyal and cent want to change in halalas. any body have any formet please give me that thanks.
  • To post as a guest, your comment is unpublished.
    sanjay sana · 4 years ago
    THANK YOU VERY AFTER LONG LONG DAY, NOW MY PROBLEM HAS BEEN SOLVED, TO CONVERT NUMERIC TO WORD...
  • To post as a guest, your comment is unpublished.
    Khurrum Iqbal · 4 years ago
    I am using MS Windows 10, 64 bit and MS Office Professional 2016, 64 bit.

    When I use =spellnumber() function and save the Excel work book with macro enabled file type, it works fine, but when I re-open the same or new work book it is not working at all.

    Is it possible that this function can work with all new and old work books, every time, whenever I want to use this function.

    Please help, how to solve this problem?.
  • To post as a guest, your comment is unpublished.
    Alpesh Patel · 4 years ago
    એક્ષેલ માં નંબર કે રકમને ગુજરતી શબ્દોમાં લખવા માટે

    "Alpesh175" ગુગલમાં સર્ચ કરો.
  • To post as a guest, your comment is unpublished.
    paula · 4 years ago
    Hi,

    Can you give the formula on how to convert the cents into fraction?
    ex. $100.10 to one hundred dollars & 10/100 cents

    Regards,
    Paula
  • To post as a guest, your comment is unpublished.
    Amanuel · 4 years ago
    Good evening,

    I need exell to spell a mumber seperatelly for me. example:

    a1 b1 c1 d1 e1
    14,300.21 one four three zero zero basically in six coloums.
    439.33 Four three nine
  • To post as a guest, your comment is unpublished.
    Khairul · 5 years ago
    Dear Sir, Its working fine for US dollar but i need for BD taka

    Pls. help me
  • To post as a guest, your comment is unpublished.
    Chandra · 5 years ago
    I cannot save this features in excel. When i get out the file & reopen the file, it does not work. How can i save this? How can i get actuall figure without "no cents/ no dollars", if it's not needed. Please Email me in shown Mail ID.
  • To post as a guest, your comment is unpublished.
    adel · 5 years ago
    hi,
    it is a great job, it worked very nice with me.
    but, I need to change the dicimals from 2 to 3.
    can you please assist me ?
    kind regards
    adel
  • To post as a guest, your comment is unpublished.
    adel · 5 years ago
    hi,
    this is a great job ... thanks
    but, how can change the dicimals to 3 digits instead of 2 digits.
    appreciate it
    adel
  • To post as a guest, your comment is unpublished.
    Saeed · 5 years ago
    Dear Admin, This is a very cool code which have programmed by you... Although, when I typed $200 the result shows (Two Hundred Dollars and no Cents)
    and when I typed $0.2 the result shows (No Dollars and Twenty Cents).... The question is that when I didn't type any Cent in number (i.e $200) why result shows NO CENTS... Subsequently, when I didn't type any dollar in number (i.e $0.2) why result shows NO DOLLAR.... If I want to get result except aforesaid two question what should the code be?????
  • To post as a guest, your comment is unpublished.
    raghu h n · 5 years ago
    spellnumber insert using visual basis but automatically is not working once i saved and open the document
  • To post as a guest, your comment is unpublished.
    shreenadh · 5 years ago
    FOR THIS PUPPIES 125420/-
    THIS CODE GETTING [b]ONE HUNDRED TWENTY FIVE THOUSAND FOUR HUNDRED TWENTY[/b]
    I WANT [b]ONE LAKH WENTY FIVE THOUSAND FOUR HUNDRED TWENTY [/b]
  • To post as a guest, your comment is unpublished.
    Rohit Bansal · 5 years ago
    Thanks for the same.. it was indeed of great help!!
  • To post as a guest, your comment is unpublished.
    Kaushik · 5 years ago
    How can i change the 244327565.75 - Twenty Four Crores Forty three lakhs Twenty Seven Thousand Five Hundred Sixty Five and Seventy Five Paise. Please show the step.
  • To post as a guest, your comment is unpublished.
    Jaafar · 5 years ago
    it works wonders tq, happy happy happy
  • To post as a guest, your comment is unpublished.
    Jaafar · 5 years ago
    TQ it works wonders!!
  • To post as a guest, your comment is unpublished.
    Imtiaz · 5 years ago
    Hi,

    Tks for the formula. But I need it to show as [b]US$[/b] in front and after the cents the word [b]only[/b]. How can I do that please:
    • To post as a guest, your comment is unpublished.
      JohnE · 5 years ago
      Use concatenate...
      For example, if you want to convert 5,362.86 to display US$ Five Thousand Three Hundred Sixty Two Dollars and 86 cents only", then use:
      =CONCATENATE("US $ ",(spellnumber(A17))," only"). The result is US $ Five Thousand Three Hundred Sixty Two Dollars and Eighty Six Cents only
  • To post as a guest, your comment is unpublished.
    Amit Roy · 5 years ago
    i done it sucessfully, thanks
  • To post as a guest, your comment is unpublished.
    Gulraiz · 5 years ago
    Hi Sir,

    I tried to save the macro as you mentioned above. and it is working fine. but if i close the excel and open a new sheet, it is not working . pls help
  • To post as a guest, your comment is unpublished.
    Pinky Sharma · 5 years ago
    Thanks..!
    User can also try free GWORD Multi Currency Converter to Words.
    Link - www.gwordformula.blogspot.com
  • To post as a guest, your comment is unpublished.
    jayesh · 5 years ago
    I tried to save the macro as you mentioned above. and it is working fine. but if i close the excel and open a new sheet, it is not working . pls help
  • To post as a guest, your comment is unpublished.
    jayesh · 5 years ago
    Hi Sir,

    I tried to save the macro as you mentioned above. and it is working fine. but if i close the excel and open a new sheet, it is not working . pls help[/quote]

    I also faced same issue, any help please. thanks[/quote]
  • To post as a guest, your comment is unpublished.
    Sonephet · 5 years ago
    I whant some help how to edit code vba excel What Want spell 1.200.000 = One million two hundred thousand only change in to My currency is One million two San only
  • To post as a guest, your comment is unpublished.
    khalan · 5 years ago
    I have input 100,000 became One hundred thounthoun
    what I need my currency 100,000 = One Sen
    Please kindly help.
  • To post as a guest, your comment is unpublished.
    Anil Sharma · 6 years ago
    Its is a very good formula, But I need the words in Indian format.
    is any short key for spell out Number Function
  • To post as a guest, your comment is unpublished.
    bhavana · 6 years ago
    is any short key for spell out Number Function
  • To post as a guest, your comment is unpublished.
    Michelle · 6 years ago
    Hi! This is of great help but how about if i want to convert 1,234,567.89
    to One Million Two Hundred Thirty Four Thousand Five Hundred Sixty Seven & 89/100 Only. Thank you.
  • To post as a guest, your comment is unpublished.
    basil secusana · 6 years ago
    Thanks, i got it, it help me a lot
  • To post as a guest, your comment is unpublished.
    Sinourn · 6 years ago
    It's really helpful Thanks very much i was success with Kutools for Excel
  • To post as a guest, your comment is unpublished.
    Mujeeb Ahmed · 6 years ago
    Dear, Sir I have been getting your help with ur formulas & code & your instructions.
    Thank you for all of your help..
    Sir I need translator formula so I can translate my work after finishing it in English to Arabic language..
    Can you plz help me out with the formula or codes with your instructions plz you instructions help required..
    I'm not well educated nor into technology just my passion for knowledge & learning.
    Thank you
    Regards
    Mujeeb Ahmed.
  • To post as a guest, your comment is unpublished.
    Anna · 6 years ago
    this is also my concern..please help
  • To post as a guest, your comment is unpublished.
    Skodin · 6 years ago
    Need this feature on your Android Mobile ?
    You have problems writing your amounts in letters on checks? transfer form? rebate check form?
    SpellMyAmount facilitate you all this; you enter the amount in numbers and it writes it for you in letters.
    SpellMyAmount is an Android application available on Google Play!
    Download it now: https://goo.gl/55u2YQ
    On FaceBook: https://goo.gl/s1t89g