Make the #N/A invisible

Rizana

Board Regular
Joined
Jul 7, 2006
Messages
105
I have specified some formula in my Excel worksheets. But, when the
cells are empty(with no data), it shows this sign #N/A in the cells.

How could I make it invisible so that when a user print the sheet, it
will only display the cells that contain data and let the cell that contains no data(specified with formula) blank?

Any ideas?
Thanks in advanced.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
What is the formula that returns #N/A?

BTW, apply AutoFilter that makes records with #N/A invisible before printing.
 

onlyadrafter

Well-known Member
Joined
Aug 19, 2003
Messages
5,703
Platform
  1. Windows
Hello,

Do you mean

=IF(isna(your_formula)),"",(your_formula))
 

Rizana

Board Regular
Joined
Jul 7, 2006
Messages
105
I used this kind of formula in the cells that returns the #N/A if there are no corresponding data for the cells :

='PCR-Master'!D43
 

DominicB

Well-known Member
Joined
Oct 3, 2005
Messages
1,569

ADVERTISEMENT

Good morning Rizana

If there is no corresponding data, would the formula not just return 0?
Anyway, try this :

=IF(ISERROR('PCR-Master'!D43)=TRUE,0,'PCR-Master'!D43)

This would return 0 rather than an error.

HTH

DominicB
 

Jon Peltier

MrExcel MVP
Joined
May 14, 2003
Messages
4,968
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Redundancy in formula. Use this:

=IF(ISERROR('PCR-Master'!D43),0,'PCR-Master'!D43)
 

Rizana

Board Regular
Joined
Jul 7, 2006
Messages
105
Hello everybody,

Thank you soo much for the ideas. Now, I learnt that there are many ways for me to solve the problems.

Thanks a lot.

Regards,
Rizana
 

PaddyD

MrExcel MVP
Joined
May 1, 2002
Messages
14,234
word of caution re use of iserror() - it masks errors due to faulty formula construction, not just error returns from the data:

=IF(ISERROR('PCR-Master'43),0,'PCR-Master'!D43)

...is not an error you'd want to mask...in general, better to check directly for the source of the error if you can...
 

Forum statistics

Threads
1,141,016
Messages
5,703,748
Members
421,312
Latest member
Mooncake1

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top