I am using the Proc Import to bring in an XLSX. I have ran into a problem where if the cell has a formula in it, it will not import the cell value and instead only impor the value of "A" for that cell. Does someone know how to fix this issue?
Proc Import Datafile="&xlsx./L5 &filename..xlsx"
Out=&s_name._&s_tab. REPLACE
DBMS=xlsx;
Sheet= "&tab.";
Run;
What would the value of the cell be? Is the type/length consistent with the rest of the values in the column?
It is a character column. It reads in the column headers and everything that does not have a formula. It just seems to have an issue when there is a formula present in the cell.
By any chance is that resolved cell value longer than for the first 20 rows or so?
No the value isn't, the formula is.
If I put in the value and get rid of the formula it imports fine. But I can't do this on every doc/every sheet I am bringing in.
This might be a tech support question, see the very fine print at the bottom of this page - Submit a problem report. The answer may depend on your OS, version of SAS, version of Excel.
Or can you include a sample of your Excel file?
Thank you, I submitted a problem. Hopefully they can figure it out.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.