BookmarkSubscribeRSS Feed
RichardAD
Quartz | Level 8

In Excel you can format a cell's fill effect to be a gradient.  Can ODS EXCEL create the same?

RichardAD_0-1726678379774.png

 

3 REPLIES 3
Cynthia_sas
SAS Super FREQ

Hi:

  My guess is that it would depend on what procedure you were using to create your output within the ODS EXCEL statements. For example, you can use gradient fills in SG procedure graphics so my guess is that you could send that SG procedure output to ODS EXCEL and that would work. However, I am having a hard time understanding how you would use a gradient fill in tabular output, such as with PROC REPORT, TABULATE or PRINT.

  Do you have any concrete example of how your gradient fill looks in the Excel worksheet after you apply the gradient?

Cynthia

RichardAD
Quartz | Level 8

I am creating total counts from different combinations of item counts.  An item can be in 1 or 2 different total sums, so I am trying to show which totals they contribute to via a color-coding scheme.

 

In this simple sample I am trying to use header colors to show how the Count_a,b,c,d,e components are used to compose the totals Count_X,Y,Z.  

 

RichardAD_1-1726685082393.png

 

 

Cynthia_sas
SAS Super FREQ
HI:
Well, that is not what I thought you were doing with gradients. I find that extremely hard to read, especially with the colors in G and H blurring together. However, I think this is a question you'd need to ask of Tech Support. The only way I know to "touch" the Excel cells with things like Excel-specific number formats is with the TAGATTR style override. However, I don't understand how Excel defines the gradient for the cell or whether it would be possible in a TAGATTR.
Cynthia

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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