跳到主要內容

如何在Excel中計算(識別)並更改小數位?

本文將向您展示計數和識別數字小數位的方法,以及更改給定範圍或整個工作表中小數位的方法。

假設我們將計算並更改給定列A中數字的小數位,請參見以下屏幕截圖:

文檔計數更改小數位 1

計算並確定數字的小數位

在給定範圍內更改小數位

更改整個工作表中的小數位

使用Kutools for Excel在特定位置添加小數點好主意3


箭頭藍色右氣泡 計算並確定數字的小數位

有時有些數字包含各種小數位數,您可能需要對數字進行計數並顯示在單元格中。 您可以按照以下步驟進行操作:

在空白單元格(即單元格B2)中,輸入公式 =IF(A2=INT(A2),0,LEN(MID(A2-INT(A2),FIND(".",A2,1),LEN(A2)-FIND(".",A2,1)))),然後按 Enter 鍵。文檔計數更改小數位 2

然後,它返回單元格B2中的小數位。 在這種情況下,它顯示為5。現在,通過將此公式複制並粘貼到相應的單元格中,您可以得到其他數字的小數位。


箭頭藍色右氣泡 在給定範圍內更改小數位

您可以通過以下步驟更改給定範圍內許多數字的小數位:

步驟1:選擇要更改其小數位的數字。 在這種情況下,請選擇A2:A6的範圍。

步驟2:點擊 減少小數 按鈕或 增加小數 按鈕在 聯繫電話 組下 首頁 標籤。
文檔計數更改小數位 3

步驟3:然後將所選內容中的數字的小數位更改並統一為相同的小數位。 請參見以下屏幕截圖:

文檔計數更改小數位 4文檔合併多個工作簿arrow2文檔計數更改小數位 5

您還可以使用以下命令更改和統一數字的小數位 單元格格式 通過右鍵單擊選擇。

步驟1:選擇要更改的範圍,然後單擊鼠標右鍵。

步驟2:選擇 單元格格式 從上下文菜單中,然後在 單元格格式 對話框,單擊 聯繫電話 來自 類別 列表,然後輸入所需的小數位數。 看截圖:

文檔計數更改小數位 6

步驟3:然後點擊 OK。 和小數位已更改為所需。

文檔計數更改小數位 7文檔合併多個工作簿arrow2文檔計數更改小數位 8


箭頭藍色右氣泡 在給定範圍內更改小數位

此方法將幫助您更改整個工作表的默認小數位。

步驟1:點擊 文件 > 選項 在Excel 2010中; 然後點擊 辦公按鈕 > Excel選項 在Excel 2007中;

步驟2:在 Excel選項 對話框中,單擊 高級 左欄中的按鈕。

步驟3:進入 編輯 選項部分。

步驟4:檢查 自動插入小數點 選項,然後在 場所 框。

步驟5:點擊 OK 確認並保存更改。 現在,默認的小數位已更改。

步驟6:如果您輸入的數字是1234,則默認的小數位是12.34,它將自動變為2。

文檔計數更改小數位 9

順便說一句,如果輸入數字16.25893,它將顯示為16.25893,而不是16.26。


箭頭藍色右氣泡 使用Kutools for Excel在特定位置添加小數點

如果您有值列表,現在想在特定位置添加小數點,例如,將小數點放在每個值的第二個字符之後,如下圖所示,如何在Excel中快速解決呢?

文檔1

Excel的Kutools, 與以上 300 方便的功能,使您的工作更加輕鬆。 

這款獨特的敏感免洗唇膜採用 Moisture WrapTM 技術和 Berry Mix ComplexTM 成分, Excel的Kutools,您可以將任何字符添加到列表中字符串的任何位置 添加文本 效用。

免費安裝 Kutools for Excel,請執行以下操作:

1.選擇要在同一位置添加小數點的值,然後單擊 庫工具 > 文本 > 添加文本。 看截圖:
文檔2

2.然後 添加文本 對話框中,將小數點鍵入 文本 框,然後檢查 指定 選項,然後鍵入要在其後添加文本的位置,這裡我要在第二個字符後添加小數點,您可以在右窗格中查看結果。 看截圖:
文檔3

3。 點擊 Ok or 登記,則小數點已添加到每個值的特定位置。

這款獨特的敏感免洗唇膜採用 Moisture WrapTM 技術和 Berry Mix ComplexTM 成分, 添加文本 實用程序,您也可以一次將特定字符添加到字符串的多個特定位置。
文檔4


箭頭藍色右氣泡 將特定的字符/字符串添加到單元格

最佳辦公生產力工具

🤖 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 (7)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I have a cell that already contains a long formula, but can generate results from 0.01 up to 10000.Ideally would like a way of formatting the cell such that it automatically adjusts the decimal point based upon the results.e.g.numbers < 100 would have 2 d.p.numbers <1000 would have 1 d.p.numbers >=1000 would have 0 d.p.
Can see how to achieve this using rounding function with multiple IF commands, however with the length of formula this is unmanagable:e.g.=ROUND("FORMULA",(IF("FORMULA">=1000,0,(IF("FORMULA">=100,1,2)))))
Is there a tool or function within Excel that can achieve this?If not is there a way of doing this without having to repeat the formula in the IF functions?
Ideally don't want to put VBA into the workbook or spread the calculation across multiple cells.
This comment was minimized by the moderator on the site
This only works for two digit numbers, middle of the mid function should always be 3 since when you take the decimal part the numbers will always start in the third place. Lame that I have to correct this.
This comment was minimized by the moderator on the site
How can you change the decimal place for values that are already in the cell? In other words, i'm not trying to change the number of decimal place showing, but want to convert the value of the number in the cell. To illustrate: Change 1.25 (cell a) to 125 (cell b). Is this possible without having to go through each cell to convert? Thanks!
This comment was minimized by the moderator on the site
Run an equation in the adjacent column =A1*100, clicking bottom right corner of the box/dragging, to run down the length of the column.
This comment was minimized by the moderator on the site
The formula for counting the number of decimal places is flawed. For example, 123.75 returns 1.
This comment was minimized by the moderator on the site
this formula works.. please try this.. =LEN(MID(A1,1+FIND(".",A1),99))
This comment was minimized by the moderator on the site
Kindly tell me if it is possible to add values with their decimal values separately ie 47.6+49.5=96.11. Does excel have a formula to deal with this one. If anybody knows, It would help me so much. Thanks. Robbie
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations