BookmarkSubscribeRSS Feed
aero
Obsidian | Level 7

Hello,
I have a table that I am exporting from sas as an excel file.  I've created a workbook on each of my team's computers with a data connection to the excel workbook with the raw exported sas data, which I import as a table under existing connections in excel 2013.  Here's the problem:

This table contain numeric columns with both numbers and blanks.  Some of these columns are differences between these numeric columns containing blanks.  I should clarify that all calculations were preformed in sas and that there are no formulas present in the table or the raw data excel workbook it is referencing. For a specific numeric column that is just raw values and blanks, Excel appears to see these as text when I try to sort.  IE "Sort A to Z" vs. "Sort Largest to smallest".  On my computer, and half of my team's computers, if I unchecked blanks for the numeric raw value column in the filter, It will then see my calculated column as a number and allow me to sort "Largest to smallest".  However the raw data column will still say A to Z for the sort.  For my computer and half my team, when we sort using this a to z it sorts the numbers, but for the other half using the same exact procedure, it sorts as text.  We are all using excel 2013.  I should clarify that all calculations were preformed in sas and that there are no formulas present in the table or the raw data excel workbook it is referencing.


I'm using eg 7.1 and exporting as step in project from the export dropdown in my output tabs.  This works great but is there a way I can constrain how excel views it later.  I could fill all blanks as 0s but a 0 difference means something here and a null means its not applicable.  Can anyone help?



Please let me know.  

Thanks! 

1 REPLY 1
ballardw
Super User

How did you export the SAS data?

 

Pleas clarify on "Some of these columns are differences between these numeric columns containing blanks". Do you mean that you calculated a difference in SAS and some of the results were missing values in SAS? Or that two different columns in Excel are behaving differently when they contain blanks?

 

You might look at the originally created output and see if the first rows of the data behaving "correctly (?)" had numeric values in them and the others had blank values.

 

 

sas-innovate-2024.png

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.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 829 views
  • 0 likes
  • 2 in conversation