实际数据库值 95
为啥我这么函数查是60
转成小数
REPLACE(ZGOAL1,'%','') / 100 as ZGOAL1
你那个95%是字符串吗?你给改成数字试试
尝试把公式放到单元格,然后这边取单元格数据看看
sql("DR_NMS_SQL_SERVER","SELECT REPLACE(ZGOAL1,'%','') as ZGOAL1 FROM dbo.ZNMS_GOAL WHERE MATKL = 'GZQTL'",1,1)
不除100