Use Excel Concatenate function

微笑、不失礼 提交于 2021-02-17 05:34:12

问题


I am trying to merge the data from three columns into one column in Excel. Example, i would like to merge Product, Location, and Key_id into one column

Product Location             Key_Id
Car           VA             86421910
Car           VA             86424482
Car           VA             86416836

Combined Column:
Car 'VA', '86421910'
Car 'VA', '86424482'
Car 'VA', '86416836'

I was wondering if there is a way in Excel that can do it? Thanks in advance! I was not doing a good job of accepting the answers in the past. I will do my part which is to accept the answer moving foward.

Regards,


回答1:


http://www.info-stat.com/XLConCat.htm shows examples of string concatenation in Excel. If I knew which version you were using and could identify the column IDs I could write it.

Assuming Product is Column A, Location is Column B and Key_ID is column three and data starts at row 2:

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



回答2:


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



回答3:


just type =D2&C2 Syntax : =ColumnNumber_1 &ColumnNumber_2



来源:https://stackoverflow.com/questions/4513189/use-excel-concatenate-function

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!