Printing blank pages with conditional formatting

New Contributor

I have a workbook with cells A16:Y315 that are conditionally formatted to have a border around them if data is put into the cells.  I have it set to print rows 1:15 for all sheets of data.  If there is no data, the cell is blank and I do not want it to print.  However, when I print preview it is showing that I will be printing 10 pages of data, rather than one.  How do I work around this?  I do not want to have borders on the cell if it is blank, which is why I did the conditional formatting.  I have several people who will be using this workbook who can barely input the data and cannot manipulate the pages (e.g., print pages 1 of 1 or use a filter).  If anyone could help, I would be most grateful.


Thank you!

2 Replies

@NV_Social_Worker I would suggest a redesign of the form. Avoid conditional formatting, avoid merged cells. In stead, use a structured table to capture input. Center texts across selected cells (this is in the alignment options the Home ribbon). This will create the same visual effect as merged cells without the problems that often arise with merging. I've also used some radio buttons to select the type of therapy given. More intuitive and you can only select one at the time.


If needed, you can add Data Validation to the cells/ranges that require input. Like the date column shall only accept dates between a start date and an end date, minutes must be a number between 1 and 600 (as an example) and the service columns may only contain "x".


The table expands automatically once a new entry is typed directly beneath it. 

Set the page lay-out to print one page wide by <blank> tall. This will automatically print the used range.


Since your users seem to be therapists of some kind, they must be capable of learning a few simple rules for filling in a form. They don't have to become Excel wizards. See if this works for you.

@Riny_van_Eekelen Thank you, so much!  I will try this to see if it works.