简体   繁体   中英

Excel Formula for many rows

I have an excel like this

请在此处查看示例

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. Can someone please help?

Try TEXTJOIN() with Char() function like-

=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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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