使用特殊字符在Excel中连接(Concatenate in excel with special characters)

编程入门 行业动态 更新时间:2024-10-28 03:22:49
使用特殊字符在Excel中连接(Concatenate in excel with special characters)

这是我的excel表

state City Name area type GUJARAT Abdasa City GUJARAT Adalaj City GUJARAT Ahwa City

我想创建它(当然在区域类型旁边的行中)

('GUJARAT','Abdasa','City'),

为此,我尝试了以下公式

=CONCATENATE("('"+A2+"','"+B2+"','"+C2+"'),") =CONCATENATE("('" & A2 & "','" & B2 & "','" & C2 & "'),")

我不太了解Excel这可能吗?

This is my excel table

state City Name area type GUJARAT Abdasa City GUJARAT Adalaj City GUJARAT Ahwa City

I want to create this(in the row next to area type of course)

('GUJARAT','Abdasa','City'),

For that I have tried following formulas

=CONCATENATE("('"+A2+"','"+B2+"','"+C2+"'),") =CONCATENATE("('" & A2 & "','" & B2 & "','" & C2 & "'),")

I don't know much about Excel is this possible?

最满意答案

您不需要同时使用CONCATENATE()和&运算符 - 它们也可以执行相同的操作。

如果你使用& ,写:

="('" & A2 & "','" & B2 & "','" & C2 & "'),"

如果CONCATENATE() ,写:

=CONCATENATE("('",A2,"','",B2,"','",C2,"'),")

You don't need to use both CONCATENATE() and & operator - they do the same thing.

If you use &, write:

="('" & A2 & "','" & B2 & "','" & C2 & "'),"

If CONCATENATE(), write:

=CONCATENATE("('",A2,"','",B2,"','",C2,"'),")

更多推荐

本文发布于:2023-04-27 12:13:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1326169.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:特殊字符   Excel   Concatenate   characters   special

发布评论

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

>www.elefans.com

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