简体   繁体   English

Excel 多行公式

[英]Excel Formula for many rows

I have an excel like this我有一个像这样的 excel

请在此处查看示例

There are around 500 rows, from that I want to get a formula like this, (Value in A1 enclosed in double quotes, value in A2 enclosed in double quotes until 500 row) ("AF","AX", until 500 rows) I tried several options but they didn't help.大约有 500 行,从中我想得到这样的公式,(A1 中的值用双引号括起来,A2 中的值用双引号括起来直到 500 行)(“AF”,“AX”,直到 500 行)我尝试了几种选择,但没有帮助。 Can someone please help?有人可以帮忙吗?

Try TEXTJOIN() with Char() function like-尝试TEXTJOIN()Char() function 类似-

=CHAR(34) & TEXTJOIN(CHAR(34) & ", " & CHAR(34),TRUE,A1:A8) & CHAR(34)

在此处输入图像描述

Thank You, It worked.谢谢你,它工作。

="("""&TEXTJOIN(""",""",TRUE,$A$1:$A$249)&""")"

Link: superuser and extendoffice链接: 超级用户扩展办公室

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM