DATA Step, Macro, Functions and more

How to clear/remove strike data in the excel file and import

Reply
Contributor
Posts: 70

How to clear/remove strike data in the excel file and import

my excel data has the strike data. when i import in sas the strike data also imported and considering as real data. How can i clear the strike data and import the excel in sas

 

ss.jpg

Highlighted
Super User
Super User
Posts: 8,279

Re: How to clear/remove strike data in the excel file and import

SAS just pulls the contents of the cells. It does not care what fonts or colors you are using.

If you want to import metadata about fonts, colors or other text attributes that are applied to the contents of a cell then you will need to do something in Excel first to convert that into information that is stored in another cells.  

 

https://answers.microsoft.com/en-us/msoffice/forum/msoffice_excel-mso_other-mso_2010/formula-to-iden...

Contributor
Posts: 70

Re: How to clear/remove strike data in the excel file and import

Applied VB script in excel to remove the strike though data and saved the excel and import.

Contributor
Posts: 70

Re: How to clear/remove strike data in the excel file and import

Can we call the VB function in SAS to execute the excel sheet and import

Super User
Super User
Posts: 8,279

Re: How to clear/remove strike data in the excel file and import


@radha009 wrote:

Can we call the VB function in SAS to execute the excel sheet and import


As long as SAS is running on a Windows platform then you should be able to use SAS to execute any command you want. You can use one of the statements that runs commands (x, %sysexec, command) or use the PIPE filename engine.

 

Ask a Question
Discussion stats
  • 4 replies
  • 95 views
  • 0 likes
  • 2 in conversation