Stop excel from converting formula to text csv

喜你入骨 提交于 2020-01-15 10:49:08

问题


How do I keep excel from removing my formula inserted into a csv to text?

For example in my csv I have data and have the formula "=ISNUMBER(SEARCH($A$1,B2))" then I open the csv in excel and see the value of the formula. But when I save, the formula is removed and replaces it with the evaluation of the formula, i.e. true.


回答1:


I assume that you have a column of formulas that need to have an "=" added to it... so put your cursor on that column, and then run this macro:

Sub equalAdder()
While ActiveCell.Value <> ""
    ActiveCell.Value = "=" & ActiveCell.Value
    ActiveCell.Offset(1, 0).Activate
Wend
End Sub

How does that work?



来源:https://stackoverflow.com/questions/40247242/stop-excel-from-converting-formula-to-text-csv

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!