跳到主要內容

如何在Excel中以數千,數百萬或數十億的格式設置數字?

假設您有一個大數字列表,現在,您想要將它們格式化為數千,數百萬或數十億,以使它們看起來簡潔明了,如下圖所示。 本文,我將討論如何在Excel中快速格式化成千上萬的數字。


使用格式單元格功能分別格式化成千,數百萬,數十億的數字

在Excel中,您可以使用 單元格格式 解決此任務的功能,請執行以下操作:

1。 選擇要格式化的數字列表。

2。 然後右鍵單擊,然後選擇 單元格格式 從上下文菜單中,查看屏幕截圖:

3。 在 單元格格式 對話框中的 聯繫電話 標籤,選擇 習俗 從左窗格中 類別 文本框,根據需要輸入以下格式代碼:

  • 格式化數字以千為單位: 0,“ K”
  • 格式化數字(百萬): 0 ,,“ M”
  • 以十億為單位的數字格式: 0 ,,“ B”

4。 然後點擊 OK 關閉對話框,您的電話號碼已格式化為數千,數百萬或數十億,如以下屏幕截圖所示:

  • 保養竅門:如果您要按以下所示的屏幕截圖格式用逗號分隔成千或數百萬,請使用以下格式: #,## 0,“ K” or #,## 0 ,,“ M” 單元格格式 對話框。


使用“格式單元格”功能將數字格式化成千,數百萬,數十億

如果要根據特定數字以數千,數百萬或數十億的格式設置數字格式,而不僅僅是一種數字格式。 例如,如下圖所示,將1,100,000顯示為1.1M,將110,000顯示為110.0K。

1。 選擇包含要設置格式的數字的單元格,然後單擊鼠標右鍵 單元格格式 選項從上下文菜單中。

2。 在 單元格格式 對話框中的 聯繫電話 標籤,選擇 習俗 從左窗格中 類別 文本框中,輸入以下格式代碼: [<999950]0.0,"K";[<999950000]0.0,,"M";0.0,,,"B",請參見屏幕截圖:

3。 然後點擊 OK 按鈕,所有數字均已根據數字格式化為所需格式,請參見屏幕截圖:


使用公式將縮寫數字轉換為普通的長數字(1K = 1000)

有時,您想要執行相反的操作將縮寫數字轉換為普通的長數字,如下面的屏幕截圖所示:

請輸入以下公式或將其複製到要獲取結果的空白單元格中:

=IF(ISTEXT(A2),10^(LOOKUP(RIGHT(A2),{"B","K","M"}, {9,3,6}))*LEFT(A2,LEN(A2)-1),A2)

然後,將填充手柄向下拖動到要應用此公式的單元格上,並且所有縮寫數字都已根據需要格式化為普通的長數字,請參見屏幕截圖:


更多相對格式文件文章:

  • 在Excel中將數字格式設置為序數(1st 2nd 3rd)
  • 在某些情況下,當我們按如下所示的屏幕快照進行排名時,我們需要將數字格式設置為1st,2nd,3rd等。 但是,您知道如何在Excel中將這些基數格式化為序數嗎? 通常,在Excel中沒有將數字轉換為1st的內置函數,但是,在這裡,我可以介紹一些有關此問題的技巧。
  • 應用數據驗證以強制Excel中的電話號碼格式
  • 可能是,在Excel工作簿中鍵入時,可以使用多種電話號碼格式。 但是,如何只允許在工作表的一欄中輸入一種電話號碼格式? 例如,我只希望允許將此格式為123-456-7890的電話號碼輸入工作表中。
  • 驗證工作表列中的電子郵件地址
  • 眾所周知,有效的電子郵件地址由三部分組成,即用戶名,“ at符號”(@)和域。 有時,您只允許其他人在工作表的特定列中僅輸入電子郵件地址格式的文本。 是否可以在Excel中完成此任務?

最佳辦公生產力工具

🤖 Kutools 人工智慧助手:基於以下內容徹底改變數據分析: 智慧執行   |  生成代碼  |  建立自訂公式  |  分析數據並產生圖表  |  呼叫 Kutools 函數...
熱門特色: 尋找、突出顯示或識別重複項   |  刪除空白行   |  合併列或儲存格而不遺失數據   |   沒有公式的回合 ...
超級查詢: 多條件VLookup    多值VLookup  |   跨多個工作表的 VLookup   |   模糊查詢 ....
高級下拉列表: 快速建立下拉列表   |  依賴下拉列表   |  多選下拉列表 ....
欄目經理: 新增特定數量的列  |  移動列  |  切換隱藏列的可見性狀態  |  比較範圍和列 ...
特色功能: 網格焦點   |  設計圖   |   大方程式酒吧    工作簿和工作表管理器   |  資源庫 (自動文字)   |  日期選擇器   |  合併工作表   |  加密/解密單元格    按清單發送電子郵件   |  超級濾鏡   |   特殊過濾器 (過濾粗體/斜體/刪除線...)...
前 15 個工具集12 文本 工具 (添加文本, 刪除字符,...)   |   50+ 圖表 類型 (甘特圖,...)   |   40+ 實用 公式 (根據生日計算年齡,...)   |   19 插入 工具 (插入二維碼, 從路徑插入圖片,...)   |   12 轉化 工具 (數字到單詞, 貨幣兌換,...)   |   7 合併與拆分 工具 (高級合併行, 分裂細胞,...)   |   ... 和更多

