在Excel中获取单元格的格式化值

问题描述:

使用 = CONCATENATE(E1,-",D1)时如何获取单元格的格式化值?

How do you get the formatted value of a cell when using =CONCATENATE(E1, " - " , D1)?

E1 = 2014年8月21日,美国东部标准时间(格式化值= 08/21)

D1 =任务项目1

想要的输出:= 08/21-任务项1

使用 TEXT()函数:
TEXT(值,格式文本)
因此,如果值是23.5,并且您传递 = TEXT(A1,"$ 0.00"),它将返回 $ 23.50
来源: http://office.microsoft.com/en-us/excel-help/text-function-HP010062580.aspx

Use the TEXT() function:
TEXT(value, format_text)
So if the value is 23.5 and you pass =TEXT(A1, "$0.00") it will return $23.50
Source: http://office.microsoft.com/en-us/excel-help/text-function-HP010062580.aspx