export enum MyPhone {
Apple = <any>"Apple",
HTC = <any>"HTC",
Sony = <any>"Sony"
}
var text = MyPhone.Apple.toString();
public enum MyPhone
{
[Display(Name = "Apple")]
Apple,
[Display(Name = "HTC")]
HTC,
[Display(Name = "Sony")]
Sony,
}
var text = MyPhone.Apple.ToEnumDisplayString();
Continue Reading
C3公式 = VLOOKUP(B2,$A$2:$A$4,1,FALSE)
Lookup_value:C3
Table_array:陣列$A$2:$A$4為資料範圍,可用多維陣列
col_index:1 表示傳回陣列中第1欄之資料
Range_lookup:FALSE 為完全符合,如果找不到完全相同的值,就會傳回 #N/A。TRUE 為大約符合,如果找不到完全相符的值,就會傳回下一個小於 Lookup_value 的最大值。
B2公式 = DATE(RIGHT(A2,4),MID(A2,4,2),LEFT(A2,2))
B2公式 = LEFT(A2, SEARCH(":",A2,1)-1)
Continue Reading