Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to hide #DIV!0 as well as #NV display in formulae 1

Status
Not open for further replies.

karlomutschler

Programmer
Jun 5, 2001
75
DE
hi all,

in my worksheet with ca 96000 formula I disable the display of #DIV!0 by using the appropriate IF function.

However, I still require to disable the display of #NV.

Any help much appreciated.

Kind regards
Karlo meistertools@gmx.net
 
use ISERROR...the Help function outlines it in detail
 
hi carrr,

thank you for your valued response.

With the amount of formulae in the worksheet (96 000) use of ISERROR function is not an option.

I was looking for a vba script that would handle the #NV's.

Thanks
Karlo meistertools@gmx.net
 
If you only do not want to print errors, you can set in File>Page settings... (in Sheet tab) what to print instead.

combo
 
What do you want to show instead of the errors ??
do you want to clear the cells ? change the result ? make it "" ? or make it 0 ????? Rgds
Geoff
"Some cause happiness wherever they go; others whenever they go."
-Oscar Wilde
 
I know of #div/0, #na, #name, #null, #ref, and #value but I don't know #NV. What is it?

You mention there are too many formulae in the spreadsheet to use of ISERROR is not an option.

Is this problem something that has happened recently and you don't want to change many old formula's and simply ignore the error?

Do you know why the error happens and is there perhaps another way to correct data before it hits your formula?
 
I'm assuming that NV is the German / Austrian / Dutch ????
version of N/A - apologies if you are none of the above ;-)
If you are happy replacing formulae that produce errors with a value, you could do something like:

application.screenupdating = false
application.calculation = xlcalculationmanual
For each c in activesheet.usedrange.cells
if iserror(c) then
c.value = 0
else
end if
next
application.calculation = xlcalculationautomatic

Else it's gonna be along the lines of

Sub insertErrorTesting()
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
For Each c In ActiveSheet.UsedRange.Cells
If IsError(c) Then
tempForm = Right(c.Formula, Len(c.Formula) - 1)
newForm = "=IF(ISERROR(" & tempForm & "),0," & tempForm & ")"
c.Formula = newForm
Else
End If
Next
Application.Calculation = xlCalculationAutomatic
End Sub
which will probably take much longer
HTH Rgds
Geoff
"Some cause happiness wherever they go; others whenever they go."
-Oscar Wilde
 
Hi,
Thanks everybody for your suggestions and help. You are just great !!

All I actually wanted to achieve is to get rid of the #NV (German Excel 2000).

I found a simple solution with conditional Format which does the trick.

1. Highlight the area concerned.
2. Conditional format.
3. Formula = ISERROR(C1)
4. Set Text colour to white.

Kindest regards
Karlo


meistertools@gmx.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top