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.

SAS Innovate 2025: Call for Content! Submit your proposals before Sept 16. Accepted presenters get amazing perks to attend the conference!

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.

SAS Innovate 2025: Call for Content! Submit your proposals before Sept 16. Accepted presenters get amazing perks to attend the conference!
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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 613 views
  • 0 likes
  • 3 in conversation