BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
j0andre1
Fluorite | Level 6

I have a  xls file in which, one tab contains few graphs and charts and I want to import them(convert that tab into sas dataset)? how to do ?

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisHemedinger
Community Manager

Usually, the charts you build in Excel are based on data elsewhere in the sheet/workbook. 

 

You can't import the chart per se, but PROC IMPORT DBMS=XLSX will allow you import the data, and then you would use SAS tools to replicate the charts as needed.  You could use PROC SGPLOT with code, or tasks in SAS Enterprise Guide or SAS Studio to build these via point and click.

Register for SAS Innovate 2025!! The premier event for SAS users, May 6-9 in Orlando FL. Sign up now for the best deals!

View solution in original post

2 REPLIES 2
ChrisHemedinger
Community Manager

Usually, the charts you build in Excel are based on data elsewhere in the sheet/workbook. 

 

You can't import the chart per se, but PROC IMPORT DBMS=XLSX will allow you import the data, and then you would use SAS tools to replicate the charts as needed.  You could use PROC SGPLOT with code, or tasks in SAS Enterprise Guide or SAS Studio to build these via point and click.

Register for SAS Innovate 2025!! The premier event for SAS users, May 6-9 in Orlando FL. Sign up now for the best deals!
ballardw
Super User

Depending on the actual data layout used to create the graphs in Excel be prepared to massage the data because the way many people work with data in Excel is not the way the data should be structured to recreate graphs in SAS.

 

However without specific examples what may be needed can't be guessed at.

 

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 834 views
  • 0 likes
  • 3 in conversation