Skip to content
Prev 294753 / 398503 Next

Reading Excel Formulas as values

I can't replicate your problem. I created a spreadsheet in Excel 2007
consisting of three columns.  Numbers from 1 - 15, rand(), and the sum of
the first two columns. Using all the defaults with read.xlsx() (package:
xlsx), I get the values of each column and using keepFormulas=TRUE, I get
the formulas as factors. I don't get any NA's. I can also place a formula on
the second sheet that accesses data from the first sheet without any
problems. I haven't tried, Excel 2010. 

Could your formulas be accessing data from another spreadsheet?

----------------------------------------------
David L Carlson
Associate Professor of Anthropology
Texas A&M University
College Station, TX 77843-4352