本文介绍了如何在Google表格中将日期转换为字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试弄清楚如何将日期转换为Google工作表中的字符串.
I am trying to figure out how to convert a date into a string in a google sheet.
我有一个日期字段,具有不同的格式.我想创建另一个实际上只是文本但又是文本的列.例如,如果我有以下数据
I have one date field that has varying formats. I want create another column that's literally just the same but as a text. For example, if I had the following data
date date_as_string
12-05-2016 '12-05-2016
12/5/2016 '12/5/2016
2016-12-10 '2016-12-10
其中的'只是表示它是一个字符串,注明日期.
Where the ' is just to denote that it is a string note a date.
推荐答案
使用TEXTJOIN
函数.给出一个空的定界符,TRUE
表示忽略为空,引用的单元格为text1,并且不为text2提供任何内容.
Use the TEXTJOIN
function. Give an empty delimiter, TRUE
for the ignore empty, the referenced cell as text1, and don't supply anything for text2.
=TEXTJOIN("",TRUE,A1)
完成.
这篇关于如何在Google表格中将日期转换为字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!