![](/img/trans.png)
[英]Is there an excel formula that I can use to sum all blue font numbers from a string in one cell to another?
[英]Excel: Use number from one cell to write a string in another cell
我在Excel中有一欄是數字。 我需要使用該數字在另一個單元格中寫入字符串。 例如,列A具有“ 21”,在列BI中需要寫入21 0的字符串。 然后應該有句號,因此字符總數= 40。
Duration ch
21 000000000000000000000..................
22 0000000000000000000000.................
19 0000000000000000000....................
21 000000000000000000000..................
您可以使用REPT()
公式執行此操作:
假設您的第一個Duration
在單元格A1
=REPT("0", A1) & REPT(".", 40-A1)
這將重復“ 0”與A1
的數字相同的次數,然后將重復的“”連接起來。 直到您有40個字符。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.