excel 2013 中的拼写数使用 2 行

Spell number in excel 2013 using 2 rows

每当我在 excel 2013 年使用拼写数字时,我都试图包含 2 行, 我想获得第二个输出。有什么想法吗?

注:SpellNumber是微软提供的用户自定义函数 https://support.microsoft.com/en-us/help/213360/how-to-convert-a-numeric-value-into-english-words-in-excel

拆分号码

顶行:=SpellNumber((TRUNC(J7/100)*100))

第二行:=SpellNumber(J7 - (TRUNC(J7/100)*100))

(其中 J7 是您数值的单元格。)

这会将数字分开,但拼写数字仍会像这样拼出第一行的分...

Ten Thousand One Hundred Pesos No Centavos


拆分文本

要仅获取 "Pesos No Centavos" 或 "Dollars and No Cents" 部分之前的文本,请使用类似这样的内容...

=LEFT(SpellNumber((TRUNC(J7/100)*100)),FIND("Pesos",SpellNumber(TRUNC(J7/100)*100))-2)

或者这可能与货币无关...

=LEFT(SpellNumber((TRUNC(J7/100)*100)),FIND("Hundred",SpellNumber(TRUNC(J7/100)*100))+6)

如果您在文本 "Hundred" 上分裂,那么您可以通过最上面的等式来解决...

=LEFT(SpellNumber(J7),FIND("Hundred",SpellNumber(J7))+6)

有关 Excel 中拆分文本的更多信息,请参见此处: https://support.office.com/en-us/article/Split-text-into-different-columns-with-functions-49ec57f9-3d5a-44b2-82da-50dded6e4a68


注意:SpellNumber 是 Microsoft 提供的用户定义函数:https://support.microsoft.com/en-us/help/213360/how-to-convert-a-numeric-value-into-english-words-in-excel