0

="python sql.py --table process --query-type UPDATE --column-value active='N' --where ""pid=9999 and data_id=""&A1&"""

I need A1 to be whatever is in cell A1 but the formula is treating it as a part of the string

the final output should be

python sql.py --table process --query-type UPDATE --column-value active='N' --where "pid=9999 and data_id=0001"

JvdV
  • 70,606
  • 8
  • 39
  • 70
  • How to create strings containing double quotes in Excel formulas? https://stackoverflow.com/q/216616/992406] – houssam Jan 18 '21 at 13:09

1 Answers1

0

Try:

="python sql.py --table process --query-type UPDATE --column-value active='N' --where ""pid=9999 and data_id="&A1&""""
JvdV
  • 70,606
  • 8
  • 39
  • 70