BookmarkSubscribeRSS Feed
Quartz | Level 8

Dear all,



I was wondering, if is it possible to get a sas output file (excel versions) with merged cells and specified cell colours?


I have an excel template with merged rows and columns, also some specific columns needs to be coloured with same colour all the column) and some columns with conditional colouring..


am new to this type of requirement. Request your helpw ith this. If it is possible, kindly guide me on this.


PFA template for reference


Thank you very much!



Barite | Level 11

Hi Sindhu,


I am trying to understand what you want.What do you mean by SAS output with merged cells and specified cell colours please?

Diamond | Level 26 RW9
Diamond | Level 26

To answer your first question, coloring cells is called traffic lighting, example of which can be found here:


For your second question with regards to merge rows and columns, you will need to provide further information, I see none of this in the attached file you posted.  Generally speaking, merging cells is an Excel function not replicatable from SAS, however there are ways around this such as setting up columns which look like how you want the output to look.


Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.


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
  • 3 in conversation