Excel如何固定單一欄位運算值
A1 :固定參數
C欄:變動參數
D欄:A1*C欄的值
一般情況下,會先寫好D1(=A1*C1)的運算式,再直接右下十字下拉到
D2, D3....但其運算式會隨著ROW而變動,D2(=A2*C2),D3(=A3*C3),
但這不是我們要的結果,此時就需要用($)來固定單一運算值。
D1 = A1* C1 ==改成==> D1 = $A$1*C1,再用右下十字下接到D2,D3..
2011年11月9日
2011年10月25日
【Google】搜尋列預設國家設定
Q:
Google 搜尋列之搜尋網域跑掉時,如原本www.google.com.tw變成www.google.co.jp
A:
預設的搜尋引擎被更動到了,新增一個
名稱 Google.tw
Google 搜尋列之搜尋網域跑掉時,如原本www.google.com.tw變成www.google.co.jp
A:
預設的搜尋引擎被更動到了,新增一個
關鍵字 google.com.tw
網址 http://www.google.com.tw/ search?hl=zh-TW&source=hp&q=% s&btnG=Google+%E6%90%9C%E5%B0% 8B&aq=f&aqi=g10&aql=&oq=&gs_ rfai=
標籤:
Google
2011年8月1日
【Tax】稅率級距表
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
參考網站:
2011年7月10日
【App Store】+ on App
The + symbol in the front of Apps in App Store indicate that
the application is a universal app, which means that the app is
designed for both the iPhone and the iPad.
You just pay one time then can download in iPhone and iPad.
the application is a universal app, which means that the app is
designed for both the iPhone and the iPad.
You just pay one time then can download in iPhone and iPad.
標籤:
iPhone
2011年7月6日
【C#】Truncate the string
當字串太長時,若要擷取某一部份的字串時,通常會使用
String.substring(int32 a, int32 b)方法,從第
a個位置開始,取得長度為6的字串。
但若是中英夾雜的字串,用此方法可能會擷到中文字的一
字元,此時就需另一個判斷方式。
String.substring(int32 a, int32 b)方法,從第
a個位置開始,取得長度為6的字串。
但若是中英夾雜的字串,用此方法可能會擷到中文字的一
字元,此時就需另一個判斷方式。
string str = "I'am 中文字";
int maxLength = 8; //擷取長度為7byte的字串
string result='';
int count = 0;
foreach(char a in str)
{
counter = counter+ System.Text.Encoding.GetEncodeing("Big5").GetBytes(str.ToString()).Length;
if(count <= maxLength)
{
result = result + a;
}
else
{
break;
}
}
System.Writeline(result+"...");
標籤:
C#.net
2011年6月29日
【Excel】How to 四捨五入
1. ROUND Function
ROUND(number, num_digits)
。number:想要執行四捨五入計算的數字。
。num_digits:對數字引數執行四捨五入計算時的位數。
EX:
。ROUND(A1,3)=12.346 //A1=12.3456789
。ROUND(A1,-1)=10
2. 設定儲存格格式
格式->儲存格格式->數值分頁->"數值"or"貨幣"
ROUND(number, num_digits)
。number:想要執行四捨五入計算的數字。
。num_digits:對數字引數執行四捨五入計算時的位數。
EX:
。ROUND(A1,3)=12.346 //A1=12.3456789
。ROUND(A1,-1)=10
2. 設定儲存格格式
格式->儲存格格式->數值分頁->"數值"or"貨幣"
標籤:
Excel
2011年6月20日
【C#】Decimal型別
decimal 關鍵字表示 128 位元的資料型別。相較於浮點型別,decimal 型別有較高的精確度和較小的範圍,讓它非常適合財務和金融計算。
常值:
如果要將數字實數常值宣告為decimal處理,請使用後置字元 m 或 M,例如:
如果沒有後置字元 m,數字會被視為double處理,因而產生編譯器錯誤。
轉換:
整數類資料型別 (Integral Type) 隱含轉換成 decimal,無須在後置字元,如下:
但float與decimal之間並沒有隱含轉換,因此,這兩種型別之間的轉換 (Conversion) 必須使用轉換 (Cast);
範例:
常值:
如果要將數字實數常值宣告為decimal處理,請使用後置字元 m 或 M,例如:
decimal myMoney = 300.5m;
如果沒有後置字元 m,數字會被視為double處理,因而產生編譯器錯誤。
轉換:
整數類資料型別 (Integral Type) 隱含轉換成 decimal,無須在後置字元,如下:
decimal myMoney = 300;
但float與decimal之間並沒有隱含轉換,因此,這兩種型別之間的轉換 (Conversion) 必須使用轉換 (Cast);
decimal myMoney = 99.9m; double x = (double)myMoney; myMoney = (decimal)x;
範例:
decimal d = 9.1m; int y = 3; Console.WriteLine(d + y); // Result converted to decimal, 12.1
標籤:
C#.net
訂閱:
文章 (Atom)

