如何连接excel中的日期列与保持原始日期不变的另一列?(How to concatenate date column in excel with another column keeping ori

编程入门 行业动态 更新时间:2024-10-22 18:34:40
如何连接excel中的日期列与保持原始日期不变的另一列?(How to concatenate date column in excel with another column keeping original date intact?)

我在Excel中有两列:

InsertDate,FeedbackId

我想通过用逗号分隔它们来连接这两列。 我写了这个公式: - = concatenate(B212,“---”,C212)但问题是它将日期转换为一些整数ie

InsertDate = 2017年6月5日和FeedbackId = 1,

输出结果是“42891,1”,我想成为“05-Jun-2017,1”

I have 2 columns in excel:

InsertDate, FeedbackId

I want to concatenate these two columns by separating them with a comma. I have written this formula:-=concatenate(B212,"---", C212) but the problem is it is converting the date to some integer i.e.

InsertDate=05-Jun-2017 and FeedbackId=1,

The output is "42891,1" which I want to be "05-Jun-2017,1"

最满意答案

尝试下面的使用TEXT转换为串联字符串

=CONCATENATE(TEXT(InsertDate,"dd-mmm-yyyy"),",",FeedbackID)

try the following use TEXT to convert to a string for concatenation

=CONCATENATE(TEXT(InsertDate,"dd-mmm-yyyy"),",",FeedbackID)

更多推荐

本文发布于:2023-07-16 07:36:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1125485.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:日期   原始   concatenate   excel   date

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!