閱文時長 | | 0.64分鍾 | 字數統計 | | 1028字符 |
主要內容 | | 1、引言&背景 2、Excel直接處理千分符三種方法 3、自定義格式深入學習 4、聲明與參考資料 | ||
『Excel自定義格式千分符』 | |||
編寫人 | | | 編寫時間 | | 2021/12/19 AM12:9 |
文章類型 | | 系列 | 完成度 | | 已完成 |
座右銘 | 每一個偉大的事業,都有一個微不足道的開始。 |
一、引言&背景 完成度:100%
a) 應對問題
使用Excel的單元格設置的自定義格式設置千分符,如何設置?博主研究這個問題是因為寫代碼使用Aspose.Cells的設置單元格格式功能達到千分符的效果。
b) 預期效果&解決方案
在Aspose中將格式的設置為自定義。


c) 應用場景
- Aspose.Cells實現千分符:#,##0的自定義方式。
/// <summary>
/// Percentage 0%
/// </summary>
public static string Percentage1 = "0%";
/// <summary>
/// Percentage 0.00%
/// </summary>
public static string Percentage2 = "0.00%";
/// <summary>
/// 千分符
/// </summary>
public static string OneThousandSeparate = "#,##0";
二、Excel直接處理千分符三種方法 完成度:100%
a) 快捷鍵Ctrl+Shift+!
效果是更改為貨幣格式。

b) Ctrl+1選中單元格設置數值使用千分符
勾選使用千位分隔符的復選框。

c) 使用會計專用格式
如圖:

三、自定義格式深入學習 完成度:100%
a) 學習入口
獻給深度使用用戶,自定義的表達式很強大,學習入口請點擊此處。
b) 包含章節(EN)
How to create an Excel custom number format
Understanding Excel number format
Excel formatting tips and guidelines
Show the desired number of decimal places
Display a thousand separator
Round numbers by thousands
Add text to number formats
Display currency symbols
Show leading zeros
Display numbers as percentages
Turn decimal numbers into fractions
Create a custom Scientific Notation format
Show negative numbers in parenthesis
Display zeros as dashes or blanks
Add indents
Change font color
Repeat characters
Change alignment
Create conditional number formats
Date and time formats
c) 包含章節(CN)
如何創建一個Excel自定義數字格式
了解Excel數字格式
Excel格式的技巧和指南
顯示所需的小數位數
顯示一千個分隔符
千位整數
將文本添加到數字格式
顯示貨幣符號
顯示前導零
以百分比顯示數字
把小數變成分數
創建一個自定義的科學符號格式
在括號中顯示負數
將零顯示為破折號或空格
增加縮進
改變字體顏色
重復字符
改變對齊
創建條件數字格式
日期和時間格式
四、聲明與參考資料 完成度:100%
原創博文,未經許可請勿轉載。
如有幫助,歡迎點贊、收藏、關注。如有問題,請評論留言!如需與博主聯系的,直接博客私信SCscHero即可。