BookmarkSubscribeRSS Feed
Quentin
Super User

Hi All,

 

Just lost a few hair follicles to what I think is an Excel bug, wanted to share and solicit any thoughts.   I think this is an Excel bug, not a SAS bug.

 

I used tagsets.excelxp to produce a report that had autofilter turn on for the first two columns, e.g.:

ods tagsets.excelxp file='d:\junk\filters.xls' 
  style=minimal
  options(autofilter='1-2')
;
proc print data=sashelp.class;
run;
ods tagsets.excelxp close;

 

When I open that file in Excel 2010, if I click one of the two filter buttons to sort the data, it sorts columns 1-2, but does not sort columns 3-6.  So it breaks all the rows. It does not give me the warning prompt "Do you want to expand the selection".  Even if I select the whole sheet, it stil doesn't sort correctly.

 

Amusingly (?) this only seems to happen when there are multiple autofilter columns but not all columns autofiltered.  If there is one autofilter column, I get the warning prompt and it will then sort correctly if I choose expand.  If ALL columns are autofilter, it sorts correctly. 

 

I was able to replicate the problem just typing data into Excel, without involving SAS/tagsets.excelxp.  Anyone else care to test more recent versions of Excel and see if the problem exists?

BASUG is hosting free webinars Next up: Jane Eslinger presenting PROC REPORT and the ODS EXCEL destination on Mar 27 at noon ET. Register now at the Boston Area SAS Users Group event page: https://www.basug.org/events.
2 REPLIES 2
ballardw
Super User

I try to use any sorts in Excel as little as I can get away with as only sorting some columns has been around since the first time used Excel, sometime around 1993.

Cynthia_sas
SAS Super FREQ
Hi:
I think this is really something that you should work on with Tech Support. They can test your issue and come up with a change if one is needed.

cynthia

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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
  • 2 replies
  • 1615 views
  • 0 likes
  • 3 in conversation