Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Stopping blank cells with formulae in from printing

I have created a new workbook and in cell B1 I have put the formulae
"=IF(ISBLANK(A1),"",44)". I have then used the fill down function to fill it
down to row 65536. When I go to file print preview its going to print 1821
blank pages. How can I stop it from printing cells that show no value but
contain formulae?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Stopping blank cells with formulae in from printing

Have you tried using the autofilter option? It is in the Filter submenu on
the Data menu. You can set it so items with a value of zero are not
displayed.

"nickname" wrote:

I have created a new workbook and in cell B1 I have put the formulae
"=IF(ISBLANK(A1),"",44)". I have then used the fill down function to fill it
down to row 65536. When I go to file print preview its going to print 1821
blank pages. How can I stop it from printing cells that show no value but
contain formulae?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Stopping blank cells with formulae in from printing

No that does not do what i want it to :-(

Thanks anyway

Anybody else have any suggestions?

"AndyRoo" wrote:

Have you tried using the autofilter option? It is in the Filter submenu on
the Data menu. You can set it so items with a value of zero are not
displayed.

"nickname" wrote:

I have created a new workbook and in cell B1 I have put the formulae
"=IF(ISBLANK(A1),"",44)". I have then used the fill down function to fill it
down to row 65536. When I go to file print preview its going to print 1821
blank pages. How can I stop it from printing cells that show no value but
contain formulae?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Stopping blank cells with formulae in from printing

nickname,
Works for me.

If that not good enough, look into manipulating the .PrintArea.

NickHK

"nickname" wrote in message
...
No that does not do what i want it to :-(

Thanks anyway

Anybody else have any suggestions?

"AndyRoo" wrote:

Have you tried using the autofilter option? It is in the Filter submenu

on
the Data menu. You can set it so items with a value of zero are not
displayed.

"nickname" wrote:

I have created a new workbook and in cell B1 I have put the formulae
"=IF(ISBLANK(A1),"",44)". I have then used the fill down function to

fill it
down to row 65536. When I go to file print preview it's going to print

1821
blank pages. How can I stop it from printing cells that show no value

but
contain formulae?



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Stopping blank cells with formulae in from printing

I'd use data|filter and filter that column to show the nonblanks (not the zeros
that Andy suggested).


How about an alternative?

I'm gonna use column B as a column that always has something in it if that row
should print. You can change that if your formula is in a different column.

Insert|Name|Define
Names in workbook: Sheet1!LastRow
Use this formula
Refers to: =LOOKUP(2,1/(Sheet1!$B$1:$B$2000<""),ROW(Sheet1!$B$1:$B$2000) )

(Make that 2000 big enough to extend past the last possible row--but don't use
the whole column. In fact, I'd bet you don't need to go to row 65536!)

Then once mo
Insert|Name|Define
Names in workbook: Sheet1!Print_Area
Use this formula
Refers to: =OFFSET(Sheet1!$A$1,0,0,lastRow,5)

That last 5 represents the last column to print (A:E). Change it to what you
want.

And change the worksheet (sheet1) if necessary (in all the places).



nickname wrote:

I have created a new workbook and in cell B1 I have put the formulae
"=IF(ISBLANK(A1),"",44)". I have then used the fill down function to fill it
down to row 65536. When I go to file print preview its going to print 1821
blank pages. How can I stop it from printing cells that show no value but
contain formulae?


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Stopping blank cells with formulae in from printing

Hi,

Based on my understanding, now the question is: How to stop Excel from
printing cells that show no value but contain formulae? Please correct me
if I have any misunderstandings.

I agree with NickHK here. Print_Area is a defined name which can be
defined using a formula - same as setting up a dynamic range for a chart.

For an example:
Name: Sheet1!Print_Area
Refers to:
=offset(Sheet1!$A$1,0,0,Countif(Sheet1!$A:$A,"<") ,10)

It would define an area that is 10 columns wide and as many rows contain
non blank values. This count depends on a column that will have entries
for all rows from the first to the last one you want printed. If you will
have spaces, then you would use an array formula to get the max row with a
value in it.

Thanks very much and have a good day.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! ¨C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://msdn.microsoft.com/subscripti...gednewsgroups/

This posting is provided "AS IS" with no warranties, and confers no rights.

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 225
Default Stopping blank cells with formulae in from printing

Hi Nickname,

Did TungCheWah and Yan-Hong Huang's suggestion helps you?
If you still have any concern, please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stopping IF command from entering zero or 1 for blank cells Nick S Excel Worksheet Functions 3 November 20th 09 05:41 PM
Printing cells that are blank, because there is a formula JeffK Excel Discussion (Misc queries) 5 November 18th 09 09:51 PM
printing blank cells cmh Excel Discussion (Misc queries) 2 November 15th 06 08:11 PM
Stopping blank page printing F*SH Charts and Charting in Excel 0 July 24th 06 11:39 AM
counting from left to right and stopping when blank harpscardiff Excel Discussion (Misc queries) 6 August 19th 05 07:34 PM


All times are GMT +1. The time now is 03:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"