BookmarkSubscribeRSS Feed
Stalk
Pyrite | Level 9

How can I read the excel data that is in the following format (Column A is the Target, B is blank ,   Column C to V  is my actual data that I need to summaries after reading ). summary table is to add the column with 1's from Column C to V. 

For example I have about 20 columns in forward section( from Column C to V -only 6 is shown here)  and 24 columns in Reverse section(  Columns Z to AW) and 24 columns in primer section( columns BA to BX in Excel) . All these columns have 0 and 1. Need to summarize all the three sections and create a table.

Any suggestions how to start reading this excel format?

    Reverse    
    1 2 3 4 5 6   Mismatched 
Target   G A C A T C   Seq
ht/Bal/alxk/2019     1           1
ht/Bal/alxk/2020   1         1   2
ht/Bal/alxk/2021                 0

 

thank you

3 REPLIES 3
qoit
Pyrite | Level 9
Did you try using the RANGE option with the EXCEL notation to select specific cells?
https://blogs.sas.com/content/sasdummy/2018/06/21/read-excel-range/
Stalk
Pyrite | Level 9

Good idea. Will try that solution. Thank you

Tom
Super User Tom
Super User

It would be easier with a CSV file instead of an XSLX file.  Then you could write a data step to read it.

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 3 replies
  • 529 views
  • 1 like
  • 3 in conversation