Forum Discussion

Jesper_Hostrup_Hansen's avatar
Jesper_Hostrup_Hansen
Copper Contributor
Mar 07, 2024

Excel functions automatically being prefixed by @

I have a problem with Excel workbooks being populated via OLE: if I insert e.g. "SUM(A1:A5)", Excel converts it to "@SUM(A1:A5)". And it doesn't work because I am saving as .xls.

It seems to be related to the language Excel runs, but I am wondering if there is a setting I can turn off to avoid this formula translation?

  • JKPieterse's avatar
    JKPieterse
    Silver Contributor

    How are you writing that formula to Excel exactly? And why save as xls, a format that was superseded 17 years ago?

    • Jesper_Hostrup_Hansen's avatar
      Jesper_Hostrup_Hansen
      Copper Contributor

      JKPieterse Actually, I don't think it matters whether I write to .xls or .xlsx. In the program I simply enter the SUM function in the cell. Afterwards when I open the sheet, Excel has changed it to @SUM. Then I get a #NAME error. When I change @SUM to SUM using global replace, everything is OK again.

      • JKPieterse's avatar
        JKPieterse
        Silver Contributor
        You haven't answered my first question?

Resources