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
Diamond | Level 26

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
Diamond | Level 26
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

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 1431 views
  • 0 likes
  • 2 in conversation