使用 Kutools for Excel 增強您的 Excel 技能,體驗前所未有的效率。 Kutools for Excel 提供了 300 多種進階功能來提高生產力並節省時間。  點擊此處獲取您最需要的功能...

產品描述


Office選項卡為Office帶來了選項卡式界面,使您的工作更加輕鬆

  • 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,發布者,Access,Visio和Project。
  • 在同一窗口的新選項卡中而不是在新窗口中打開並創建多個文檔。
  • 將您的工作效率提高 50%,每天為您減少數百次鼠標點擊!
Comments (21)
Rated 5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
Could you please show me how to do formula with the negative number?
Ex: -2439.7 M => -2.44 B?
This comment was minimized by the moderator on the site
Muchas Gracias por compartir este formato y fórmula, me sirvió muchísimo.
This comment was minimized by the moderator on the site
Olá,

Muito obrigado pela explicativa, uma dúvida...
nesta formula é possível manter valores menores como reais ?
quando tenho valores menores em minha planilha por exemplo R$ 835,00 ele traz abreviação de R$ 0,84 k.
existe como colocar um código dentro deste que você menciona mantendo valores menores em reais.
This comment was minimized by the moderator on the site
Hello, Jef Gomes
To solve your problem, the below formula may do you a favor:
=SUBSTITUTE(TEXT(ROUND(A2/(1000^INT(LOG10(A2)/3)),2),"#.## ") & CHOOSE(INT(LOG10(A2)/3)+1,"","K","M","B","T"),". ","")
Please try, hope it can help you!
This comment was minimized by the moderator on the site
madam/sir, i just want my data from rupees to thousand i.e 55050 and want this data in 55.05

could you please suggest?
This comment was minimized by the moderator on the site
Hello, JK,
Maybe the following video can help you:
https://www.youtube.com/watch?v=yg7uEKj8Szk
Please have a try, thank you!
This comment was minimized by the moderator on the site
hola, ¿como puedo hacer que los negativos queden tambien con el formato, ejemplo un -752.000.000 deberia quedar como -752M y actualmente con este formato me queda -752.000k.

PD: muy bueno el post recomendado.
This comment was minimized by the moderator on the site
This is so fucking ridiculously good. You have totally saved me today. God bless all of you, especially the person who wrote this document. Thank you so much, have a good day.
This comment was minimized by the moderator on the site
Hello Alan,

Glad to help. You can format the cell to make the negative number turn red within parentheses. Please see the attached pictures.https://www.extendoffice.com/images/stories/comments/comment-zmt/negative_number_format_1.pnghttps://www.extendoffice.com/images/stories/comments/comment-zmt/negative_number_format_2.png

Sincerely,
Mandy
This comment was minimized by the moderator on the site
Hola a mi me sirvió muchísimo el formato solo tengo una duda cuando es negativo el millón o lo miles como puedo condicionar para que se ponga en rojo ( aparezca el signo negativo o en su caso dentro de paréntesis)
This comment was minimized by the moderator on the site
Using this formula =IF(ISTEXT(A2),10^(LOOKUP(RIGHT(A2),{"B","K","M"}, {9,3,6}))*LEFT(A2,LEN(A2)-1),A2). How to modify this formula if my data set has K, M, B, and without abbreviative numbers? It will appear #N/A for the value without abbreviative numbers.
This comment was minimized by the moderator on the site
My data set has numbers in tens, hundreds, thousands, millions, and billions. Using the method 2 formula reformats my numbers in tens and hundreds with abbreviation using “k.” For example, using the method 2 formula turns “135” into “0.1k” and “45” into “0.0k.” How does the method 2 formula need to be modified to keep “135” and “45?”
This comment was minimized by the moderator on the site
Hello, Adam,
To solve your problem, please apply the below formula:
=SUBSTITUTE(TEXT(ROUND(A2/(1000^INT(LOG10(A2)/3)),2),"#.## ") & CHOOSE(INT(LOG10(A2)/3)+1,"","K","M","B","T"),". ","")
Please try, hope it can help you!
This comment was minimized by the moderator on the site
Save the day! Thank you so much!
Rated 5 out of 5
This comment was minimized by the moderator on the site
Hi
What do you need to add to this formula to get number below 10,000 to reduce to one decimal place and numbers above 10,000 to reduce to no decimal place. For example 9.2k and 220k. The same goes for millions and billions for example number below 10million to 9.2m or 10billion to 9.2b. Thanks
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations