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.



Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg



Back in the Classroom!

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