标签: excel sql-server-2008
我想在excel中连接值之前和之后组合单个刻度线。最终我需要将其传递给SQL查询
EX: Before-->pig, dog, bird, cat cell A1 After-->'pig','dog','bird','cat' cell A2 Used For: WHERE a.Type IN ('pig','dog','bird','cat')
答案 0 :(得分:0)
输入公式:
="'" & SUBSTITUTE(A1,", ","','") & "'"